zenilib  0.5.3.0
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
SDLnetTCP.c File Reference
#include "SDLnetsys.h"
#include "SDL_net.h"

Go to the source code of this file.

Functions

TCPsocket SDLNet_TCP_Accept (TCPsocket server)
 
void SDLNet_TCP_Close (TCPsocket sock)
 
IPaddressSDLNet_TCP_GetPeerAddress (TCPsocket sock)
 
TCPsocket SDLNet_TCP_Open (IPaddress *ip)
 
int SDLNet_TCP_Recv (TCPsocket sock, void *data, int maxlen)
 
int SDLNet_TCP_Send (TCPsocket sock, const void *datap, int len)
 

Function Documentation

TCPsocket SDLNet_TCP_Accept ( TCPsocket  server)

Definition at line 166 of file SDLnetTCP.c.

References INVALID_SOCKET, malloc, NULL, SDLNet_SetError(), SDLNet_TCP_Close(), and sock.

Referenced by Zeni::TCP_Listener::accept(), and HandleServer().

IPaddress* SDLNet_TCP_GetPeerAddress ( TCPsocket  sock)

Definition at line 223 of file SDLnetTCP.c.

References NULL.

Referenced by HandleServer(), and Zeni::TCP_Socket::peer_address().

int SDLNet_TCP_Recv ( TCPsocket  sock,
void data,
int  maxlen 
)
int SDLNet_TCP_Send ( TCPsocket  sock,
const void datap,
int  len 
)