Changeset 632 for code/branches/FICN/src/network/PacketBuffer.cc
- Timestamp:
- Dec 19, 2007, 12:28:42 AM (17 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
code/branches/FICN/src/network/PacketBuffer.cc
r514 r632 50 50 bool PacketBuffer::push(ENetEvent *ev){ 51 51 boost::mutex::scoped_lock lock(networkPacketBufferMutex); 52 //std::cout << "event size inside packetbuffer " << ev->packet->dataLength << std::endl; 52 53 // if(closed) 53 54 // return false; … … 75 76 ENetPacket *PacketBuffer::pop(){ 76 77 boost::mutex::scoped_lock lock(networkPacketBufferMutex); 78 //std::cout << "packetbuffer pop" << std::endl; 77 79 if(first!=NULL /*&& !closed*/){ 78 80 QueueItem *temp = first; … … 82 84 first = first->next; 83 85 delete temp; 86 //std::cout << "pop size of packet " << pck->dataLength << std::endl; 84 87 return pck; 85 88 } else{ 89 //std::cout << "nothing to return" << std::endl; 86 90 return NULL; 87 91 } … … 90 94 ENetPacket *PacketBuffer::pop(ENetAddress &address){ 91 95 boost::mutex::scoped_lock lock(networkPacketBufferMutex); 96 //std::cout << "packetbuffer pop(address)" << std::endl; 92 97 if(first!=NULL /*&& !closed*/){ 93 98 QueueItem *temp = first; … … 98 103 first = first->next; 99 104 delete temp; 105 //std::cout << "pop(address) size of packet " << pck->dataLength << std::endl; 100 106 return pck; 101 107 } else{
Note: See TracChangeset
for help on using the changeset viewer.