/*
- * Copyright 2017 Facebook, Inc.
+ * Copyright 2014-present Facebook, Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
return ::sendmsg(socket, message, flags);
}
+ // Non-null only when we are reading
+ ReadCallback* readCallback_;
+
private:
AsyncUDPSocket(const AsyncUDPSocket&) = delete;
AsyncUDPSocket& operator=(const AsyncUDPSocket&) = delete;
// Temp space to receive client address
folly::SocketAddress clientAddress_;
- // Non-null only when we are reading
- ReadCallback* readCallback_;
-
bool reuseAddr_{true};
bool reusePort_{false};
};