From 649aaea644fc30847f5707ff47361d8907ab54c9 Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Sat, 19 Jul 2014 19:57:26 +0300 Subject: Add some new functions into sdltcpnet. --- src/net/sdltcpnet.cpp | 10 ++++++++++ 1 file changed, 10 insertions(+) (limited to 'src/net/sdltcpnet.cpp') diff --git a/src/net/sdltcpnet.cpp b/src/net/sdltcpnet.cpp index ebe165125..36dac0fb2 100644 --- a/src/net/sdltcpnet.cpp +++ b/src/net/sdltcpnet.cpp @@ -139,6 +139,11 @@ int TcpNet::addSocket(const TcpNet::SocketSet set, const TcpNet::Socket sock) return SDLNet_TCP_AddSocket(set, sock); } +int TcpNet::socketReady(const TcpNet::Socket sock) +{ + return SDLNet_SocketReady(sock); +} + int TcpNet::checkSockets(const TcpNet::SocketSet set, const Uint32 timeout) { return SDLNet_CheckSockets(set, timeout); @@ -158,3 +163,8 @@ void TcpNet::freeSocketSet(const TcpNet::SocketSet set) { SDLNet_FreeSocketSet(set); } + +TcpNet::Socket TcpNet::accept(const TcpNet::Socket sock) +{ + return SDLNet_TCP_Accept(sock); +} -- cgit v1.2.3-70-g09d2