Changeset 9344 in orxonox.OLD for branches/proxy/src/lib/network/synchronizeable_var
- Timestamp:
- Jul 20, 2006, 11:29:35 AM (19 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/proxy/src/lib/network/synchronizeable_var/synchronizeable_ip.cc
r9338 r9344 47 47 int res; 48 48 49 res = Converter::intToByteArray( (int)vPtrIn-> ip(), buf, maxLength );49 res = Converter::intToByteArray( (int)vPtrIn->host(), buf, maxLength ); 50 50 assert(res > 0); 51 51 n += res; … … 75 75 int n = 0; 76 76 77 IP old IP= *vPtrOut;77 IP oldVal = *vPtrOut; 78 78 79 79 res = Converter::byteArrayToInt( buf + n, &host); … … 88 88 *this->vPtrOut = IP(host, port); 89 89 90 printf(" vtrp out old: %i, %i -- new: %i, %i\n", old IP.ip(), oldIP.port(), this->vPtrOut->ip(), this->vPtrOut->port());91 setHasChanged( *this->vPtrOut != old IP);90 printf(" vtrp out old: %i, %i -- new: %i, %i\n", oldVal.host(), oldVal.port(), this->vPtrOut->host(), this->vPtrOut->port()); 91 setHasChanged( *this->vPtrOut != oldVal); 92 92 93 93 assert( n == 2 * INTSIZE); … … 102 102 void SynchronizeableIP::SynchronizeableIP::debug( ) 103 103 { 104 printf("SYNCHRONIZEABLE_VAR: %s IN: %i, %i OUT: %i, %i\n", name.c_str(), vPtrIn-> ip(), vPtrIn->port(), vPtrOut->ip(), vPtrOut->port());104 printf("SYNCHRONIZEABLE_VAR: %s IN: %i, %i OUT: %i, %i\n", name.c_str(), vPtrIn->host(), vPtrIn->port(), vPtrOut->host(), vPtrOut->port()); 105 105 } 106 106
Note: See TracChangeset
for help on using the changeset viewer.