00001
00005 #ifndef __ENET_UNIX_H__
00006 #define __ENET_UNIX_H__
00007
00008 #include <stdlib.h>
00009 #include <sys/types.h>
00010 #include <netinet/in.h>
00011
00012 typedef int ENetSocket;
00013
00014 enum
00015 {
00016 ENET_SOCKET_NULL = -1
00017 };
00018
00019 #define ENET_HOST_TO_NET_16(value) (htons (value))
00020 #define ENET_HOST_TO_NET_32(value) (htonl (value))
00022 #define ENET_NET_TO_HOST_16(value) (ntohs (value))
00023 #define ENET_NET_TO_HOST_32(value) (ntohl (value))
00025 typedef struct
00026 {
00027 void * data;
00028 size_t dataLength;
00029 } ENetBuffer;
00030
00031 #define ENET_CALLBACK
00032
00033 #define ENET_API extern
00034
00035 #endif
00036