adds wrapper for getting the next layer of the socket stack to tls and basic templates

This commit is contained in:
Peter Thorson
2013-05-03 08:41:38 -05:00
parent 14e80a4ff1
commit 84283db1e5
2 changed files with 16 additions and 0 deletions

View File

@@ -93,6 +93,14 @@ public:
return *m_socket;
}
/// Retrieve a pointer to the underlying socket
/**
* This is used internally.
*/
boost::asio::ip::tcp::socket& get_next_layer() {
return *m_socket;
}
/// Retrieve a pointer to the underlying socket
/**
* This is used internally. It can also be used to set socket options, etc

View File

@@ -96,6 +96,14 @@ public:
return m_socket->lowest_layer();
}
/// Retrieve a pointer to the layer below the ssl stream
/**
* This is used internally.
*/
socket_type::next_layer_type& get_next_layer() {
return m_socket->next_layer();
}
/// Retrieve a pointer to the wrapped socket
/**
* This is used internally.