From 30455f985f14cf184d89184899b84b6528fb9062 Mon Sep 17 00:00:00 2001 From: Peter Thorson Date: Fri, 3 Feb 2012 07:10:13 -0600 Subject: [PATCH] begins work on endpoint state detection --- src/roles/server.hpp | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/src/roles/server.hpp b/src/roles/server.hpp index bdb6f903a1..2f9e641a0a 100644 --- a/src/roles/server.hpp +++ b/src/roles/server.hpp @@ -202,6 +202,13 @@ protected: return true; } private: + enum state { + IDLE = 0, + LISTENING = 1, + STOPPING = 2, + STOPPED = 3 + }; + // start_accept creates a new connection and begins an async_accept on it void start_accept(); @@ -213,7 +220,6 @@ private: endpoint_type& m_endpoint; boost::asio::io_service& m_io_service; - //boost::asio::ip::tcp::endpoint m_endpoint; boost::asio::ip::tcp::acceptor m_acceptor; boost::asio::deadline_timer m_timer;