Commit 19b1f5f7 authored by Mohammad Husain's avatar Mohammad Husain Committed by facebook-github-bot-9

Getter to know if the socket is accepting new connections

Reviewed By: @yfeldblum

Differential Revision: D2534627

fb-gh-sync-id: 2934911b69542b4befa8dc03ec3cadb4a148496d
parent b0005c7d
......@@ -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.
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment