Changeset 9553 in orxonox.OLD for branches/proxy/src/lib
- Timestamp:
- Jul 28, 2006, 11:58:26 AM (18 years ago)
- Location:
- branches/proxy/src/lib/network
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/proxy/src/lib/network/network_stream.cc
r9551 r9553 650 650 else if ( SharedNetworkData::getInstance()->isProxyServerActive() && it->second.isClient() ) 651 651 { 652 PRINTF(0)("Handshake: Proxy in server role: connecting %i , key: %i\n", it->second.userId, it->first);652 PRINTF(0)("Handshake: Proxy in server role: connecting %i\n", it->second.userId); 653 653 654 654 it->second.ip = it->second.socket->getRemoteAddress(); … … 657 657 658 658 // work with the ProxyControl to init the new client 659 PRINTF(0)("userId realy realy is: %i and key: %i\n", it->second.userId, it->first);660 659 ProxyControl::getInstance()->signalNewClient( it->second.userId); 661 660 -
branches/proxy/src/lib/network/proxy/proxy_control.cc
r9543 r9553 79 79 void ProxyControl::signalNewClient(int userId) 80 80 { 81 PRINTF(0)("Signaling new Client: %i\n" );81 PRINTF(0)("Signaling new Client: %i\n", userId); 82 82 // make sure we are a proxy server 83 83 assert(SharedNetworkData::getInstance()->isProxyServerActive()); 84 84 85 byte * data = new byte[INTSIZE];85 byte data[INTSIZE]; 86 86 87 87 assert( Converter::intToByteArray( userId, data + INTSIZE, INTSIZE ) == INTSIZE ); … … 114 114 assert( Converter::byteArrayToInt( data, &userId) == INTSIZE ); 115 115 116 PRINTF(0)("Got Signal: new player arrived with userId: %i\n", userId);116 PRINTF(0)("Got Signal: from %i new player arrived with userId: %i\n", senderId, userId); 117 117 // part for the master server 118 118 if( SharedNetworkData::getInstance()->isMasterServer())
Note: See TracChangeset
for help on using the changeset viewer.