22 #ifndef NET_SDLTCPNET_H
23 #define NET_SDLTCPNET_H
28 PRAGMACLANG5(GCC diagnostic ignored
"-Wzero-as-null-pointer-constant")
30 PRAGMA48(GCC diagnostic ignored
"-Wshadow")
50 int resolveHost(IPaddress *
const address,
const char *
const host,
#define PRAGMACLANG5(str)
int delSocket(const TcpNet::SocketSet set, const TcpNet::Socket sock)
::SDLNet_SocketSet SocketSet
int send(const TcpNet::Socket sock, const void *const data, const int len)
int resolveHost(IPaddress *const address, const char *const host, const Uint16 port)
void freeSocketSet(const TcpNet::SocketSet set)
int socketReady(const TcpNet::Socket sock)
TcpNet::Socket open(IPaddress *const ip)
int addSocket(const TcpNet::SocketSet set, const TcpNet::Socket sock)
SocketSet allocSocketSet(const int maxsockets)
int checkSockets(const TcpNet::SocketSet set, const Uint32 timeout)
void closeSocket(const TcpNet::Socket socket)
int recv(const TcpNet::Socket sock, void *const data, const int maxlen)
TcpNet::Socket accept(const TcpNet::Socket sock)