summaryrefslogtreecommitdiff
path: root/src/net/sdltcpnet.h
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2013-04-13 20:40:47 +0300
committerAndrei Karas <akaras@inbox.ru>2013-04-13 20:47:35 +0300
commit9569f124d176b4220f28f9a41812c33883737228 (patch)
tree774fde68607db24459ec220bb6409fffdba6a1d3 /src/net/sdltcpnet.h
parent6c7688e68bbfbd3459005ceb2176a6a337d4c45f (diff)
downloadmanaverse-9569f124d176b4220f28f9a41812c33883737228.tar.gz
manaverse-9569f124d176b4220f28f9a41812c33883737228.tar.bz2
manaverse-9569f124d176b4220f28f9a41812c33883737228.tar.xz
manaverse-9569f124d176b4220f28f9a41812c33883737228.zip
add const to sdltcpnet file.
Diffstat (limited to 'src/net/sdltcpnet.h')
-rw-r--r--src/net/sdltcpnet.h12
1 files changed, 6 insertions, 6 deletions
diff --git a/src/net/sdltcpnet.h b/src/net/sdltcpnet.h
index 18cb1338c..449a41116 100644
--- a/src/net/sdltcpnet.h
+++ b/src/net/sdltcpnet.h
@@ -36,26 +36,26 @@ namespace TcpNet
void quit();
- void closeSocket(TcpNet::Socket socket);
+ void closeSocket(const TcpNet::Socket socket);
- int send(TcpNet::Socket sock, const void *const data, const int len);
+ int send(const TcpNet::Socket sock, const void *const data, const int len);
char *getError();
- int resolveHost(IPaddress *const address, const char *host,
+ int resolveHost(IPaddress *const address, const char *const host,
const Uint16 port);
TcpNet::Socket open(IPaddress *const ip);
SocketSet allocSocketSet(const int maxsockets);
- int addSocket(TcpNet::SocketSet set, TcpNet::Socket sock);
+ int addSocket(const TcpNet::SocketSet set, const TcpNet::Socket sock);
int checkSockets(const TcpNet::SocketSet set, const Uint32 timeout);
- int recv(TcpNet::Socket sock, void *data, int maxlen);
+ int recv(const TcpNet::Socket sock, void *const data, const int maxlen);
- int delSocket(TcpNet::SocketSet set, TcpNet::Socket sock);
+ int delSocket(const TcpNet::SocketSet set, const TcpNet::Socket sock);
void freeSocketSet(TcpNet::SocketSet set);
} // namespace TcpNet