Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Changeset 9539 in orxonox.OLD for branches/proxy/src/lib


Ignore:
Timestamp:
Jul 27, 2006, 11:51:09 PM (18 years ago)
Author:
patrick
Message:

message exchange should work already

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/proxy/src/lib/network/proxy/proxy_control.cc

    r9538 r9539  
    7878void ProxyControl::signalNewClient(int userId)
    7979{
     80  PRINTF(0)("Signaling new Client\n");
    8081  // make sure we are a proxy server
    8182  assert(SharedNetworkData::getInstance()->isProxyServerActive());
    8283
     84  byte * data = new byte[INTSIZE];
    8385
     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 );
    8489}
    8590
     
    98103bool ProxyControl::messageHandlerNewClient( MessageType messageType, byte * data, int dataLength, void * someData, int senderId, int destinationId  )
    99104{
     105  PRINTF(0)("Got Signal: new player arrived");
    100106  // part for the master server
    101107  if( SharedNetworkData::getInstance()->isMasterServer())
Note: See TracChangeset for help on using the changeset viewer.