Changeset 5734 in orxonox.OLD for branches/network/src/lib
- Timestamp:
- Nov 23, 2005, 3:08:41 PM (19 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/network/src/lib/network/network_stream.cc
r5731 r5734 52 52 { 53 53 this->init(); 54 this->networkSocket = new NetworkSocket( /* address, type */);55 this->networkSocket->connectToServer(address, 88);54 this->networkSocket = new NetworkSocket( address, 88 ); 55 // this->networkSocket->connectToServer(address, 88); 56 56 57 57 this->synchronizeables = &sync; … … 108 108 /* first read 10bytes of data (debug) */ 109 109 110 ret = 0; 111 while(ret == 0) { ret = this->networkSocket->readBlock((byte*)upBuffer,PACKAGE_SIZE);} 112 113 110 ret = 0; 111 while(ret == 0) ret = this->networkSocket->readBlock((byte*)upBuffer,PACKAGE_SIZE); 114 112 /* error checking: data read? */ 115 if( ret != 10) { PRINTF(0)("Error while reading data from the NetworkSocket\n");}113 if( ret != PACKAGE_SIZE) { PRINTF(0)("Error while reading data from the NetworkSocket\n");} 116 114 /* now pass the data to the sync object */ 117 115
Note: See TracChangeset
for help on using the changeset viewer.