Changeset 9262 in orxonox.OLD for branches/proxy/src
- Timestamp:
- Jul 12, 2006, 6:30:54 PM (18 years ago)
- Location:
- branches/proxy/src/lib/network
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/proxy/src/lib/network/handshake.cc
r9261 r9262 81 81 for ( std::list<int>::iterator it = id.begin(); it != id.end(); it++ ) 82 82 { 83 // orxonox id handler 83 84 if ( *it == orxId_handler ) 84 85 { … … 93 94 } 94 95 96 // orxonox version handler 95 97 if ( *it == version_handler ) 96 98 { … … 105 107 } 106 108 109 // cancel 107 110 if ( *it == candel_id ) 108 111 { … … 112 115 } 113 116 114 if (115 116 remoteState.version == _ORXONOX_VERSION117 )117 // handshake completed 118 if ( remoteState.orxId == _ORXONOX_ID && 119 remoteState.version == _ORXONOX_VERSION ) 120 { 118 121 localState.completed = 1; 122 } 119 123 } 120 124 -
branches/proxy/src/lib/network/handshake.h
r9260 r9262 10 10 #include "synchronizeable.h" 11 11 12 #define _ORXONOX_ID 0xF91337A013 14 #define _ORXONOX_VERSION 115 12 16 13 struct HandshakeState { … … 80 77 int msgManId_handler; //!< message manager handler 81 78 int hostId_handler; //!< host id handler 79 int serverAddressHandler; //!< server address handler 82 80 83 81 int completed_handler; //!< handshake completion handler -
branches/proxy/src/lib/network/netdefs.h
r9253 r9262 33 33 34 34 35 /* maximal connectinons for the server*/ 35 36 #define MAX_CONNECTIONS 1000 36 37 38 /* network polling frequency */ 37 39 #define NETWORK_FREQUENCY 66 40 41 42 /* handshake settings */ 43 #define _ORXONOX_ID 0xF91337A0 44 #define _ORXONOX_VERSION 1 38 45 39 46
Note: See TracChangeset
for help on using the changeset viewer.