Changeset 8362 in orxonox.OLD for trunk/src/lib/network/handshake.cc
- Timestamp:
- Jun 14, 2006, 10:08:41 AM (18 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/lib/network/handshake.cc
r7954 r8362 23 23 24 24 #include <cassert> 25 #include "debug.h" 25 26 26 27 Handshake::Handshake( bool server, int clientId, int networkGameManagerId, int messageManagerId ) … … 31 32 32 33 this->setIsServer(server); 33 34 34 35 orxId_handler = registerVarId( new SynchronizeableInt( &localState.orxId, &remoteState.orxId, "orxonoxId", PERMISSION_ALL ) ); 35 36 version_handler = registerVarId( new SynchronizeableInt( &localState.version, &remoteState.version, "version", PERMISSION_ALL ) ); … … 40 41 error_handler = registerVarId( new SynchronizeableInt( &localState.error, &remoteState.error, "error", PERMISSION_ALL ) ); 41 42 errorString_handler = registerVarId( new SynchronizeableString( &localState.errorString, &remoteState.errorString, "errorString", PERMISSION_ALL ) ); 42 43 43 44 candel_id = registerVarId( new SynchronizeableInt( &localState.canDel, &remoteState.canDel, "canDel", PERMISSION_ALL ) ); 44 45 45 46 localState.completed = 0; 46 47 localState.error = 0; … … 52 53 localState.version = _ORXONOX_VERSION; 53 54 localState.canDel = 0; 54 55 55 56 remoteState.completed = 0; 56 57 remoteState.error = 0; … … 86 87 87 88 } 88 89 89 90 if ( *it == version_handler ) 90 91 { … … 98 99 99 100 } 100 101 101 102 if ( *it == candel_id ) 102 103 { 103 104 PRINTF(0)("handshake finished candel changed\n"); 104 105 } 105 106 106 107 } 107 108 108 109 if ( 109 110 remoteState.orxId == _ORXONOX_ID &&
Note: See TracChangeset
for help on using the changeset viewer.