From d6ee7ec642cc6b3097c8d321a1a00630e24027d1 Mon Sep 17 00:00:00 2001 From: Stijn Buys Date: Sat, 16 Feb 2008 12:22:33 +0000 Subject: initial client-to-server connection --- src/core/netclient.cc | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'src/core/netclient.cc') 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; -- cgit v1.2.3