class Provider
Defined at line 43834 of file fidling/gen/sdk/fidl/fuchsia.posix.socket/fuchsia.posix.socket/hlcpp/fuchsia/posix/socket/cpp/fidl.h
Provider implements the POSIX sockets API.
*Warning:* This protocol is not yet ready for direct use by clients.
Instead, clients should use the BSD sockets API to interact with sockets.
We plan to change this protocol substantially and clients that couple
directly to this protocol will make those changes more difficult.
Public Members
static const char[] Name_
Public Methods
void ~Provider ()
void StreamSocketWithOptions (::fuchsia::posix::socket::Domaindomain,::fuchsia::posix::socket::StreamSocketProtocolproto,::fuchsia::posix::socket::SocketCreationOptionsopts,StreamSocketWithOptionsCallbackcallback)
Requests a stream socket with the specified parameters and the creation
options.
void StreamSocket (::fuchsia::posix::socket::Domaindomain,::fuchsia::posix::socket::StreamSocketProtocolproto,StreamSocketCallbackcallback)
Requests a stream socket with the specified parameters.
void DatagramSocketDeprecated (::fuchsia::posix::socket::Domaindomain,::fuchsia::posix::socket::DatagramSocketProtocolproto,DatagramSocketDeprecatedCallbackcallback)
Requests a datagram socket with the specified parameters.
TODO(https://fxbug.dev/42165881): Remove this method once no more callers rely on it.
void DatagramSocket (::fuchsia::posix::socket::Domaindomain,::fuchsia::posix::socket::DatagramSocketProtocolproto,DatagramSocketCallbackcallback)
Requests a datagram socket with the specified parameters.
void DatagramSocketWithOptions (::fuchsia::posix::socket::Domaindomain,::fuchsia::posix::socket::DatagramSocketProtocolproto,::fuchsia::posix::socket::SocketCreationOptionsopts,DatagramSocketWithOptionsCallbackcallback)
Requests a datagram socket with the specified parameters and the creation
options.
void InterfaceIndexToName (uint64_t index, InterfaceIndexToNameCallback callback)
Looks up an interface by its index and returns its name. Returns
`ZX_ERR_NOT_FOUND` if the specified index doesn't exist.
void InterfaceNameToIndex (::std::string name, InterfaceNameToIndexCallback callback)
Looks up an interface by its name and returns its index. Returns
`ZX_ERR_NOT_FOUND` if the specified name doesn't exist.
void InterfaceNameToFlags (::std::string name, InterfaceNameToFlagsCallback callback)
Looks up an interface by its name and returns its flags. Returns
`ZX_ERR_NOT_FOUND` if the specified name doesn't exist.
void GetInterfaceAddresses (GetInterfaceAddressesCallback callback)
Requests a list of [`fuchsia.posix.socket.InterfaceAddresses`]
describing the network interfaces on the system.