Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

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


Ignore:
Timestamp:
Jul 27, 2006, 4:07:38 PM (18 years ago)
Author:
patrick
Message:

now the proxy server has also special handling for message piping

File:
1 edited

Legend:

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

    r9511 r9512  
    328328  {
    329329
    330         // relay server special handling
     330    // relay server special handling
    331331    if( SharedNetworkData::getInstance()->isMasterServer() && SharedNetworkData::getInstance()->isUserProxyServerActive(it->first))
     332    {
     333      NetworkMessage msg;
     334
     335      msg.data = new byte[dataLength];
     336      memcpy( msg.data, data, dataLength );
     337      msg.length = dataLength;
     338      msg.messageType = messageType;
     339      msg.number = this->newNumber++;
     340      msg.priority = messagePriority;
     341
     342      it->second.messages.push_back( msg );
     343    }
     344    // proxy server to master server
     345    else if( SharedNetworkData::getInstance()->isProxyServerActive() && SharedNetworkData::getInstance()->isUserMasterServer(it->first))
    332346    {
    333347      NetworkMessage msg;
Note: See TracChangeset for help on using the changeset viewer.