folly::AsyncUDPServerSocket::bind

Binds the underlying socket to a local address.

Synopsis

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

void
bind(
    folly::SocketAddress const& addy,
    SocketOptionMap const& options = emptySocketOptionMap,
    std::string const& ifName = "");

Parameters

NameDescription
addyThe local address to bind to.
optionsSocket options applied before and after binding.
ifNameThe network interface to bind to, or empty for any.