Changeset 1098 for code/branches/network2/src/network/PacketBuffer.cc
- Timestamp:
- Apr 17, 2008, 2:35:51 PM (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
code/branches/network2/src/network/PacketBuffer.cc
r1062 r1098 61 61 last=first; 62 62 last->next=NULL; 63 // change this!!!!!!! 63 // change this!!!!!!! 64 64 last->packet = ev->packet; 65 last->address = ev->peer->address;65 //last->address = ev->peer->address; 66 66 } else { 67 67 //insert a new element at the bottom … … 72 72 // save the packet to the new element 73 73 last->packet = ev->packet; 74 last->address = ev->peer->address;74 //last->address = ev->peer->address; 75 75 } 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; 77 79 } 78 80 81 //returns the first element in the list without deleting it but 82 //moving first pointer to next element 79 83 ENetPacket *PacketBuffer::pop() { 80 84 boost::mutex::scoped_lock lock(networkPacketBufferMutex);
Note: See TracChangeset
for help on using the changeset viewer.