Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

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


Ignore:
Timestamp:
Jul 31, 2006, 3:42:26 PM (18 years ago)
Author:
patrick
Message:

proxy server now temporarily does not open server ports (so i can test on one client). proxy server id bug fixed

Location:
branches/proxy/src/lib/network
Files:
3 edited

Legend:

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

    r9636 r9652  
    241241    assert( i + messageLength <= length );
    242242    // make sure there is a message handler for this message type
    243     assert( messageHandlerMap.find( (MessageType)messageType ) != messageHandlerMap.end() );
     243    assert( messageHandlerMap.find( (MessageType)messageType ) == messageHandlerMap.end());
    244244
    245245
     
    345345  if ( outgoingMessageQueue[userId].recievedMessages.size() > 1000 )
    346346  {
    347     for ( int j = 0; j < outgoingMessageQueue[userId].recievedMessages.size() - 1000; j++ )
     347    for ( int j = 0; j < (int)outgoingMessageQueue[userId].recievedMessages.size() - 1000; j++ )
    348348      outgoingMessageQueue[userId].recievedMessages.erase( outgoingMessageQueue[userId].recievedMessages.begin() );
    349349  }
  • branches/proxy/src/lib/network/network_manager.cc

    r9638 r9652  
    142142
    143143  // then start the server
    144   this->networkStream->createServer( port, port + 1, port + 2);
     144//   this->networkStream->createServer( port, port + 1, port + 2);
    145145
    146146  // and to the other proxy servers also, this would be very nice if its works
  • branches/proxy/src/lib/network/network_stream.cc

    r9643 r9652  
    487487          break;
    488488        }
     489        userId++;
    489490
    490491//         for ( PeerList::iterator it = peers.begin(); it != peers.end(); it++ )
Note: See TracChangeset for help on using the changeset viewer.