From 3fcc3b6b7541068db13e047cd49bc0229fd786d9 Mon Sep 17 00:00:00 2001 From: Peter Thorson Date: Sun, 5 May 2013 17:28:03 -0500 Subject: [PATCH] adds the ability to get the absolute authority of a uri --- websocketpp/uri.hpp | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/websocketpp/uri.hpp b/websocketpp/uri.hpp index c14dbcebd7..090e4cfded 100644 --- a/websocketpp/uri.hpp +++ b/websocketpp/uri.hpp @@ -204,6 +204,12 @@ public: } } + std::string get_authority() const { + std::stringstream p; + p << m_host << ":" << m_port; + return p.str(); + } + uint16_t get_port() const { return m_port; }