return psize;
}
+/** @brief read a complete data packet from the buffer. The packet is removed from the
+ connection buffer.
+ @param[out] data the data package
+ @retval true if packet found
+*/
bool connection::get_packet(std::string& data)
{
packet_size_indicator psize;
return false;
}
+/// send a blob to the peer
void connection::write(const std::string& data)
{
// prepend packet size to data