projects
/
folly.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
Getter to know if the socket is accepting new connections
[folly.git]
/
folly
/
io
/
async
/
AsyncServerSocket.h
diff --git
a/folly/io/async/AsyncServerSocket.h
b/folly/io/async/AsyncServerSocket.h
index 51fc6493a5893910fc137f4711af37da3f38b81e..935e1917049722fea6079d9af4655e2c60be52da 100644
(file)
--- a/
folly/io/async/AsyncServerSocket.h
+++ b/
folly/io/async/AsyncServerSocket.h
@@
-577,6
+577,13
@@
class AsyncServerSocket : public DelayedDestruction
return closeOnExec_;
}
+ /**
+ * Get whether or not the socket is accepting new connections
+ */
+ bool getAccepting() const {
+ return accepting_;
+ }
+
protected:
/**
* Protected destructor.