summaryrefslogtreecommitdiff
path: root/includes/Socket.h
diff options
context:
space:
mode:
authorNicolas Noble <nnoble@blizzard.com>2014-08-08 13:34:23 -0700
committerNicolas Noble <nnoble@blizzard.com>2014-08-08 13:34:23 -0700
commitdaf6897fe24e62ae8cf8e42b151ed565563332fe (patch)
treed4f313b369e5b3b873f51c51525ed9816053aaea /includes/Socket.h
parentf67877e10216326b2230cd827d15aab0802d826d (diff)
Finalizing cares integration.
Diffstat (limited to 'includes/Socket.h')
-rw-r--r--includes/Socket.h2
1 files changed, 2 insertions, 0 deletions
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<Socket> & 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<class Worker>