Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Changeset 9262 in orxonox.OLD for branches/proxy/src


Ignore:
Timestamp:
Jul 12, 2006, 6:30:54 PM (18 years ago)
Author:
patrick
Message:

starting to extend the handshake to synchronize proxy server addresses

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

Legend:

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

    r9261 r9262  
    8181  for ( std::list<int>::iterator it = id.begin(); it != id.end(); it++ )
    8282  {
     83    // orxonox id handler
    8384    if ( *it == orxId_handler )
    8485    {
     
    9394    }
    9495
     96    // orxonox version handler
    9597    if ( *it == version_handler )
    9698    {
     
    105107    }
    106108
     109    // cancel
    107110    if ( *it == candel_id )
    108111    {
     
    112115  }
    113116
    114   if (
    115       remoteState.orxId == _ORXONOX_ID &&
    116       remoteState.version == _ORXONOX_VERSION
    117      )
     117  // handshake completed
     118  if ( remoteState.orxId == _ORXONOX_ID &&
     119       remoteState.version == _ORXONOX_VERSION )
     120  {
    118121    localState.completed = 1;
     122  }
    119123}
    120124
  • branches/proxy/src/lib/network/handshake.h

    r9260 r9262  
    1010#include "synchronizeable.h"
    1111
    12 #define _ORXONOX_ID 0xF91337A0
    13 
    14 #define _ORXONOX_VERSION 1
    1512
    1613struct HandshakeState {
     
    8077    int                msgManId_handler;                      //!< message manager handler
    8178    int                hostId_handler;                        //!< host id handler
     79    int                serverAddressHandler;                  //!< server address handler
    8280
    8381    int                completed_handler;                     //!< handshake completion handler
  • branches/proxy/src/lib/network/netdefs.h

    r9253 r9262  
    3333
    3434
     35/* maximal connectinons for the server*/
    3536#define MAX_CONNECTIONS 1000
    3637
     38/* network polling frequency */
    3739#define NETWORK_FREQUENCY 66
     40
     41
     42/* handshake settings */
     43#define _ORXONOX_ID 0xF91337A0
     44#define _ORXONOX_VERSION 1
    3845
    3946
Note: See TracChangeset for help on using the changeset viewer.