summaryrefslogtreecommitdiff
path: root/server/src/tcpsocket.cc
diff options
context:
space:
mode:
Diffstat (limited to 'server/src/tcpsocket.cc')
-rw-r--r--server/src/tcpsocket.cc10
1 files changed, 1 insertions, 9 deletions
diff --git a/server/src/tcpsocket.cc b/server/src/tcpsocket.cc
index b10f064..9d481ff 100644
--- a/server/src/tcpsocket.cc
+++ b/server/src/tcpsocket.cc
@@ -109,7 +109,7 @@ void TCPSocket::listen(unsigned short int port)
{
if(sock == -1) throw TCPListenException("Socket not initialized.");
- if(isconnected) throw TCPListenException("Socket already connected.");
+ if(isconnected) throw TCPListenException("Socket alread connected.");
struct sockaddr_in socketaddr;
memset((char *) &socketaddr, sizeof(socketaddr), 0);
@@ -319,14 +319,6 @@ int TCPSocket::write(char *data, int size)
throw TCPWriteException(strerror(errno));
}
-#ifdef WITH_DEBUG
- std::string blah;
- blah.append(data, size);
- printf(blah.c_str());
-
- // printf("Outputted %d bytes\n", res);
-#endif/*WITH_DEBUG*/
-
return res;
}