From 709f4ff7a85a701eadbf5650ddcd8c8d9927ef34 Mon Sep 17 00:00:00 2001 From: Neel Goyal Date: Wed, 26 Jul 2017 11:31:11 -0700 Subject: [PATCH] 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 --- folly/io/async/AsyncUDPSocket.h | 4 ++++ 1 file changed, 4 insertions(+) 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; -- 2.34.1