| 129 | } |
| 130 | |
| 131 | void ReliablePacket::remove() { |
| 132 | next->prev = prev; |
| 133 | prev->next = next; |
| 134 | for (ReliablePacket* c = this; c;) { |
| 135 | ReliablePacket* n = c->cont; |
| 136 | c->buffer->delref(); |
| 137 | delete c; |
| 138 | c = n; |
| 139 | } |
| 140 | } |
| 141 | |
| 142 | void UnsentPacketQueue::sent(int bytes) { |
| 143 | while (bytes) { |