Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
Dec 19, 2007, 12:28:42 AM (17 years ago)
Author:
dumenim
Message:

networkstuff bluber fubber

File:
1 edited

Legend:

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

    r514 r632  
    5050bool PacketBuffer::push(ENetEvent *ev){
    5151  boost::mutex::scoped_lock lock(networkPacketBufferMutex);
     52  //std::cout << "event size inside packetbuffer " << ev->packet->dataLength << std::endl;
    5253//   if(closed)
    5354//     return false;
     
    7576ENetPacket *PacketBuffer::pop(){
    7677  boost::mutex::scoped_lock lock(networkPacketBufferMutex);
     78  //std::cout << "packetbuffer pop" << std::endl;
    7779  if(first!=NULL /*&& !closed*/){
    7880    QueueItem *temp = first;
     
    8284    first = first->next;
    8385    delete temp;
     86    //std::cout << "pop size of packet " << pck->dataLength << std::endl;
    8487    return pck;
    8588  } else{
     89    //std::cout << "nothing to return" << std::endl;
    8690    return NULL;
    8791  }
     
    9094ENetPacket *PacketBuffer::pop(ENetAddress &address){
    9195  boost::mutex::scoped_lock lock(networkPacketBufferMutex);
     96  //std::cout << "packetbuffer pop(address)" << std::endl;
    9297  if(first!=NULL /*&& !closed*/){
    9398    QueueItem *temp = first;
     
    98103    first = first->next;
    99104    delete temp;
     105    //std::cout << "pop(address) size of packet " << pck->dataLength << std::endl;
    100106    return pck;
    101107  } else{
Note: See TracChangeset for help on using the changeset viewer.