- Timestamp:
- May 23, 2006, 3:10:57 PM (19 years ago)
- Location:
- branches/network/src/lib/network
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/network/src/lib/network/handshake.cc
r7731 r7774 22 22 #include "handshake.h" 23 23 24 #include "network_log.h" 25 24 26 #include <cassert> 25 27 … … 41 43 errorString_handler = registerVarId( new SynchronizeableString( &localState.errorString, &remoteState.errorString, "errorString", PERMISSION_ALL ) ); 42 44 43 localState.completed = false;45 localState.completed = 0; 44 46 localState.error = 0; 45 47 localState.errorString = ""; … … 50 52 localState.version = _ORXONOX_VERSION; 51 53 52 remoteState.completed = false;54 remoteState.completed = 0; 53 55 remoteState.error = 0; 54 56 remoteState.errorString = ""; … … 76 78 { 77 79 localState.error = 1; 78 localState.completed = true;80 localState.completed = 1; 79 81 localState.errorString = "Seems not to be orxonox!"; 80 82 return; 81 83 } 82 84 else 83 localState.completed = true; 85 if ( remoteState.version -= _ORXONOX_VERSION ) 86 localState.completed = 1; 84 87 } 85 88 … … 89 92 { 90 93 localState.error = 2; 91 localState.completed = true;94 localState.completed = 1; 92 95 localState.errorString = "Versions of server and client do not match!"; 93 96 return; 94 97 } 95 98 else 96 localState.completed = true; 99 if ( remoteState.orxId == _ORXONOX_ID ) 100 localState.completed = 1; 97 101 } 98 102 99 103 } 104 105 for ( std::list<int>::iterator it = id.begin(); it != id.end(); it++ ) 106 { 107 if ( *it == netManId_handler ) 108 NETPRINTF(0)("netManId_handler\n"); 109 if ( *it == msgManId_handler ) 110 NETPRINTF(0)("msgManId_handler\n"); 111 if ( *it == hostId_handler ) 112 NETPRINTF(0)("hostId_handler\n"); 113 if ( *it == completed_handler ) 114 NETPRINTF(0)("completed_handler\n"); 115 if ( *it == error_handler ) 116 NETPRINTF(0)("error_handler\n"); 117 if ( *it == errorString_handler ) 118 NETPRINTF(0)("errorString_handler\n"); 119 if ( *it == orxId_handler ) 120 NETPRINTF(0)("orxId_handler\n"); 121 if ( *it == version_handler ) 122 NETPRINTF(0)("version_handler\n"); 123 } 100 124 } 101 125 -
branches/network/src/lib/network/network_stream.cc
r7773 r7774 336 336 this->networkGameManager->setUniqueID( it->second.handshake->getNetworkGameManagerId() ); 337 337 MessageManager::getInstance()->setUniqueID( it->second.handshake->getMessageManagerId() ); 338 339 338 340 339 } 341 340 else
Note: See TracChangeset
for help on using the changeset viewer.