From 03889098f030471b88b007e03a1c5a5630434521 Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Fri, 12 Apr 2013 21:29:10 +0300 Subject: Fix code style and other small issues. --- src/net/sdltcpnet.h | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) (limited to 'src/net/sdltcpnet.h') 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); -- cgit v1.2.3-60-g2f50