Compare commits

...

3 Commits

View File

@ -28,6 +28,7 @@
#include <mutex> #include <mutex>
#include <string> #include <string>
#include <vector> #include <vector>
#include <deque>
namespace ix namespace ix
{ {
@ -156,7 +157,7 @@ namespace ix
// Contains all messages that were fetched in the last socket read. // Contains all messages that were fetched in the last socket read.
// This could be a mix of control messages (Close, Ping, etc...) and // This could be a mix of control messages (Close, Ping, etc...) and
// data messages. That buffer is resized // data messages. That buffer is resized
std::vector<uint8_t> _rxbuf; std::deque<uint8_t> _rxbuf;
// Contains all messages that are waiting to be sent // Contains all messages that are waiting to be sent
std::vector<uint8_t> _txbuf; std::vector<uint8_t> _txbuf;