Project::OSiRiON - Git repositories
Project::OSiRiON
News . About . Screenshots . Downloads . Forum . Wiki . Tracker . Git
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorStijn Buys <ingar@osirion.org>2008-02-16 12:22:33 +0000
committerStijn Buys <ingar@osirion.org>2008-02-16 12:22:33 +0000
commitd6ee7ec642cc6b3097c8d321a1a00630e24027d1 (patch)
tree35f56e5168cc3e12724898b9efb81b4b2938f575 /src/core/netclient.cc
parent715d0c3952a3a1d59b64074e472d0a9a3b414351 (diff)
initial client-to-server connection
Diffstat (limited to 'src/core/netclient.cc')
-rw-r--r--src/core/netclient.cc5
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;