Add getEventBase() to AsyncUDPSocket
authorNeel Goyal <ngoyal@fb.com>
Wed, 26 Jul 2017 18:31:11 +0000 (11:31 -0700)
committerFacebook Github Bot <facebook-github-bot@users.noreply.github.com>
Wed, 26 Jul 2017 18:54:15 +0000 (11:54 -0700)
Summary: Add an event base getter for AsyncUDPSocket similar to the other socket classes.

Reviewed By: knekritz

Differential Revision: D5498587

fbshipit-source-id: ac3179e03485328417ed9863f6bb790de7c691cb

folly/io/async/AsyncUDPSocket.h

index d327c1d68787a5e4382964f23a550da03b2d39f7..892d9c90af04a7f0de7557de60576abdd1d76704 100644 (file)
@@ -158,6 +158,10 @@ class AsyncUDPSocket : public EventHandler {
     reuseAddr_ = reuseAddr;
   }
 
+  EventBase* getEventBase() const {
+    return eventBase_;
+  }
+
  private:
   AsyncUDPSocket(const AsyncUDPSocket&) = delete;
   AsyncUDPSocket& operator=(const AsyncUDPSocket&) = delete;