libt2n: (gerd) add hello peek
[libt2n] / src / connection.hxx
index 94c3123..60ea862 100644 (file)
@@ -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(); }