--- trunk/H7 Server/TcpServerClass.cpp 2007/02/01 07:39:56 35 +++ trunk/H7 Server/TcpServerClass.cpp 2007/02/01 09:21:43 36 @@ -13,12 +13,21 @@ { typedef std::list::iterator ClientIt; + CString clientStr; + CString host; + unsigned int port; + TcpClientClass* client = new TcpClientClass; Accept(*client); CSocket::OnAccept(nErrorCode); mClients.push_back(client); + + client->GetPeerName(host,port); + clientStr.Format("Connection from %s:%d\n", host,port); + OutputDebugString(clientStr); + for (ClientIt it = mClients.begin(); it != mClients.end(); it++) { if ( (*it)->isClosed )