Changeset 9539 in orxonox.OLD
- Timestamp:
- Jul 27, 2006, 11:51:09 PM (18 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/proxy/src/lib/network/proxy/proxy_control.cc
r9538 r9539 78 78 void ProxyControl::signalNewClient(int userId) 79 79 { 80 PRINTF(0)("Signaling new Client\n"); 80 81 // make sure we are a proxy server 81 82 assert(SharedNetworkData::getInstance()->isProxyServerActive()); 82 83 84 byte * data = new byte[INTSIZE]; 83 85 86 assert( Converter::intToByteArray( userId, data + INTSIZE, INTSIZE ) == INTSIZE ); 87 88 MessageManager::getInstance()->sendMessage( MSGID_PROXY_NEWCLIENT, data, INTSIZE, RT_ALL_BUT_ME, NET_UNASSIGNED, MP_HIGHBANDWIDTH ); 84 89 } 85 90 … … 98 103 bool ProxyControl::messageHandlerNewClient( MessageType messageType, byte * data, int dataLength, void * someData, int senderId, int destinationId ) 99 104 { 105 PRINTF(0)("Got Signal: new player arrived"); 100 106 // part for the master server 101 107 if( SharedNetworkData::getInstance()->isMasterServer())
Note: See TracChangeset
for help on using the changeset viewer.