| 201 | } |
| 202 | |
| 203 | void ByteQueue::Clear() |
| 204 | { |
| 205 | for (ByteQueueNode *next, *current=m_head->next; current; current=next) |
| 206 | { |
| 207 | next=current->next; |
| 208 | delete current; |
| 209 | } |
| 210 | |
| 211 | m_tail = m_head; |
| 212 | m_head->Clear(); |
| 213 | m_head->next = NULL; |
| 214 | m_lazyLength = 0; |
| 215 | } |
| 216 | |
| 217 | size_t ByteQueue::Put2(const byte *inString, size_t length, int messageEnd, bool blocking) |
| 218 | { |