diff options
author | Stijn Buys <ingar@osirion.org> | 2008-02-16 12:22:33 +0000 |
---|---|---|
committer | Stijn Buys <ingar@osirion.org> | 2008-02-16 12:22:33 +0000 |
commit | d6ee7ec642cc6b3097c8d321a1a00630e24027d1 (patch) | |
tree | 35f56e5168cc3e12724898b9efb81b4b2938f575 /src/core/netclient.cc | |
parent | 715d0c3952a3a1d59b64074e472d0a9a3b414351 (diff) |
initial client-to-server connection
Diffstat (limited to 'src/core/netclient.cc')
-rw-r--r-- | src/core/netclient.cc | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/core/netclient.cc b/src/core/netclient.cc index 2df024b..e2a9b7e 100644 --- a/src/core/netclient.cc +++ b/src/core/netclient.cc @@ -1,5 +1,5 @@ /* - net/netclient.h + net/netclient.cc This file is part of the Osirion project and is distributed under the terms of the GNU General Public License version 2 */ @@ -19,7 +19,8 @@ NetClient::NetClient(int clientfd, std::string host, int port) : client_host(host) { std::ostringstream osstream; - osstream << host << ":" << port; + //osstream << "host << ":" << port; + osstream << "Player" << clientfd; client_player.name = osstream.str(); client_player.id = (unsigned int) clientfd; |