Getter to know if the socket is accepting new connections
[folly.git] / folly / io / async / AsyncServerSocket.h
index 51fc6493a5893910fc137f4711af37da3f38b81e..935e1917049722fea6079d9af4655e2c60be52da 100644 (file)
@@ -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.