replaced the receive buffer with a deque<uint8_t>