From 4ada7f9b0b116d0655f126170a0e27cca4b0904d Mon Sep 17 00:00:00 2001 From: Peter Thorson Date: Sat, 20 Apr 2013 07:25:34 -0500 Subject: [PATCH] updates asio transport endpoint with a few more io_service convenience pass through methods references #211 --- websocketpp/transport/asio/endpoint.hpp | 14 ++++++++++++-- 1 file changed, 12 insertions(+), 2 deletions(-) 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();