From daf6897fe24e62ae8cf8e42b151ed565563332fe Mon Sep 17 00:00:00 2001 From: Nicolas Noble Date: Fri, 8 Aug 2014 13:34:23 -0700 Subject: Finalizing cares integration. --- includes/Socket.h | 2 ++ 1 file changed, 2 insertions(+) (limited to 'includes/Socket.h') diff --git a/includes/Socket.h b/includes/Socket.h index 0909763..b1e59cb 100644 --- a/includes/Socket.h +++ b/includes/Socket.h @@ -62,6 +62,7 @@ class ListenerBase : public StacklessTask { virtual void Do(); void stop(); virtual const char * getName() const; + bool started() { return m_started; } protected: ListenerBase(int port, const char * local, void * opaque); virtual void factory(IO & io, void * opaque) = 0; @@ -74,6 +75,7 @@ class ListenerBase : public StacklessTask { String m_local; int m_port = 0; void * m_opaque = NULL; + bool m_started = false; }; template -- cgit v1.2.3