Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Changeset 5752 in orxonox.OLD for branches/network/src/lib


Ignore:
Timestamp:
Nov 24, 2005, 1:28:16 AM (19 years ago)
Author:
patrick
Message:

network: fixed a small bug in the network protocol class

Location:
branches/network/src/lib/network
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • branches/network/src/lib/network/network_protocol.cc

    r5738 r5752  
    6363int NetworkProtocol::createHeader(byte* data, int length, int bufferLength, const Synchronizeable& source, unsigned int remoteID)
    6464{
     65  PRINTF(0)("create header\n");
     66  printf("length = %i, bufferLength = %i\n", length, bufferLength);
    6567  //If there isn't enough space for the header return -1
    6668  if (length + headerLength > bufferLength)
     
    6870 
    6971  //Create space for the header
    70   for (unsigned int i = length - 1; i >= 0; i--)
     72  for( int i = length - 1; i >= 0; i--)
    7173    data[i + headerLength] = data[i];
    7274 
     
    8385Header NetworkProtocol::extractHeader(byte* data, int length)
    8486{
     87  PRINTF(0)("extract Header\n");
    8588  //Test if received data can contain a header
    8689  if (length < headerLength)
  • branches/network/src/lib/network/network_socket.cc

    r5737 r5752  
    178178int NetworkSocket::writeBytes(byte * data, int length)
    179179{
     180  PRINTF(0)("NetworkSocket::writeBytes()\n");
    180181#ifdef _USE_OUTGOING_BUFFER
    181182
Note: See TracChangeset for help on using the changeset viewer.