Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Changeset 6923 in orxonox.OLD for branches/network/src


Ignore:
Timestamp:
Feb 1, 2006, 12:31:32 PM (19 years ago)
Author:
rennerc
Message:

network_socket: adjusted outgoing buffer size and added some assertions

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

Legend:

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

    r6695 r6923  
    172172
    173173  if (!tcpSocket || data==NULL || nbytes<=0)
    174     return 0;
     174  {
     175    assert(false);
     176    return 0;
     177  }
    175178
    176179  SDL_mutexP(outgoingBufferMutex);
     
    417420  if (incomingBufferLength<INTSIZE)
    418421  {
     422    assert(false);
    419423    return 0;
    420424  }
     
    426430  {
    427431    PRINTF(1)("Buffersize is too small (%d) for packet (%d)\n", maxLength, blen);
     432    assert(false);
    428433    return 0;
    429434  }
  • branches/network/src/lib/network/network_socket.h

    r6695 r6923  
    1111#define _USE_OUTGOING_BUFFER
    1212
    13 #define _INCOMING_BUFFER_SIZE 10240
     13#define _INCOMING_BUFFER_SIZE 2024000
    1414#define _OUTGOING_BUFFER_SIZE 2024000
    1515#define _LOCAL_BUFFER_SIZE 1024
Note: See TracChangeset for help on using the changeset viewer.