summaryrefslogtreecommitdiff
path: root/src/net/sdltcpnet.cpp
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2014-07-19 19:57:26 +0300
committerAndrei Karas <akaras@inbox.ru>2014-07-19 19:57:26 +0300
commit649aaea644fc30847f5707ff47361d8907ab54c9 (patch)
tree1cdde26294bd800a82818e85fe763e72b6f98d9a /src/net/sdltcpnet.cpp
parent22fe614f7a528b209fc2075cf76274fbcb780814 (diff)
downloadmv-649aaea644fc30847f5707ff47361d8907ab54c9.tar.gz
mv-649aaea644fc30847f5707ff47361d8907ab54c9.tar.bz2
mv-649aaea644fc30847f5707ff47361d8907ab54c9.tar.xz
mv-649aaea644fc30847f5707ff47361d8907ab54c9.zip
Add some new functions into sdltcpnet.
Diffstat (limited to 'src/net/sdltcpnet.cpp')
-rw-r--r--src/net/sdltcpnet.cpp10
1 files changed, 10 insertions, 0 deletions
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);
+}