]> git.tdb.fi Git - libs/net.git/commitdiff
Add function to check if handshake is done
authorMikko Rasa <tdb@tdb.fi>
Wed, 6 Apr 2011 07:10:43 +0000 (07:10 +0000)
committerMikko Rasa <tdb@tdb.fi>
Wed, 6 Apr 2011 07:10:43 +0000 (07:10 +0000)
source/communicator.h

index 144f87210f40911e097114b14a86e35479d2a0ea..409d42e02527c74e023a00cfbb5a691f90e8febc 100644 (file)
@@ -35,6 +35,7 @@ public:
        ~Communicator();
 
        void initiate_handshake();
+       bool is_handshake_done() const { return handshake_status==2; }
 
        template<typename P>
        void send(const P &pkt)