(svn r15079) -Codechange: split tcp 'backend' and in-game handling like it is for UDP.

This commit is contained in:
rubidium
2009-01-14 12:50:13 +00:00
parent 6fe54a2d1a
commit e18c24cdb5
9 changed files with 217 additions and 149 deletions

View File

@@ -43,7 +43,7 @@ public:
SOCKET sock; ///< The socket currently connected to
public:
/** Create a new unbound socket */
NetworkSocketHandler() { this->sock = INVALID_SOCKET; this->has_quit = false; }
NetworkSocketHandler(SOCKET s = INVALID_SOCKET) { this->sock = s; this->has_quit = false; }
/** Close the socket when distructing the socket handler */
virtual ~NetworkSocketHandler() { this->Close(); }