Change AsyncUDP's readCallback to be protected.
[folly.git] / folly / io / async / AsyncUDPSocket.h
index 6d49ed675f172030079fc86c3e098505bf0ed597..2166eb0fb061f0465be9f320a26599101e485f6a 100644 (file)
@@ -167,6 +167,9 @@ class AsyncUDPSocket : public EventHandler {
     return ::sendmsg(socket, message, flags);
   }
 
+  // Non-null only when we are reading
+  ReadCallback* readCallback_;
+
  private:
   AsyncUDPSocket(const AsyncUDPSocket&) = delete;
   AsyncUDPSocket& operator=(const AsyncUDPSocket&) = delete;
@@ -186,9 +189,6 @@ class AsyncUDPSocket : public EventHandler {
   // Temp space to receive client address
   folly::SocketAddress clientAddress_;
 
-  // Non-null only when we are reading
-  ReadCallback* readCallback_;
-
   bool reuseAddr_{true};
   bool reusePort_{false};
 };