zenilib
0.5.3.0
|
Go to the source code of this file.
Functions | |
UDPpacket * | SDLNet_AllocPacket (int size) |
UDPpacket ** | SDLNet_AllocPacketV (int howmany, int size) |
void | SDLNet_FreePacket (UDPpacket *packet) |
void | SDLNet_FreePacketV (UDPpacket **packetV) |
int | SDLNet_ResizePacket (UDPpacket *packet, int newsize) |
int | SDLNet_UDP_Bind (UDPsocket sock, int channel, const IPaddress *address) |
void | SDLNet_UDP_Close (UDPsocket sock) |
IPaddress * | SDLNet_UDP_GetPeerAddress (UDPsocket sock, int channel) |
UDPsocket | SDLNet_UDP_Open (Uint16 port) |
int | SDLNet_UDP_Recv (UDPsocket sock, UDPpacket *packet) |
int | SDLNet_UDP_RecvV (UDPsocket sock, UDPpacket **packets) |
int | SDLNet_UDP_Send (UDPsocket sock, int channel, UDPpacket *packet) |
int | SDLNet_UDP_SendV (UDPsocket sock, UDPpacket **packets, int npackets) |
void | SDLNet_UDP_SetPacketLoss (UDPsocket sock, int percent) |
void | SDLNet_UDP_Unbind (UDPsocket sock, int channel) |
static int | SocketReady (SOCKET sock) |
static int | ValidChannel (int channel) |
Definition at line 51 of file SDLnetUDP.c.
References UDPpacket::data, error, malloc, UDPpacket::maxlen, NULL, SDLNet_FreePacket(), and SDLNet_SetError().
Referenced by SDLNet_AllocPacketV().
Definition at line 98 of file SDLnetUDP.c.
References i, malloc, NULL, SDLNet_AllocPacket(), SDLNet_FreePacketV(), and SDLNet_SetError().
Referenced by main().
Definition at line 85 of file SDLnetUDP.c.
References UDPpacket::data, and free.
Referenced by SDLNet_AllocPacket(), and SDLNet_FreePacketV().
Definition at line 121 of file SDLnetUDP.c.
References free, i, and SDLNet_FreePacket().
Referenced by cleanup(), and SDLNet_AllocPacketV().
Definition at line 73 of file SDLnetUDP.c.
References UDPpacket::data, free, malloc, UDPpacket::maxlen, and NULL.
Definition at line 256 of file SDLnetUDP.c.
References NULL, SDLNET_MAX_UDPADDRESSES, SDLNET_MAX_UDPCHANNELS, SDLNet_SetError(), and ValidChannel().
Referenced by HandleServerData().
Definition at line 515 of file SDLnetUDP.c.
References closesocket, free, INVALID_SOCKET, and NULL.
Referenced by cleanup(), SDLNet_UDP_Open(), and Zeni::UDP_Socket::~UDP_Socket().
Definition at line 298 of file SDLnetUDP.c.
References NULL, and ValidChannel().
Referenced by Zeni::UDP_Socket::peer_address(), and SendHello().
Definition at line 139 of file SDLnetUDP.c.
References INADDR_ANY, INVALID_SOCKET, malloc, memset, NULL, SDLNet_Read16, SDLNet_SetError(), SDLNet_UDP_Close(), sock, and SOCKET_ERROR.
Referenced by main(), and Zeni::UDP_Socket::UDP_Socket().
Definition at line 504 of file SDLnetUDP.c.
References NULL, packets, and SDLNet_UDP_RecvV().
Referenced by Zeni::UDP_Socket::receive().
Definition at line 439 of file SDLnetUDP.c.
References UDPpacket::address, UDPpacket::channel, UDPpacket::data, IPaddress::host, i, j, UDPpacket::len, UDPpacket::maxlen, NULL, IPaddress::port, SDLNET_MAX_UDPCHANNELS, SocketReady(), and UDPpacket::status.
Referenced by HandleClient(), and SDLNet_UDP_Recv().
Definition at line 399 of file SDLnetUDP.c.
References UDPpacket::channel, and SDLNet_UDP_SendV().
Referenced by Zeni::UDP_Socket::send(), and SendBuf().
Definition at line 326 of file SDLnetUDP.c.
References UDPpacket::address, UDPpacket::channel, UDPpacket::data, IPaddress::host, i, j, UDPpacket::len, NULL, IPaddress::port, SDLNet_SetError(), and UDPpacket::status.
Referenced by SDLNet_UDP_Send().
Definition at line 220 of file SDLnetUDP.c.
References NULL.
Definition at line 287 of file SDLnetUDP.c.
References SDLNET_MAX_UDPCHANNELS.
Referenced by HandleServerData().
Definition at line 407 of file SDLnetUDP.c.
References NULL, SDLNet_GetLastError(), and SDLNet_SetLastError().
Referenced by SDLNet_UDP_RecvV().
Definition at line 237 of file SDLnetUDP.c.
References SDLNET_MAX_UDPCHANNELS, and SDLNet_SetError().
Referenced by SDLNet_UDP_Bind(), and SDLNet_UDP_GetPeerAddress().