From 8ced80b2ed2f88a1eef737deaa44495cd6d055f8 Mon Sep 17 00:00:00 2001 From: Peter Thorson Date: Sat, 30 Mar 2013 07:53:45 -0500 Subject: [PATCH] adds method to retrieve connection handle from iostream connections --- websocketpp/transport/iostream/connection.hpp | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/websocketpp/transport/iostream/connection.hpp b/websocketpp/transport/iostream/connection.hpp index d31c991e8f..dedc32c36f 100644 --- a/websocketpp/transport/iostream/connection.hpp +++ b/websocketpp/transport/iostream/connection.hpp @@ -139,6 +139,11 @@ public: std::string get_remote_endpoint() const { return "iostream transport"; } + + /// Get the connection handle + connection_hdl get_handle() const { + return m_connection_hdl; + } protected: void init(init_handler callback) { m_alog.write(log::alevel::devel,"iostream connection init");