Changeset 5806 in orxonox.OLD for branches/network/src/subprojects/network/simple_sync.cc
- Timestamp:
- Nov 28, 2005, 6:49:58 PM (18 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/network/src/subprojects/network/simple_sync.cc
r5805 r5806 60 60 * write data to Synchronizeable 61 61 */ 62 void SimpleSync::writeBytes( byte* data, int length)62 void SimpleSync::writeBytes(const byte* data, int length) 63 63 { 64 64 PRINTF(0)("SimpleSync: got %i bytes of data\n", length); … … 80 80 * read data from Synchronizeable 81 81 */ 82 int SimpleSync::readBytes(byte* data) 82 int SimpleSync::readBytes(byte* data) const 83 83 { 84 84 PRINTF(0)("SimpleSync: sent %i bytes of data\n", this->outLength); 85 85 86 /* debug msg */ 87 this->readDebug(); 88 86 89 /* write the test message */ 87 90 for( int i = 0; i < this->outLength; i++) 88 {89 91 data[i] = this->outData[i]; 90 }91 92 92 /* debug msg */93 this->readDebug();94 93 /* return the length of the test */ 95 94 return this->outLength; … … 97 96 98 97 99 void SimpleSync::writeDebug() 98 void SimpleSync::writeDebug() const 100 99 { 101 100 PRINTF(0)("Write in bytes: \t(0 <-) |"); … … 108 107 109 108 110 void SimpleSync::readDebug() 109 void SimpleSync::readDebug() const 111 110 { 112 111 PRINTF(0)("Read out bytes: \t(0 ->) |");
Note: See TracChangeset
for help on using the changeset viewer.