summaryrefslogtreecommitdiff
path: root/src/net/sdltcpnet.h
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2013-04-12 21:29:10 +0300
committerAndrei Karas <akaras@inbox.ru>2013-04-12 22:22:59 +0300
commit03889098f030471b88b007e03a1c5a5630434521 (patch)
tree4b60ab4f26e44908bf240254029976eb078fdaa0 /src/net/sdltcpnet.h
parentc565936b3ac5b6e1ab0d5ca30963619c7b725bb6 (diff)
downloadplus-03889098f030471b88b007e03a1c5a5630434521.tar.gz
plus-03889098f030471b88b007e03a1c5a5630434521.tar.bz2
plus-03889098f030471b88b007e03a1c5a5630434521.tar.xz
plus-03889098f030471b88b007e03a1c5a5630434521.zip
Fix code style and other small issues.
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);