aboutsummaryrefslogtreecommitdiffstats
path: root/src/tls/tls_channel.cpp
diff options
context:
space:
mode:
authorlloyd <[email protected]>2012-11-01 21:41:52 +0000
committerlloyd <[email protected]>2012-11-01 21:41:52 +0000
commita3001b7fb821bc75523436912385278d7ed31b31 (patch)
treee300a68c28d405f439734718aa3fee7e135f2797 /src/tls/tls_channel.cpp
parentae4685b6d65870530148dcb0d50d8bcc89692230 (diff)
Move Channel::is_{active,closed} to source file
Diffstat (limited to 'src/tls/tls_channel.cpp')
-rw-r--r--src/tls/tls_channel.cpp10
1 files changed, 10 insertions, 0 deletions
diff --git a/src/tls/tls_channel.cpp b/src/tls/tls_channel.cpp
index e35226205..be3f1c784 100644
--- a/src/tls/tls_channel.cpp
+++ b/src/tls/tls_channel.cpp
@@ -146,6 +146,16 @@ void Channel::change_cipher_spec_writer(Connection_Side side)
m_pending_state->new_write_cipher_state(side);
}
+bool Channel::is_active() const
+ {
+ return m_active_state.get();
+ }
+
+bool Channel::is_closed() const
+ {
+ return m_connection_closed;
+ }
+
void Channel::activate_session()
{
std::swap(m_active_state, m_pending_state);