ENet Unix header. More...
#include <stdlib.h>
#include <sys/time.h>
#include <sys/types.h>
#include <sys/socket.h>
#include <netinet/in.h>
#include <unistd.h>
Data Structures | |
struct | ENetBuffer |
Macros | |
#define | ENET_API extern |
#define | ENET_CALLBACK |
#define | ENET_HOST_TO_NET_16(value) (htons (value)) |
macro that converts host to net byte-order of a 16-bit value More... | |
#define | ENET_HOST_TO_NET_32(value) (htonl (value)) |
macro that converts host to net byte-order of a 32-bit value More... | |
#define | ENET_NET_TO_HOST_16(value) (ntohs (value)) |
macro that converts net to host byte-order of a 16-bit value More... | |
#define | ENET_NET_TO_HOST_32(value) (ntohl (value)) |
macro that converts net to host byte-order of a 32-bit value More... | |
#define | ENET_SOCKET_NULL -1 |
#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_CLR (socket, & (sockset)) |
Typedefs | |
typedef int | ENetSocket |
typedef fd_set | ENetSocketSet |
ENet Unix header.
#define ENET_API extern |
#define ENET_CALLBACK |
#define ENET_HOST_TO_NET_16 | ( | value | ) | (htons (value)) |
macro that converts host to net byte-order of a 16-bit value
Referenced by enet_host_connect(), enet_peer_send(), enet_peer_setup_outgoing_command(), enet_socket_bind(), enet_socket_connect(), and enet_socket_send().
#define ENET_HOST_TO_NET_32 | ( | value | ) | (htonl (value)) |
macro that converts host to net byte-order of a 32-bit value
Referenced by enet_crc32(), enet_host_bandwidth_throttle(), enet_host_connect(), enet_peer_disconnect(), enet_peer_disconnect_now(), enet_peer_send(), and enet_peer_throttle_configure().
#define ENET_NET_TO_HOST_16 | ( | value | ) | (ntohs (value)) |
macro that converts net to host byte-order of a 16-bit value
Referenced by enet_peer_queue_incoming_command(), enet_socket_accept(), enet_socket_get_address(), and enet_socket_receive().
#define ENET_NET_TO_HOST_32 | ( | value | ) | (ntohl (value)) |
macro that converts net to host byte-order of a 32-bit value
Referenced by enet_peer_send().
#define ENET_SOCKET_NULL -1 |
Referenced by enet_host_create(), and enet_socket_accept().
#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_CLR (socket, & (sockset)) |
typedef int ENetSocket |
typedef fd_set ENetSocketSet |