summaryrefslogtreecommitdiff
path: root/src/net/sdltcpnet.h
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.h
parent22fe614f7a528b209fc2075cf76274fbcb780814 (diff)
downloadmanaplus-649aaea644fc30847f5707ff47361d8907ab54c9.tar.gz
manaplus-649aaea644fc30847f5707ff47361d8907ab54c9.tar.bz2
manaplus-649aaea644fc30847f5707ff47361d8907ab54c9.tar.xz
manaplus-649aaea644fc30847f5707ff47361d8907ab54c9.zip
Add some new functions into sdltcpnet.
Diffstat (limited to 'src/net/sdltcpnet.h')
-rw-r--r--src/net/sdltcpnet.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/net/sdltcpnet.h b/src/net/sdltcpnet.h
index 6b42ee1f7..fe3a7be66 100644
--- a/src/net/sdltcpnet.h
+++ b/src/net/sdltcpnet.h
@@ -49,6 +49,8 @@ namespace TcpNet
int addSocket(const TcpNet::SocketSet set, const TcpNet::Socket sock);
+ int socketReady(const TcpNet::Socket sock);
+
int checkSockets(const TcpNet::SocketSet set, const Uint32 timeout);
int recv(const TcpNet::Socket sock, void *const data, const int maxlen);
@@ -56,6 +58,8 @@ namespace TcpNet
int delSocket(const TcpNet::SocketSet set, const TcpNet::Socket sock);
void freeSocketSet(const TcpNet::SocketSet set);
+
+ TcpNet::Socket accept(const TcpNet::Socket sock);
} // namespace TcpNet
#endif // NET_SDLTCPNET_H