From 439efa089554ac1d7588dfecf1a7b4dd322afa5f Mon Sep 17 00:00:00 2001 From: Peter Thorson Date: Sun, 31 Mar 2013 15:09:42 -0500 Subject: [PATCH] adds getter for connection uri part 2 --- websocketpp/impl/connection_impl.hpp | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/websocketpp/impl/connection_impl.hpp b/websocketpp/impl/connection_impl.hpp index a14999a546..c7ec6559fc 100644 --- a/websocketpp/impl/connection_impl.hpp +++ b/websocketpp/impl/connection_impl.hpp @@ -299,6 +299,12 @@ uint16_t connection::get_port() const { return m_uri->get_port(); } +template +uri_ptr connection::get_uri() const { + //scoped_lock_type lock(m_connection_state_lock); + return m_uri; +} + template void connection::set_uri(uri_ptr uri) { //scoped_lock_type lock(m_connection_state_lock);