Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
Apr 17, 2008, 2:35:51 PM (16 years ago)
Author:
rgrieder
Message:

merged network branch into new network2 branch (from trunk)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • code/branches/network2/src/network/PacketBuffer.cc

    r1062 r1098  
    6161      last=first;
    6262      last->next=NULL;
    63       // change this!!!!!!!
     63      // change this!!!!!!! 
    6464      last->packet = ev->packet;
    65       last->address = ev->peer->address;
     65      //last->address = ev->peer->address;
    6666    } else {
    6767      //insert a new element at the bottom
     
    7272      // save the packet to the new element
    7373      last->packet = ev->packet;
    74       last->address = ev->peer->address;
     74      //last->address = ev->peer->address;
    7575    }
    76     return true;
     76    // pseudo bugfix: added a return false statement for error handling
     77    if ( last->packet == ev->packet ) return true;
     78    return false;
    7779  }
    7880
     81  //returns the first element in the list without deleting it but
     82  //moving first pointer to next element
    7983  ENetPacket *PacketBuffer::pop() {
    8084    boost::mutex::scoped_lock lock(networkPacketBufferMutex);
Note: See TracChangeset for help on using the changeset viewer.