From: Mikko Rasa Date: Wed, 6 Apr 2011 07:10:43 +0000 (+0000) Subject: Add function to check if handshake is done X-Git-Url: http://git.tdb.fi/?p=libs%2Fnet.git;a=commitdiff_plain;h=a4f75be32827b00d9de9d8a68855fec2f5157a10 Add function to check if handshake is done --- diff --git a/source/communicator.h b/source/communicator.h index 144f872..409d42e 100644 --- a/source/communicator.h +++ b/source/communicator.h @@ -35,6 +35,7 @@ public: ~Communicator(); void initiate_handshake(); + bool is_handshake_done() const { return handshake_status==2; } template void send(const P &pkt)