From: Neel Goyal Date: Wed, 26 Jul 2017 18:31:11 +0000 (-0700) Subject: Add getEventBase() to AsyncUDPSocket X-Git-Tag: v2017.07.31.00~23 X-Git-Url: http://demsky.eecs.uci.edu/git/?a=commitdiff_plain;h=709f4ff7a85a701eadbf5650ddcd8c8d9927ef34;p=folly.git Add getEventBase() to AsyncUDPSocket Summary: Add an event base getter for AsyncUDPSocket similar to the other socket classes. Reviewed By: knekritz Differential Revision: D5498587 fbshipit-source-id: ac3179e03485328417ed9863f6bb790de7c691cb --- diff --git a/folly/io/async/AsyncUDPSocket.h b/folly/io/async/AsyncUDPSocket.h index d327c1d6..892d9c90 100644 --- a/folly/io/async/AsyncUDPSocket.h +++ b/folly/io/async/AsyncUDPSocket.h @@ -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;