Changeset 9360 in orxonox.OLD for branches/proxy/src/lib/network/handshake.cc
- Timestamp:
- Jul 20, 2006, 3:49:57 PM (19 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/proxy/src/lib/network/handshake.cc
r9353 r9360 48 48 registerVar( new SynchronizeableString( &localState.preferedNickName, &remoteState.preferedNickName, "preferedNickName", PERMISSION_ALL ) ); 49 49 // now synchronize only two of the available proxy server addresses 50 proxy1Handler = registerVarId( new SynchronizeableIP( &localState.proxy1, &remoteState.proxy1, "proxy server 1", PERMISSION_ALL ) ); 51 proxy2Handler = registerVarId( new SynchronizeableIP( &localState.proxy2, &remoteState.proxy2, "proxy server 2", PERMISSION_ALL ) ); 50 // registerVar( new SynchronizeableIP( &this->proxy1, &this->proxy1, "proxy server 1", PERMISSION_ALL ) ); 51 // registerVar( new SynchronizeableIP( &this->proxy2, &this->proxy2, "proxy server 2", PERMISSION_ALL ) ); 52 registerVar( new SynchronizeableInt( this->proxy1.hostRef(), this->proxy1.hostRef(), "proxy server 1", PERMISSION_ALL)); 53 registerVar( new SynchronizeableInt( this->proxy1.portRef(), this->proxy1.portRef(), "proxy server 1", PERMISSION_ALL)); 54 registerVar( new SynchronizeableInt( this->proxy2.hostRef(), this->proxy2.hostRef(), "proxy server 2", PERMISSION_ALL)); 55 registerVar( new SynchronizeableInt( this->proxy2.portRef(), this->proxy2.portRef(), "proxy server 2", PERMISSION_ALL)); 52 56 53 57 // init the local state … … 62 66 localState.nodeType = nodeType; 63 67 localState.canDel = 0; 64 localState.redirectProxy = 0;65 localState.proxy1 = IP(0, 0);66 localState.proxy2 = IP (0, 0);67 68 68 69 … … 78 79 remoteState.nodeType = NET_CLIENT; 79 80 remoteState.canDel = 0; 80 remoteState.redirectProxy = 0;81 remoteState.proxy1 = IP(0, 0);82 remoteState.proxy2 = IP(0, 0);83 81 84 82 85 this->proxyAddressesSynched = 0; 83 this->proxyAddressesSynched = 2; 84 this->proxy1 = IP(0, 0); 85 this->proxy2 = IP(0, 0); 86 this->redirectProxy = 0; 86 87 87 88 … … 151 152 { 152 153 this->proxyAddressesSynched++; 153 PRINTF(0)("got proxy1: %i, %i\n", this-> remoteState.proxy1.host(), this->remoteState.proxy1.port());154 PRINTF(0)("got proxy1: %i, %i\n", this->proxy1.host(), this->proxy1.port()); 154 155 } 155 156 … … 158 159 { 159 160 this->proxyAddressesSynched++; 160 PRINTF(0)("got proxy2: %i, %i\n", this-> remoteState.proxy2.host(), this->remoteState.proxy2.port());161 PRINTF(0)("got proxy2: %i, %i\n", this->proxy2.host(), this->proxy2.port()); 161 162 } 162 163
Note: See TracChangeset
for help on using the changeset viewer.