diff --git a/src/roles/client.hpp b/src/roles/client.hpp index 3729396249..000c4e6cad 100644 --- a/src/roles/client.hpp +++ b/src/roles/client.hpp @@ -114,6 +114,10 @@ public: int32_t rand() { return m_endpoint.rand(); } + + bool is_server() const { + return false; + } // should this exist? boost::asio::io_service& get_io_service() { diff --git a/src/roles/server.hpp b/src/roles/server.hpp index 6cf0ac82c3..91dac63435 100644 --- a/src/roles/server.hpp +++ b/src/roles/server.hpp @@ -112,6 +112,10 @@ public: return 0; } + bool is_server() const { + return true; + } + // should this exist? boost::asio::io_service& get_io_service() { return m_endpoint.get_io_service();