diff --git a/websocketpp/transport/asio/endpoint.hpp b/websocketpp/transport/asio/endpoint.hpp index 21f09d9572..4ae1254a8a 100644 --- a/websocketpp/transport/asio/endpoint.hpp +++ b/websocketpp/transport/asio/endpoint.hpp @@ -241,8 +241,8 @@ public: } /// wraps the run method of the internal io_service object - void run() { - m_io_service->run(); + std::size_t run() { + return m_io_service->run(); } /// wraps the stop method of the internal io_service object @@ -250,6 +250,16 @@ public: m_io_service->stop(); } + /// wraps the poll method of the internal io_service object + std::size_t poll() { + return m_io_service->poll(); + } + + /// wraps the poll_one method of the internal io_service object + std::size_t poll_one() { + return m_io_service->poll_one(); + } + /// wraps the reset method of the internal io_service object void reset() { m_io_service->reset();