Orxonox
0.0.5 Codename: Arcturus
|
ENet Win32 header. More...
#include <stdlib.h>
#include <winsock2.h>
Go to the source code of this file.
Classes | |
struct | ENetBuffer |
Macros | |
#define | AI_ADDRCONFIG 0x0400 /* AI_ADDRCONFIG is not defined everywhere */ |
#define | ENET_API extern |
#define | ENET_CALLBACK __cdecl |
#define | ENET_HOST_TO_NET_16(value) (htons (value)) |
#define | ENET_HOST_TO_NET_32(value) (htonl (value)) |
#define | ENET_NET_TO_HOST_16(value) (ntohs (value)) |
#define | ENET_NET_TO_HOST_32(value) (ntohl (value)) |
#define | ENET_SOCKETSET_ADD(sockset, socket) FD_SET (socket, & (sockset)) |
#define | ENET_SOCKETSET_CHECK(sockset, socket) FD_ISSET (socket, & (sockset)) |
#define | ENET_SOCKETSET_EMPTY(sockset) FD_ZERO (& (sockset)) |
#define | ENET_SOCKETSET_REMOVE(sockset, socket) FD_CLEAR (socket, & (sockset)) |
Typedefs | |
typedef SOCKET | ENetSocket |
typedef fd_set | ENetSocketSet |
Enumerations | |
enum | { ENET_SOCKET_NULL = INVALID_SOCKET } |
ENet Win32 header.
#define AI_ADDRCONFIG 0x0400 /* AI_ADDRCONFIG is not defined everywhere */ |
#define ENET_API extern |
#define ENET_CALLBACK __cdecl |
#define ENET_HOST_TO_NET_16 | ( | value | ) | (htons (value)) |
#define ENET_HOST_TO_NET_32 | ( | value | ) | (htonl (value)) |
#define ENET_NET_TO_HOST_16 | ( | value | ) | (ntohs (value)) |
#define ENET_NET_TO_HOST_32 | ( | value | ) | (ntohl (value)) |
#define ENET_SOCKETSET_ADD | ( | sockset, | |
socket | |||
) | FD_SET (socket, & (sockset)) |
#define ENET_SOCKETSET_CHECK | ( | sockset, | |
socket | |||
) | FD_ISSET (socket, & (sockset)) |
#define ENET_SOCKETSET_EMPTY | ( | sockset | ) | FD_ZERO (& (sockset)) |
#define ENET_SOCKETSET_REMOVE | ( | sockset, | |
socket | |||
) | FD_CLEAR (socket, & (sockset)) |
typedef SOCKET ENetSocket |
typedef fd_set ENetSocketSet |