Options for binding a socket before connecting. The two alternatives are mutually exclusive: ‐ SocketAddress: bind to a local address before connecting. ‐ NetworkSocket: use a pre‐bound (or pre‐created) socket fd. Ownership of the fd is transferred to the AsyncSocketTransport.

Synopsis

Declared in <folly/io/async/AsyncSocketTransport.h>

using BindOptions = std::variant<folly::SocketAddress, NetworkSocket>;

Created with MrDocs