bool bad_conn_close; // close when finished output?
bool oom_close; // send final 'out of memory' indicator
bool bad_conn_close; // close when finished output?
bool oom_close; // send final 'out of memory' indicator
template <typename T> using list = std::list<T>;
template <typename T> using vector = std::vector<T>;
// Buffer for outgoing packets. Each outgoing back is represented as a vector<char>.
list<vector<char>> outbuf;
template <typename T> using list = std::list<T>;
template <typename T> using vector = std::vector<T>;
// Buffer for outgoing packets. Each outgoing back is represented as a vector<char>.
list<vector<char>> outbuf;
// Queue a packet to be sent
// Returns: true if the packet was successfully queued, false if otherwise
// (eg if out of memory); in the latter case the connection might
// Queue a packet to be sent
// Returns: true if the packet was successfully queued, false if otherwise
// (eg if out of memory); in the latter case the connection might