Udp Acceptor
[folly.git] / folly / io / async / AsyncServerSocket.h
index 46576aa255556dc97efa5f12cb005833b4f4b277..ff9562fe0c4b3302c58832bc0868a1a8d0f5fe3f 100644 (file)
@@ -21,6 +21,7 @@
 #include <folly/io/async/EventBase.h>
 #include <folly/io/async/NotificationQueue.h>
 #include <folly/io/async/AsyncTimeout.h>
+#include <folly/io/async/AsyncSocketBase.h>
 #include <folly/io/ShutdownSocketSet.h>
 #include <folly/SocketAddress.h>
 #include <memory>
@@ -56,7 +57,8 @@ namespace folly {
  * modify the AsyncServerSocket state may only be performed from the primary
  * EventBase thread.
  */
-class AsyncServerSocket : public DelayedDestruction {
+class AsyncServerSocket : public DelayedDestruction
+                        , public AsyncSocketBase {
  public:
   typedef std::unique_ptr<AsyncServerSocket, Destructor> UniquePtr;
   // Disallow copy, move, and default construction.