Macros | |
#define | ADDR_SIZE 4 |
#define | MAX_UDP_PACKET (MAX_MSGLEN*2) |
#define | MAXHOSTNAMELEN 512 |
#define | model_t quakeforgemodel_t |
#define | SA_LEN(sa) (sizeof(struct sockaddr_in)) |
#define | SS_LEN(ss) (sizeof(struct sockaddr_in)) |
Typedefs | |
typedef union address | AF_address_t |
typedef unsigned int | socklen_t |
Functions | |
const char * | NET_AdrToString (netadr_t a) |
Convert an address to a string. More... | |
const char * | NET_BaseAdrToString (netadr_t a) |
Convert an address to a string. More... | |
qboolean | NET_CompareAdr (netadr_t a, netadr_t b) |
Compare two network addresses. More... | |
qboolean | NET_CompareBaseAdr (netadr_t a, netadr_t b) |
Compare two network addresses. More... | |
qboolean | NET_GetPacket (void) |
Read a single packet from the network into net_message. More... | |
void | NET_Init (int port) |
Initialize the UDP network interface. More... | |
void | NET_SendPacket (int length, const void *data, netadr_t to) |
Send a data packet out to the network. More... | |
void | NET_Shutdown (void) |
Shutdown the UDP network interface. More... | |
qboolean | NET_StringToAdr (const char *s, netadr_t *a) |
Convert a human readable address to a quake address. More... | |
Variables | |
netadr_t | net_from |
netadr_t | net_local_adr |
netadr_t | net_loopback_adr |
qmsg_t * | net_message = &_net_message |
byte | net_message_buffer [MAX_UDP_PACKET] |
int | net_socket |
#define ADDR_SIZE 4 |
#define MAX_UDP_PACKET (MAX_MSGLEN*2) |
#define MAXHOSTNAMELEN 512 |
#define model_t quakeforgemodel_t |
#define SA_LEN | ( | sa | ) | (sizeof(struct sockaddr_in)) |
#define SS_LEN | ( | ss | ) | (sizeof(struct sockaddr_in)) |
typedef union address AF_address_t |
netadr_t net_from |
netadr_t net_local_adr |
netadr_t net_loopback_adr |
byte net_message_buffer[MAX_UDP_PACKET] |
int net_socket |