From 8e6bdfe42f7072a32a267bc234466b919f82ff55 Mon Sep 17 00:00:00 2001 From: Peter Thorson Date: Sun, 17 Mar 2013 18:26:46 -0500 Subject: [PATCH] impliments get_remote_endpoint for iostream transport --- websocketpp/transport/iostream/connection.hpp | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/websocketpp/transport/iostream/connection.hpp b/websocketpp/transport/iostream/connection.hpp index 8806e9dd37..e9162101d5 100644 --- a/websocketpp/transport/iostream/connection.hpp +++ b/websocketpp/transport/iostream/connection.hpp @@ -87,6 +87,20 @@ public: bool is_secure() const { return false; } + + /// Get the remote endpoint address + /** + * The iostream transport has no information about the ultimate remote + * endpoint. It will return the string "iostream transport". To indicate + * this. + * + * TODO: allow user settable remote endpoint addresses if this seems useful + * + * @return A string identifying the address of the remote endpoint + */ + std::string get_remote_endpoint() const { + return "iostream transport"; + } protected: void init(init_handler callback) { m_alog.write(log::alevel::devel,"iostream connection init");