summaryrefslogtreecommitdiff
path: root/src/net/sdltcpnet.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/net/sdltcpnet.h')
-rw-r--r--src/net/sdltcpnet.h11
1 files changed, 6 insertions, 5 deletions
diff --git a/src/net/sdltcpnet.h b/src/net/sdltcpnet.h
index c13b84063..18cb1338c 100644
--- a/src/net/sdltcpnet.h
+++ b/src/net/sdltcpnet.h
@@ -38,19 +38,20 @@ namespace TcpNet
void closeSocket(TcpNet::Socket socket);
- int send(TcpNet::Socket sock, const void *data, int len);
+ int send(TcpNet::Socket sock, const void *const data, const int len);
char *getError();
- int resolveHost(IPaddress *address, const char *host, Uint16 port);
+ int resolveHost(IPaddress *const address, const char *host,
+ const Uint16 port);
- TcpNet::Socket open(IPaddress *ip);
+ TcpNet::Socket open(IPaddress *const ip);
- SocketSet allocSocketSet(int maxsockets);
+ SocketSet allocSocketSet(const int maxsockets);
int addSocket(TcpNet::SocketSet set, TcpNet::Socket sock);
- int checkSockets(TcpNet::SocketSet set, Uint32 timeout);
+ int checkSockets(const TcpNet::SocketSet set, const Uint32 timeout);
int recv(TcpNet::Socket sock, void *data, int maxlen);