Changeset 5752 in orxonox.OLD for branches/network/src/lib
- Timestamp:
- Nov 24, 2005, 1:28:16 AM (19 years ago)
- Location:
- branches/network/src/lib/network
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/network/src/lib/network/network_protocol.cc
r5738 r5752 63 63 int NetworkProtocol::createHeader(byte* data, int length, int bufferLength, const Synchronizeable& source, unsigned int remoteID) 64 64 { 65 PRINTF(0)("create header\n"); 66 printf("length = %i, bufferLength = %i\n", length, bufferLength); 65 67 //If there isn't enough space for the header return -1 66 68 if (length + headerLength > bufferLength) … … 68 70 69 71 //Create space for the header 70 for (unsignedint i = length - 1; i >= 0; i--)72 for( int i = length - 1; i >= 0; i--) 71 73 data[i + headerLength] = data[i]; 72 74 … … 83 85 Header NetworkProtocol::extractHeader(byte* data, int length) 84 86 { 87 PRINTF(0)("extract Header\n"); 85 88 //Test if received data can contain a header 86 89 if (length < headerLength) -
branches/network/src/lib/network/network_socket.cc
r5737 r5752 178 178 int NetworkSocket::writeBytes(byte * data, int length) 179 179 { 180 PRINTF(0)("NetworkSocket::writeBytes()\n"); 180 181 #ifdef _USE_OUTGOING_BUFFER 181 182
Note: See TracChangeset
for help on using the changeset viewer.