Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
Nov 28, 2005, 9:07:21 PM (19 years ago)
Author:
patrick
Message:

network: valgrinded the network modules - zero error limit reached: small modification in NetworkSocket and ConnectionMonitor, nothing serious

File:
1 edited

Legend:

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

    r5728 r5808  
    3131{
    3232  this->setClassID(CL_DATA_STREAM, "DataStream");
     33  this->upBuffer = new byte[DATA_STREAM_BUFFER_SIZE];
     34  this->downBuffer = new byte[DATA_STREAM_BUFFER_SIZE];
    3335}
    3436
     
    4143    this->downStream = &outStream;
    4244    this->upStream = &inStream;
     45
     46    if( this->upBuffer)
     47      delete[] this->upBuffer;
     48    if( this->downBuffer)
     49      delete[] this->downBuffer;
    4350}
    4451
     
    101108void passDown(byte* data, int length)
    102109{
    103      
     110
    104111}
    105112
     
    115122int passUp(byte* data)
    116123{
    117    
     124
    118125}
Note: See TracChangeset for help on using the changeset viewer.