- Timestamp:
- Nov 23, 2005, 2:55:18 PM (19 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/network/src/lib/network/network_stream.cc
r5728 r5730 92 92 int ret = 0; 93 93 94 byte downData[10]; 95 byte upData[10]; 94 96 95 97 96 /* DOWNSTREAM */ 98 97 /* first of all read the synchronizeable's data: */ 99 ret = this->synchronizeables->readBytes(downData); 98 99 ret = this->synchronizeables->readBytes((byte*)downBuffer); 100 100 101 /* pass the data to the network socket */ 101 ret = this->networkSocket->writeBytes( downData, ret);102 ret = this->networkSocket->writeBytes((byte*)downBuffer, PACKAGE_SIZE); 102 103 /* check if there was an error */ 103 104 if( ret == -1) { PRINTF(0)("Error in writing data to the NetworkSocket\n");} … … 107 108 /* first read 10bytes of data (debug) */ 108 109 109 while(ret == 0) { this->networkSocket->readBytes(upData,PACKAGE_SIZE);}110 while(ret == 0) { ret = this->networkSocket->readBytes((byte*)upBuffer,PACKAGE_SIZE);} 110 111 111 112 … … 113 114 if( ret != 10) { PRINTF(0)("Error while reading data from the NetworkSocket\n");} 114 115 /* now pass the data to the sync object */ 115 this->synchronizeables->writeBytes(upData, 0); 116 117 this->synchronizeables->writeBytes((byte*)upBuffer, PACKAGE_SIZE); 118 116 119 117 120
Note: See TracChangeset
for help on using the changeset viewer.