X-Git-Url: http://developer.intra2net.com/git/?p=libt2n;a=blobdiff_plain;f=src%2Fconnection.hxx;h=60ea862b376387e116a9d529e8d0098c48948fe8;hp=94c3123ce1e1d3e603718c52a48caec75fc95324;hb=b2ba092858a40fc42afba6b529d5b97bcba363e2;hpb=45a2ebc9695c4d7be6548b7e0f800d117ae56a0b diff --git a/src/connection.hxx b/src/connection.hxx index 94c3123..60ea862 100644 --- a/src/connection.hxx +++ b/src/connection.hxx @@ -74,6 +74,8 @@ class connection bool get_packet(std::string& data); + unsigned int peek_packet(std::string& data); + /// returns true if a complete data packet is in the buffer. retrieve it with get_packet(). bool packet_available() { return bytes_available(); }