]> git.tdb.fi Git - libs/net.git/blobdiff - source/communicator.h
Add function to check if handshake is done
[libs/net.git] / 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)