diff options
author | Martin Sustrik <sustrik@250bpm.com> | 2012-03-20 15:31:01 +0100 |
---|---|---|
committer | Martin Sustrik <sustrik@250bpm.com> | 2012-03-20 15:31:01 +0100 |
commit | 818d122d78e4b3bc55fdc376b43e15841b2e2006 (patch) | |
tree | 61509054977a8b4086290adf8fe0f8f1c17a6ada /src/session_base.hpp | |
parent | d7f1c5cfebd95ace9a62a5f1b7a8208827df0fb6 (diff) |
Send identities on reconnect
When reconnection happened, identity was not resent to the peer.
Fixed.
Signed-off-by: Martin Sustrik <sustrik@250bpm.com>
Diffstat (limited to 'src/session_base.hpp')
-rw-r--r-- | src/session_base.hpp | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/src/session_base.hpp b/src/session_base.hpp index 8b0d019..47da8c2 100644 --- a/src/session_base.hpp +++ b/src/session_base.hpp @@ -118,10 +118,18 @@ namespace xs // the engines into the same thread. xs::io_thread_t *io_thread; - // If true, identity is to be sent/recvd from the network. + // If true, identity is to be sent to the network. bool send_identity; + + // If true, identity was already sent to the current connection. + bool identity_sent; + + // If true, identity is to be received from the network. bool recv_identity; + // If true, identity was already received from the current connection. + bool identity_recvd; + // Protocol and address to use when connecting. std::string protocol; std::string address; |