fuchsia.posix.socket

Added: 11

PROTOCOLS

BaseDatagramSocket

Defined in fuchsia.posix.socket/socket.fidl

Base protocol shared by all datagram sockets.

Complete implementations of a datagram socket should compose this protocol.

AddIpMembership

Set SOL_IP -> IP_ADD_MEMBERSHIP

Request

NameType
membership IpMulticastMembership

Response

NameType
payload BaseNetworkSocket_AddIpMembership_Result

AddIpv6Membership

Set SOL_IPV6 -> IPV6_ADD_MEMBERSHIP.

Request

NameType
membership Ipv6MulticastMembership

Response

NameType
payload BaseNetworkSocket_AddIpv6Membership_Result

Bind

Sets the local address used for the socket.

Request

NameType
addr fuchsia.net/SocketAddress

Response

NameType
payload BaseNetworkSocket_Bind_Result

Clone2

Request

NameType
request server_end:fuchsia.unknown/Cloneable

Close

Terminates the connection.

After calling Close, the client must not send any other requests.

Servers, after sending the status response, should close the connection regardless of status and without sending an epitaph.

Closing the client end of the channel should be semantically equivalent to calling Close without knowing when the close has completed or its status.

Request

<EMPTY>

Response

NameType
payload fuchsia.unknown/Closeable_Close_Result

Connect

Initiates a connection to a remote address.

Request

NameType
addr fuchsia.net/SocketAddress

Response

NameType
payload BaseNetworkSocket_Connect_Result

Disconnect

Clears connection information from this socket.

Request

<EMPTY>

Response

NameType
payload BaseNetworkSocket_Disconnect_Result

DropIpMembership

Set SOL_IP -> IP_DROP_MEMBERSHIP

Request

NameType
membership IpMulticastMembership

Response

NameType
payload BaseNetworkSocket_DropIpMembership_Result

DropIpv6Membership

Set SOL_IPV6 -> IPV6_DROP_MEMBERSHIP.

Request

NameType
membership Ipv6MulticastMembership

Response

NameType
payload BaseNetworkSocket_DropIpv6Membership_Result

GetAcceptConn

Get SOL_SOCKET -> SO_ACCEPTCONN.

Request

<EMPTY>

Response

NameType
payload BaseSocket_GetAcceptConn_Result

GetBindToDevice

Get SOL_SOCKET -> SO_BINDTODEVICE.

Request

<EMPTY>

Response

NameType
payload BaseSocket_GetBindToDevice_Result

GetBindToInterfaceIndex

Get SOL_SOCKET -> SO_BINDTOIFINDEX.

Added: 20

Request

<EMPTY>

Response

NameType
payload BaseSocket_GetBindToInterfaceIndex_Result

GetBroadcast

Get SOL_SOCKET -> SO_BROADCAST.

Request

<EMPTY>

Response

NameType
payload BaseSocket_GetBroadcast_Result

GetError

Get SOL_SOCKET -> SO_ERROR. Returns the last error if there is an error set on the socket.

Request

<EMPTY>

Response

NameType
payload BaseSocket_GetError_Result

GetInfo

Retrieves creation information from the socket.

  • response domain the socket's associated domain.
  • response proto the socket's associated protocol.

Request

<EMPTY>

Response

NameType
payload BaseDatagramSocket_GetInfo_Result

GetIpMulticastInterface

Get SOL_IP -> IP_MULTICAST_IF.

Request

<EMPTY>

Response

NameType
payload BaseNetworkSocket_GetIpMulticastInterface_Result

GetIpMulticastLoopback

Get SOL_IP -> IP_MULTICAST_LOOP.

Request

<EMPTY>

Response

NameType
payload BaseNetworkSocket_GetIpMulticastLoopback_Result

GetIpMulticastTtl

Get SOL_IP -> IP_MULTICAST_TTL.

Request

<EMPTY>

Response

NameType
payload BaseNetworkSocket_GetIpMulticastTtl_Result

GetIpPacketInfo

Get SOL_IP -> IP_PKTINFO.

Request

<EMPTY>

Response

NameType
payload BaseNetworkSocket_GetIpPacketInfo_Result

GetIpReceiveOriginalDestinationAddress

Get SOL_IP -> IP_RECVORIGDSTADDR

Added: 15

Request

<EMPTY>

Response

NameType
payload BaseNetworkSocket_GetIpReceiveOriginalDestinationAddress_Result

GetIpReceiveTtl

Get SOL_IP -> IP_RECVTTL.

Request

<EMPTY>

Response

NameType
payload BaseNetworkSocket_GetIpReceiveTtl_Result

GetIpReceiveTypeOfService

Get SOL_IP -> IP_RECVTOS.

Request

<EMPTY>

Response

NameType
payload BaseNetworkSocket_GetIpReceiveTypeOfService_Result

GetIpTransparent

Get SOL_IP -> IP_TRANSPARENT

Added: 15

Request

<EMPTY>

Response

NameType
payload BaseNetworkSocket_GetIpTransparent_Result

GetIpTtl

Get SOL_IP -> IP_TTL.

Request

<EMPTY>

Response

NameType
payload BaseNetworkSocket_GetIpTtl_Result

GetIpTypeOfService

Get SOL_IP -> IP_TOS.

Request

<EMPTY>

Response

NameType
payload BaseNetworkSocket_GetIpTypeOfService_Result

GetIpv6MulticastHops

Get SOL_IPV6 -> IPV6_MULTICAST_HOPS.

Request

<EMPTY>

Response

NameType
payload BaseNetworkSocket_GetIpv6MulticastHops_Result

GetIpv6MulticastInterface

Get SOL_IPV6 -> IPV6_MULTICAST_IF.

Request

<EMPTY>

Response

NameType
payload BaseNetworkSocket_GetIpv6MulticastInterface_Result

GetIpv6MulticastLoopback

Get SOL_IPV6 -> IPV6_MULTICAST_LOOP.

Request

<EMPTY>

Response

NameType
payload BaseNetworkSocket_GetIpv6MulticastLoopback_Result

GetIpv6Only

Get SOL_IPV6 -> IPV6_V6ONLY.

Request

<EMPTY>

Response

NameType
payload BaseNetworkSocket_GetIpv6Only_Result

GetIpv6ReceiveHopLimit

Get SOL_IPV6 -> IPV6_RECVHOPLIMIT.

Request

<EMPTY>

Response

NameType
payload BaseNetworkSocket_GetIpv6ReceiveHopLimit_Result

GetIpv6ReceivePacketInfo

Get SOL_IPV6 -> IPV6_RECVPKTINFO.

Request

<EMPTY>

Response

NameType
payload BaseNetworkSocket_GetIpv6ReceivePacketInfo_Result

GetIpv6ReceiveTrafficClass

Get SOL_IPV6 -> IPV6_RECVTCLASS.

Request

<EMPTY>

Response

NameType
payload BaseNetworkSocket_GetIpv6ReceiveTrafficClass_Result

GetIpv6TrafficClass

Get SOL_IPV6 -> IPV6_TCLASS.

Request

<EMPTY>

Response

NameType
payload BaseNetworkSocket_GetIpv6TrafficClass_Result

GetIpv6UnicastHops

Get SOL_IPV6 -> IPV6_UNICAST_HOPS.

Request

<EMPTY>

Response

NameType
payload BaseNetworkSocket_GetIpv6UnicastHops_Result

GetKeepAlive

Get SOL_SOCKET -> SO_KEEPALIVE.

Request

<EMPTY>

Response

NameType
payload BaseSocket_GetKeepAlive_Result

GetLinger

Get SOL_SOCKET -> SO_LINGER.

Request

<EMPTY>

Response

NameType
payload BaseSocket_GetLinger_Result

GetMark

Like getting SOL_SOCKET -> SO_MARK. The major difference is that unlike the standard SO_MARK, this API has multiple mark domains and each mark can be retrieved independently in each domain.

Added: HEAD

Request

NameType
domain MarkDomain

Response

NameType
payload BaseSocket_GetMark_Result

GetNoCheck

Get SOL_SOCKET -> SO_NO_CHECK.

Request

<EMPTY>

Response

NameType
payload BaseSocket_GetNoCheck_Result

GetOriginalDestination

Get SOL_IP -> SO_ORIGINAL_DST.

Added: 15

Request

<EMPTY>

Response

NameType
payload BaseNetworkSocket_GetOriginalDestination_Result

GetOutOfBandInline

Get SOL_SOCKET -> SO_OOBINLINE.

Request

<EMPTY>

Response

NameType
payload BaseSocket_GetOutOfBandInline_Result

GetPeerName

Retrieves the remote socket address.

Request

<EMPTY>

Response

NameType
payload BaseNetworkSocket_GetPeerName_Result

GetReceiveBuffer

Get SOL_SOCKET -> SO_RCVBUF.

Request

<EMPTY>

Response

NameType
payload BaseSocket_GetReceiveBuffer_Result

GetReuseAddress

Get SOL_SOCKET -> SO_REUSEADDR.

Request

<EMPTY>

Response

NameType
payload BaseSocket_GetReuseAddress_Result

GetReusePort

Get SOL_SOCKET -> SO_REUSEPORT.

Request

<EMPTY>

Response

NameType
payload BaseSocket_GetReusePort_Result

GetSendBuffer

Get SOL_SOCKET -> SO_SNDBUF.

Request

<EMPTY>

Response

NameType
payload BaseSocket_GetSendBuffer_Result

GetSockName

Retrieves the local socket address.

Request

<EMPTY>

Response

NameType
payload BaseNetworkSocket_GetSockName_Result

GetTimestamp

Get SOL_SOCKET -> SO_TIMESTAMP or SO_TIMESTAMPNS.

Request

<EMPTY>

Response

NameType
payload BaseSocket_GetTimestamp_Result

Query

Request

<EMPTY>

Response

NameType
protocol vector<uint8>

SetBindToDevice

Set SOL_SOCKET -> SO_BINDTODEVICE.

Request

NameType
value fuchsia.net.interfaces/Name

Response

NameType
payload BaseSocket_SetBindToDevice_Result

SetBindToInterfaceIndex

Set SOL_SOCKET -> SO_BINDTOIFINDEX. If value is 0, this clears the bound interface.

Added: 20

Request

NameType
value fuchsia.net/InterfaceId

Response

NameType
payload BaseSocket_SetBindToInterfaceIndex_Result

SetBroadcast

Set SOL_SOCKET -> SO_BROADCAST.

Request

NameType
value bool

Response

NameType
payload BaseSocket_SetBroadcast_Result

SetIpMulticastInterface

Set SOL_IP -> IP_MULTICAST_IF.

Request

NameType
iface fuchsia.net/InterfaceId
address fuchsia.net/Ipv4Address

Response

NameType
payload BaseNetworkSocket_SetIpMulticastInterface_Result

SetIpMulticastLoopback

Set SOL_IP -> IP_MULTICAST_LOOP.

Request

NameType
value bool

Response

NameType
payload BaseNetworkSocket_SetIpMulticastLoopback_Result

SetIpMulticastTtl

Set SOL_IP -> IP_MULTICAST_TTL.

Request

NameType
value OptionalUint8

Response

NameType
payload BaseNetworkSocket_SetIpMulticastTtl_Result

SetIpPacketInfo

Set SOL_IP -> IP_PKTINFO.

Request

NameType
value bool

Response

NameType
payload BaseNetworkSocket_SetIpPacketInfo_Result

SetIpReceiveOriginalDestinationAddress

Set SOL_IP -> IP_RECVORIGDSTADDR

Added: 15

Request

NameType
value bool

Response

NameType
payload BaseNetworkSocket_SetIpReceiveOriginalDestinationAddress_Result

SetIpReceiveTtl

Set SOL_IP -> IP_RECVTTL.

Request

NameType
value bool

Response

NameType
payload BaseNetworkSocket_SetIpReceiveTtl_Result

SetIpReceiveTypeOfService

Set SOL_IP -> IP_RECVTOS.

Request

NameType
value bool

Response

NameType
payload BaseNetworkSocket_SetIpReceiveTypeOfService_Result

SetIpTransparent

Set SOL_IP -> IP_TRANSPARENT

Added: 15

Request

NameType
value bool

Response

NameType
payload BaseNetworkSocket_SetIpTransparent_Result

SetIpTtl

Set SOL_IP -> IP_TTL.

Request

NameType
value OptionalUint8

Response

NameType
payload BaseNetworkSocket_SetIpTtl_Result

SetIpTypeOfService

Set SOL_IP -> IP_TOS.

Request

NameType
value uint8

Response

NameType
payload BaseNetworkSocket_SetIpTypeOfService_Result

SetIpv6MulticastHops

Set SOL_IPV6 -> IPV6_MULTICAST_HOPS.

Request

NameType
value OptionalUint8

Response

NameType
payload BaseNetworkSocket_SetIpv6MulticastHops_Result

SetIpv6MulticastInterface

Set SOL_IPV6 -> IPV6_MULTICAST_IF.

Request

NameType
value fuchsia.net/InterfaceId

Response

NameType
payload BaseNetworkSocket_SetIpv6MulticastInterface_Result

SetIpv6MulticastLoopback

Set SOL_IPV6 -> IPV6_MULTICAST_LOOP.

Request

NameType
value bool

Response

NameType
payload BaseNetworkSocket_SetIpv6MulticastLoopback_Result

SetIpv6Only

Set SOL_IPV6 -> IPV6_V6ONLY.

Request

NameType
value bool

Response

NameType
payload BaseNetworkSocket_SetIpv6Only_Result

SetIpv6ReceiveHopLimit

Set SOL_IPV6 -> IPV6_RECVHOPLIMIT.

Request

NameType
value bool

Response

NameType
payload BaseNetworkSocket_SetIpv6ReceiveHopLimit_Result

SetIpv6ReceivePacketInfo

Set SOL_IPV6 -> IPV6_RECVPKTINFO.

Request

NameType
value bool

Response

NameType
payload BaseNetworkSocket_SetIpv6ReceivePacketInfo_Result

SetIpv6ReceiveTrafficClass

Set SOL_IPV6 -> IPV6_RECVTCLASS.

Request

NameType
value bool

Response

NameType
payload BaseNetworkSocket_SetIpv6ReceiveTrafficClass_Result

SetIpv6TrafficClass

Set SOL_IPV6 -> IPV6_TCLASS

Request

NameType
value OptionalUint8

Response

NameType
payload BaseNetworkSocket_SetIpv6TrafficClass_Result

SetIpv6UnicastHops

Set SOL_IPV6 -> IPV6_UNICAST_HOPS.

Request

NameType
value OptionalUint8

Response

NameType
payload BaseNetworkSocket_SetIpv6UnicastHops_Result

SetKeepAlive

Set SOL_SOCKET -> SO_KEEPALIVE.

Request

NameType
value bool

Response

NameType
payload BaseSocket_SetKeepAlive_Result

SetLinger

Set SOL_SOCKET -> SO_LINGER.

Request

NameType
linger bool
length_secs uint32

Response

NameType
payload BaseSocket_SetLinger_Result

SetMark

Like setting SOL_SOCKET -> SO_MARK. The major difference is that unlike the standard SO_MARK, this API has multiple mark domains and each mark can be set independently in each domain.

Added: HEAD

Request

NameType
domain MarkDomain
mark OptionalUint32

Response

NameType
payload BaseSocket_SetMark_Result

SetNoCheck

Set SOL_SOCKET -> SO_NO_CHECK.

Request

NameType
value bool

Response

NameType
payload BaseSocket_SetNoCheck_Result

SetOutOfBandInline

Set SOL_SOCKET -> SO_OOBINLINE.

Request

NameType
value bool

Response

NameType
payload BaseSocket_SetOutOfBandInline_Result

SetReceiveBuffer

Set SOL_SOCKET -> SO_RCVBUF.

Request

NameType
value_bytes uint64

Response

NameType
payload BaseSocket_SetReceiveBuffer_Result

SetReuseAddress

Set SOL_SOCKET -> SO_REUSEADDR.

Request

NameType
value bool

Response

NameType
payload BaseSocket_SetReuseAddress_Result

SetReusePort

Set SOL_SOCKET -> SO_REUSEPORT.

Request

NameType
value bool

Response

NameType
payload BaseSocket_SetReusePort_Result

SetSendBuffer

Set SOL_SOCKET -> SO_SNDBUF.

Request

NameType
value_bytes uint64

Response

NameType
payload BaseSocket_SetSendBuffer_Result

SetTimestamp

Set SOL_SOCKET -> SO_TIMESTAMP or SO_TIMESTAMPNS.

Request

NameType
value TimestampOption

Response

NameType
payload BaseSocket_SetTimestamp_Result

Shutdown

Shuts down part of the socket.

Request

NameType
mode ShutdownMode

Response

NameType
payload BaseNetworkSocket_Shutdown_Result

BaseNetworkSocket

Defined in fuchsia.posix.socket/socket.fidl

A network socket.

AddIpMembership

Set SOL_IP -> IP_ADD_MEMBERSHIP

Request

NameType
membership IpMulticastMembership

Response

NameType
payload BaseNetworkSocket_AddIpMembership_Result

AddIpv6Membership

Set SOL_IPV6 -> IPV6_ADD_MEMBERSHIP.

Request

NameType
membership Ipv6MulticastMembership

Response

NameType
payload BaseNetworkSocket_AddIpv6Membership_Result

Bind

Sets the local address used for the socket.

Request

NameType
addr fuchsia.net/SocketAddress

Response

NameType
payload BaseNetworkSocket_Bind_Result

Clone2

Request

NameType
request server_end:fuchsia.unknown/Cloneable

Close

Terminates the connection.

After calling Close, the client must not send any other requests.

Servers, after sending the status response, should close the connection regardless of status and without sending an epitaph.

Closing the client end of the channel should be semantically equivalent to calling Close without knowing when the close has completed or its status.

Request

<EMPTY>

Response

NameType
payload fuchsia.unknown/Closeable_Close_Result

Connect

Initiates a connection to a remote address.

Request

NameType
addr fuchsia.net/SocketAddress

Response

NameType
payload BaseNetworkSocket_Connect_Result

Disconnect

Clears connection information from this socket.

Request

<EMPTY>

Response

NameType
payload BaseNetworkSocket_Disconnect_Result

DropIpMembership

Set SOL_IP -> IP_DROP_MEMBERSHIP

Request

NameType
membership IpMulticastMembership

Response

NameType
payload BaseNetworkSocket_DropIpMembership_Result

DropIpv6Membership

Set SOL_IPV6 -> IPV6_DROP_MEMBERSHIP.

Request

NameType
membership Ipv6MulticastMembership

Response

NameType
payload BaseNetworkSocket_DropIpv6Membership_Result

GetAcceptConn

Get SOL_SOCKET -> SO_ACCEPTCONN.

Request

<EMPTY>

Response

NameType
payload BaseSocket_GetAcceptConn_Result

GetBindToDevice

Get SOL_SOCKET -> SO_BINDTODEVICE.

Request

<EMPTY>

Response

NameType
payload BaseSocket_GetBindToDevice_Result

GetBindToInterfaceIndex

Get SOL_SOCKET -> SO_BINDTOIFINDEX.

Added: 20

Request

<EMPTY>

Response

NameType
payload BaseSocket_GetBindToInterfaceIndex_Result

GetBroadcast

Get SOL_SOCKET -> SO_BROADCAST.

Request

<EMPTY>

Response

NameType
payload BaseSocket_GetBroadcast_Result

GetError

Get SOL_SOCKET -> SO_ERROR. Returns the last error if there is an error set on the socket.

Request

<EMPTY>

Response

NameType
payload BaseSocket_GetError_Result

GetIpMulticastInterface

Get SOL_IP -> IP_MULTICAST_IF.

Request

<EMPTY>

Response

NameType
payload BaseNetworkSocket_GetIpMulticastInterface_Result

GetIpMulticastLoopback

Get SOL_IP -> IP_MULTICAST_LOOP.

Request

<EMPTY>

Response

NameType
payload BaseNetworkSocket_GetIpMulticastLoopback_Result

GetIpMulticastTtl

Get SOL_IP -> IP_MULTICAST_TTL.

Request

<EMPTY>

Response

NameType
payload BaseNetworkSocket_GetIpMulticastTtl_Result

GetIpPacketInfo

Get SOL_IP -> IP_PKTINFO.

Request

<EMPTY>

Response

NameType
payload BaseNetworkSocket_GetIpPacketInfo_Result

GetIpReceiveOriginalDestinationAddress

Get SOL_IP -> IP_RECVORIGDSTADDR

Added: 15

Request

<EMPTY>

Response

NameType
payload BaseNetworkSocket_GetIpReceiveOriginalDestinationAddress_Result

GetIpReceiveTtl

Get SOL_IP -> IP_RECVTTL.

Request

<EMPTY>

Response

NameType
payload BaseNetworkSocket_GetIpReceiveTtl_Result

GetIpReceiveTypeOfService

Get SOL_IP -> IP_RECVTOS.

Request

<EMPTY>

Response

NameType
payload BaseNetworkSocket_GetIpReceiveTypeOfService_Result

GetIpTransparent

Get SOL_IP -> IP_TRANSPARENT

Added: 15

Request

<EMPTY>

Response

NameType
payload BaseNetworkSocket_GetIpTransparent_Result

GetIpTtl

Get SOL_IP -> IP_TTL.

Request

<EMPTY>

Response

NameType
payload BaseNetworkSocket_GetIpTtl_Result

GetIpTypeOfService

Get SOL_IP -> IP_TOS.

Request

<EMPTY>

Response

NameType
payload BaseNetworkSocket_GetIpTypeOfService_Result

GetIpv6MulticastHops

Get SOL_IPV6 -> IPV6_MULTICAST_HOPS.

Request

<EMPTY>

Response

NameType
payload BaseNetworkSocket_GetIpv6MulticastHops_Result

GetIpv6MulticastInterface

Get SOL_IPV6 -> IPV6_MULTICAST_IF.

Request

<EMPTY>

Response

NameType
payload BaseNetworkSocket_GetIpv6MulticastInterface_Result

GetIpv6MulticastLoopback

Get SOL_IPV6 -> IPV6_MULTICAST_LOOP.

Request

<EMPTY>

Response

NameType
payload BaseNetworkSocket_GetIpv6MulticastLoopback_Result

GetIpv6Only

Get SOL_IPV6 -> IPV6_V6ONLY.

Request

<EMPTY>

Response

NameType
payload BaseNetworkSocket_GetIpv6Only_Result

GetIpv6ReceiveHopLimit

Get SOL_IPV6 -> IPV6_RECVHOPLIMIT.

Request

<EMPTY>

Response

NameType
payload BaseNetworkSocket_GetIpv6ReceiveHopLimit_Result

GetIpv6ReceivePacketInfo

Get SOL_IPV6 -> IPV6_RECVPKTINFO.

Request

<EMPTY>

Response

NameType
payload BaseNetworkSocket_GetIpv6ReceivePacketInfo_Result

GetIpv6ReceiveTrafficClass

Get SOL_IPV6 -> IPV6_RECVTCLASS.

Request

<EMPTY>

Response

NameType
payload BaseNetworkSocket_GetIpv6ReceiveTrafficClass_Result

GetIpv6TrafficClass

Get SOL_IPV6 -> IPV6_TCLASS.

Request

<EMPTY>

Response

NameType
payload BaseNetworkSocket_GetIpv6TrafficClass_Result

GetIpv6UnicastHops

Get SOL_IPV6 -> IPV6_UNICAST_HOPS.

Request

<EMPTY>

Response

NameType
payload BaseNetworkSocket_GetIpv6UnicastHops_Result

GetKeepAlive

Get SOL_SOCKET -> SO_KEEPALIVE.

Request

<EMPTY>

Response

NameType
payload BaseSocket_GetKeepAlive_Result

GetLinger

Get SOL_SOCKET -> SO_LINGER.

Request

<EMPTY>

Response

NameType
payload BaseSocket_GetLinger_Result

GetMark

Like getting SOL_SOCKET -> SO_MARK. The major difference is that unlike the standard SO_MARK, this API has multiple mark domains and each mark can be retrieved independently in each domain.

Added: HEAD

Request

NameType
domain MarkDomain

Response

NameType
payload BaseSocket_GetMark_Result

GetNoCheck

Get SOL_SOCKET -> SO_NO_CHECK.

Request

<EMPTY>

Response

NameType
payload BaseSocket_GetNoCheck_Result

GetOriginalDestination

Get SOL_IP -> SO_ORIGINAL_DST.

Added: 15

Request

<EMPTY>

Response

NameType
payload BaseNetworkSocket_GetOriginalDestination_Result

GetOutOfBandInline

Get SOL_SOCKET -> SO_OOBINLINE.

Request

<EMPTY>

Response

NameType
payload BaseSocket_GetOutOfBandInline_Result

GetPeerName

Retrieves the remote socket address.

Request

<EMPTY>

Response

NameType
payload BaseNetworkSocket_GetPeerName_Result

GetReceiveBuffer

Get SOL_SOCKET -> SO_RCVBUF.

Request

<EMPTY>

Response

NameType
payload BaseSocket_GetReceiveBuffer_Result

GetReuseAddress

Get SOL_SOCKET -> SO_REUSEADDR.

Request

<EMPTY>

Response

NameType
payload BaseSocket_GetReuseAddress_Result

GetReusePort

Get SOL_SOCKET -> SO_REUSEPORT.

Request

<EMPTY>

Response

NameType
payload BaseSocket_GetReusePort_Result

GetSendBuffer

Get SOL_SOCKET -> SO_SNDBUF.

Request

<EMPTY>

Response

NameType
payload BaseSocket_GetSendBuffer_Result

GetSockName

Retrieves the local socket address.

Request

<EMPTY>

Response

NameType
payload BaseNetworkSocket_GetSockName_Result

GetTimestamp

Get SOL_SOCKET -> SO_TIMESTAMP or SO_TIMESTAMPNS.

Request

<EMPTY>

Response

NameType
payload BaseSocket_GetTimestamp_Result

Query

Request

<EMPTY>

Response

NameType
protocol vector<uint8>

SetBindToDevice

Set SOL_SOCKET -> SO_BINDTODEVICE.

Request

NameType
value fuchsia.net.interfaces/Name

Response

NameType
payload BaseSocket_SetBindToDevice_Result

SetBindToInterfaceIndex

Set SOL_SOCKET -> SO_BINDTOIFINDEX. If value is 0, this clears the bound interface.

Added: 20

Request

NameType
value fuchsia.net/InterfaceId

Response

NameType
payload BaseSocket_SetBindToInterfaceIndex_Result

SetBroadcast

Set SOL_SOCKET -> SO_BROADCAST.

Request

NameType
value bool

Response

NameType
payload BaseSocket_SetBroadcast_Result

SetIpMulticastInterface

Set SOL_IP -> IP_MULTICAST_IF.

Request

NameType
iface fuchsia.net/InterfaceId
address fuchsia.net/Ipv4Address

Response

NameType
payload BaseNetworkSocket_SetIpMulticastInterface_Result

SetIpMulticastLoopback

Set SOL_IP -> IP_MULTICAST_LOOP.

Request

NameType
value bool

Response

NameType
payload BaseNetworkSocket_SetIpMulticastLoopback_Result

SetIpMulticastTtl

Set SOL_IP -> IP_MULTICAST_TTL.

Request

NameType
value OptionalUint8

Response

NameType
payload BaseNetworkSocket_SetIpMulticastTtl_Result

SetIpPacketInfo

Set SOL_IP -> IP_PKTINFO.

Request

NameType
value bool

Response

NameType
payload BaseNetworkSocket_SetIpPacketInfo_Result

SetIpReceiveOriginalDestinationAddress

Set SOL_IP -> IP_RECVORIGDSTADDR

Added: 15

Request

NameType
value bool

Response

NameType
payload BaseNetworkSocket_SetIpReceiveOriginalDestinationAddress_Result

SetIpReceiveTtl

Set SOL_IP -> IP_RECVTTL.

Request

NameType
value bool

Response

NameType
payload BaseNetworkSocket_SetIpReceiveTtl_Result

SetIpReceiveTypeOfService

Set SOL_IP -> IP_RECVTOS.

Request

NameType
value bool

Response

NameType
payload BaseNetworkSocket_SetIpReceiveTypeOfService_Result

SetIpTransparent

Set SOL_IP -> IP_TRANSPARENT

Added: 15

Request

NameType
value bool

Response

NameType
payload BaseNetworkSocket_SetIpTransparent_Result

SetIpTtl

Set SOL_IP -> IP_TTL.

Request

NameType
value OptionalUint8

Response

NameType
payload BaseNetworkSocket_SetIpTtl_Result

SetIpTypeOfService

Set SOL_IP -> IP_TOS.

Request

NameType
value uint8

Response

NameType
payload BaseNetworkSocket_SetIpTypeOfService_Result

SetIpv6MulticastHops

Set SOL_IPV6 -> IPV6_MULTICAST_HOPS.

Request

NameType
value OptionalUint8

Response

NameType
payload BaseNetworkSocket_SetIpv6MulticastHops_Result

SetIpv6MulticastInterface

Set SOL_IPV6 -> IPV6_MULTICAST_IF.

Request

NameType
value fuchsia.net/InterfaceId

Response

NameType
payload BaseNetworkSocket_SetIpv6MulticastInterface_Result

SetIpv6MulticastLoopback

Set SOL_IPV6 -> IPV6_MULTICAST_LOOP.

Request

NameType
value bool

Response

NameType
payload BaseNetworkSocket_SetIpv6MulticastLoopback_Result

SetIpv6Only

Set SOL_IPV6 -> IPV6_V6ONLY.

Request

NameType
value bool

Response

NameType
payload BaseNetworkSocket_SetIpv6Only_Result

SetIpv6ReceiveHopLimit

Set SOL_IPV6 -> IPV6_RECVHOPLIMIT.

Request

NameType
value bool

Response

NameType
payload BaseNetworkSocket_SetIpv6ReceiveHopLimit_Result

SetIpv6ReceivePacketInfo

Set SOL_IPV6 -> IPV6_RECVPKTINFO.

Request

NameType
value bool

Response

NameType
payload BaseNetworkSocket_SetIpv6ReceivePacketInfo_Result

SetIpv6ReceiveTrafficClass

Set SOL_IPV6 -> IPV6_RECVTCLASS.

Request

NameType
value bool

Response

NameType
payload BaseNetworkSocket_SetIpv6ReceiveTrafficClass_Result

SetIpv6TrafficClass

Set SOL_IPV6 -> IPV6_TCLASS

Request

NameType
value OptionalUint8

Response

NameType
payload BaseNetworkSocket_SetIpv6TrafficClass_Result

SetIpv6UnicastHops

Set SOL_IPV6 -> IPV6_UNICAST_HOPS.

Request

NameType
value OptionalUint8

Response

NameType
payload BaseNetworkSocket_SetIpv6UnicastHops_Result

SetKeepAlive

Set SOL_SOCKET -> SO_KEEPALIVE.

Request

NameType
value bool

Response

NameType
payload BaseSocket_SetKeepAlive_Result

SetLinger

Set SOL_SOCKET -> SO_LINGER.

Request

NameType
linger bool
length_secs uint32

Response

NameType
payload BaseSocket_SetLinger_Result

SetMark

Like setting SOL_SOCKET -> SO_MARK. The major difference is that unlike the standard SO_MARK, this API has multiple mark domains and each mark can be set independently in each domain.

Added: HEAD

Request

NameType
domain MarkDomain
mark OptionalUint32

Response

NameType
payload BaseSocket_SetMark_Result

SetNoCheck

Set SOL_SOCKET -> SO_NO_CHECK.

Request

NameType
value bool

Response

NameType
payload BaseSocket_SetNoCheck_Result

SetOutOfBandInline

Set SOL_SOCKET -> SO_OOBINLINE.

Request

NameType
value bool

Response

NameType
payload BaseSocket_SetOutOfBandInline_Result

SetReceiveBuffer

Set SOL_SOCKET -> SO_RCVBUF.

Request

NameType
value_bytes uint64

Response

NameType
payload BaseSocket_SetReceiveBuffer_Result

SetReuseAddress

Set SOL_SOCKET -> SO_REUSEADDR.

Request

NameType
value bool

Response

NameType
payload BaseSocket_SetReuseAddress_Result

SetReusePort

Set SOL_SOCKET -> SO_REUSEPORT.

Request

NameType
value bool

Response

NameType
payload BaseSocket_SetReusePort_Result

SetSendBuffer

Set SOL_SOCKET -> SO_SNDBUF.

Request

NameType
value_bytes uint64

Response

NameType
payload BaseSocket_SetSendBuffer_Result

SetTimestamp

Set SOL_SOCKET -> SO_TIMESTAMP or SO_TIMESTAMPNS.

Request

NameType
value TimestampOption

Response

NameType
payload BaseSocket_SetTimestamp_Result

Shutdown

Shuts down part of the socket.

Request

NameType
mode ShutdownMode

Response

NameType
payload BaseNetworkSocket_Shutdown_Result

BaseSocket

Defined in fuchsia.posix.socket/socket.fidl

A socket.

Clone2

Request

NameType
request server_end:fuchsia.unknown/Cloneable

Close

Terminates the connection.

After calling Close, the client must not send any other requests.

Servers, after sending the status response, should close the connection regardless of status and without sending an epitaph.

Closing the client end of the channel should be semantically equivalent to calling Close without knowing when the close has completed or its status.

Request

<EMPTY>

Response

NameType
payload fuchsia.unknown/Closeable_Close_Result

GetAcceptConn

Get SOL_SOCKET -> SO_ACCEPTCONN.

Request

<EMPTY>

Response

NameType
payload BaseSocket_GetAcceptConn_Result

GetBindToDevice

Get SOL_SOCKET -> SO_BINDTODEVICE.

Request

<EMPTY>

Response

NameType
payload BaseSocket_GetBindToDevice_Result

GetBindToInterfaceIndex

Get SOL_SOCKET -> SO_BINDTOIFINDEX.

Added: 20

Request

<EMPTY>

Response

NameType
payload BaseSocket_GetBindToInterfaceIndex_Result

GetBroadcast

Get SOL_SOCKET -> SO_BROADCAST.

Request

<EMPTY>

Response

NameType
payload BaseSocket_GetBroadcast_Result

GetError

Get SOL_SOCKET -> SO_ERROR. Returns the last error if there is an error set on the socket.

Request

<EMPTY>

Response

NameType
payload BaseSocket_GetError_Result

GetKeepAlive

Get SOL_SOCKET -> SO_KEEPALIVE.

Request

<EMPTY>

Response

NameType
payload BaseSocket_GetKeepAlive_Result

GetLinger

Get SOL_SOCKET -> SO_LINGER.

Request

<EMPTY>

Response

NameType
payload BaseSocket_GetLinger_Result

GetMark

Like getting SOL_SOCKET -> SO_MARK. The major difference is that unlike the standard SO_MARK, this API has multiple mark domains and each mark can be retrieved independently in each domain.

Added: HEAD

Request

NameType
domain MarkDomain

Response

NameType
payload BaseSocket_GetMark_Result

GetNoCheck

Get SOL_SOCKET -> SO_NO_CHECK.

Request

<EMPTY>

Response

NameType
payload BaseSocket_GetNoCheck_Result

GetOutOfBandInline

Get SOL_SOCKET -> SO_OOBINLINE.

Request

<EMPTY>

Response

NameType
payload BaseSocket_GetOutOfBandInline_Result

GetReceiveBuffer

Get SOL_SOCKET -> SO_RCVBUF.

Request

<EMPTY>

Response

NameType
payload BaseSocket_GetReceiveBuffer_Result

GetReuseAddress

Get SOL_SOCKET -> SO_REUSEADDR.

Request

<EMPTY>

Response

NameType
payload BaseSocket_GetReuseAddress_Result

GetReusePort

Get SOL_SOCKET -> SO_REUSEPORT.

Request

<EMPTY>

Response

NameType
payload BaseSocket_GetReusePort_Result

GetSendBuffer

Get SOL_SOCKET -> SO_SNDBUF.

Request

<EMPTY>

Response

NameType
payload BaseSocket_GetSendBuffer_Result

GetTimestamp

Get SOL_SOCKET -> SO_TIMESTAMP or SO_TIMESTAMPNS.

Request

<EMPTY>

Response

NameType
payload BaseSocket_GetTimestamp_Result

Query

Request

<EMPTY>

Response

NameType
protocol vector<uint8>

SetBindToDevice

Set SOL_SOCKET -> SO_BINDTODEVICE.

Request

NameType
value fuchsia.net.interfaces/Name

Response

NameType
payload BaseSocket_SetBindToDevice_Result

SetBindToInterfaceIndex

Set SOL_SOCKET -> SO_BINDTOIFINDEX. If value is 0, this clears the bound interface.

Added: 20

Request

NameType
value fuchsia.net/InterfaceId

Response

NameType
payload BaseSocket_SetBindToInterfaceIndex_Result

SetBroadcast

Set SOL_SOCKET -> SO_BROADCAST.

Request

NameType
value bool

Response

NameType
payload BaseSocket_SetBroadcast_Result

SetKeepAlive

Set SOL_SOCKET -> SO_KEEPALIVE.

Request

NameType
value bool

Response

NameType
payload BaseSocket_SetKeepAlive_Result

SetLinger

Set SOL_SOCKET -> SO_LINGER.

Request

NameType
linger bool
length_secs uint32

Response

NameType
payload BaseSocket_SetLinger_Result

SetMark

Like setting SOL_SOCKET -> SO_MARK. The major difference is that unlike the standard SO_MARK, this API has multiple mark domains and each mark can be set independently in each domain.

Added: HEAD

Request

NameType
domain MarkDomain
mark OptionalUint32

Response

NameType
payload BaseSocket_SetMark_Result

SetNoCheck

Set SOL_SOCKET -> SO_NO_CHECK.

Request

NameType
value bool

Response

NameType
payload BaseSocket_SetNoCheck_Result

SetOutOfBandInline

Set SOL_SOCKET -> SO_OOBINLINE.

Request

NameType
value bool

Response

NameType
payload BaseSocket_SetOutOfBandInline_Result

SetReceiveBuffer

Set SOL_SOCKET -> SO_RCVBUF.

Request

NameType
value_bytes uint64

Response

NameType
payload BaseSocket_SetReceiveBuffer_Result

SetReuseAddress

Set SOL_SOCKET -> SO_REUSEADDR.

Request

NameType
value bool

Response

NameType
payload BaseSocket_SetReuseAddress_Result

SetReusePort

Set SOL_SOCKET -> SO_REUSEPORT.

Request

NameType
value bool

Response

NameType
payload BaseSocket_SetReusePort_Result

SetSendBuffer

Set SOL_SOCKET -> SO_SNDBUF.

Request

NameType
value_bytes uint64

Response

NameType
payload BaseSocket_SetSendBuffer_Result

SetTimestamp

Set SOL_SOCKET -> SO_TIMESTAMP or SO_TIMESTAMPNS.

Request

NameType
value TimestampOption

Response

NameType
payload BaseSocket_SetTimestamp_Result

DatagramSocket

Defined in fuchsia.posix.socket/socket.fidl

A datagram socket.

AddIpMembership

Set SOL_IP -> IP_ADD_MEMBERSHIP

Request

NameType
membership IpMulticastMembership

Response

NameType
payload BaseNetworkSocket_AddIpMembership_Result

AddIpv6Membership

Set SOL_IPV6 -> IPV6_ADD_MEMBERSHIP.

Request

NameType
membership Ipv6MulticastMembership

Response

NameType
payload BaseNetworkSocket_AddIpv6Membership_Result

Bind

Sets the local address used for the socket.

Request

NameType
addr fuchsia.net/SocketAddress

Response

NameType
payload BaseNetworkSocket_Bind_Result

Clone2

Request

NameType
request server_end:fuchsia.unknown/Cloneable

Close

Terminates the connection.

After calling Close, the client must not send any other requests.

Servers, after sending the status response, should close the connection regardless of status and without sending an epitaph.

Closing the client end of the channel should be semantically equivalent to calling Close without knowing when the close has completed or its status.

Request

<EMPTY>

Response

NameType
payload fuchsia.unknown/Closeable_Close_Result

Connect

Initiates a connection to a remote address.

Request

NameType
addr fuchsia.net/SocketAddress

Response

NameType
payload BaseNetworkSocket_Connect_Result

Describe

Request

<EMPTY>

Response

NameType
payload DatagramSocketDescribeResponse

Disconnect

Clears connection information from this socket.

Request

<EMPTY>

Response

NameType
payload BaseNetworkSocket_Disconnect_Result

DropIpMembership

Set SOL_IP -> IP_DROP_MEMBERSHIP

Request

NameType
membership IpMulticastMembership

Response

NameType
payload BaseNetworkSocket_DropIpMembership_Result

DropIpv6Membership

Set SOL_IPV6 -> IPV6_DROP_MEMBERSHIP.

Request

NameType
membership Ipv6MulticastMembership

Response

NameType
payload BaseNetworkSocket_DropIpv6Membership_Result

GetAcceptConn

Get SOL_SOCKET -> SO_ACCEPTCONN.

Request

<EMPTY>

Response

NameType
payload BaseSocket_GetAcceptConn_Result

GetBindToDevice

Get SOL_SOCKET -> SO_BINDTODEVICE.

Request

<EMPTY>

Response

NameType
payload BaseSocket_GetBindToDevice_Result

GetBindToInterfaceIndex

Get SOL_SOCKET -> SO_BINDTOIFINDEX.

Added: 20

Request

<EMPTY>

Response

NameType
payload BaseSocket_GetBindToInterfaceIndex_Result

GetBroadcast

Get SOL_SOCKET -> SO_BROADCAST.

Request

<EMPTY>

Response

NameType
payload BaseSocket_GetBroadcast_Result

GetError

Get SOL_SOCKET -> SO_ERROR. Returns the last error if there is an error set on the socket.

Request

<EMPTY>

Response

NameType
payload BaseSocket_GetError_Result

GetInfo

Retrieves creation information from the socket.

  • response domain the socket's associated domain.
  • response proto the socket's associated protocol.

Request

<EMPTY>

Response

NameType
payload BaseDatagramSocket_GetInfo_Result

GetIpMulticastInterface

Get SOL_IP -> IP_MULTICAST_IF.

Request

<EMPTY>

Response

NameType
payload BaseNetworkSocket_GetIpMulticastInterface_Result

GetIpMulticastLoopback

Get SOL_IP -> IP_MULTICAST_LOOP.

Request

<EMPTY>

Response

NameType
payload BaseNetworkSocket_GetIpMulticastLoopback_Result

GetIpMulticastTtl

Get SOL_IP -> IP_MULTICAST_TTL.

Request

<EMPTY>

Response

NameType
payload BaseNetworkSocket_GetIpMulticastTtl_Result

GetIpPacketInfo

Get SOL_IP -> IP_PKTINFO.

Request

<EMPTY>

Response

NameType
payload BaseNetworkSocket_GetIpPacketInfo_Result

GetIpReceiveOriginalDestinationAddress

Get SOL_IP -> IP_RECVORIGDSTADDR

Added: 15

Request

<EMPTY>

Response

NameType
payload BaseNetworkSocket_GetIpReceiveOriginalDestinationAddress_Result

GetIpReceiveTtl

Get SOL_IP -> IP_RECVTTL.

Request

<EMPTY>

Response

NameType
payload BaseNetworkSocket_GetIpReceiveTtl_Result

GetIpReceiveTypeOfService

Get SOL_IP -> IP_RECVTOS.

Request

<EMPTY>

Response

NameType
payload BaseNetworkSocket_GetIpReceiveTypeOfService_Result

GetIpTransparent

Get SOL_IP -> IP_TRANSPARENT

Added: 15

Request

<EMPTY>

Response

NameType
payload BaseNetworkSocket_GetIpTransparent_Result

GetIpTtl

Get SOL_IP -> IP_TTL.

Request

<EMPTY>

Response

NameType
payload BaseNetworkSocket_GetIpTtl_Result

GetIpTypeOfService

Get SOL_IP -> IP_TOS.

Request

<EMPTY>

Response

NameType
payload BaseNetworkSocket_GetIpTypeOfService_Result

GetIpv6MulticastHops

Get SOL_IPV6 -> IPV6_MULTICAST_HOPS.

Request

<EMPTY>

Response

NameType
payload BaseNetworkSocket_GetIpv6MulticastHops_Result

GetIpv6MulticastInterface

Get SOL_IPV6 -> IPV6_MULTICAST_IF.

Request

<EMPTY>

Response

NameType
payload BaseNetworkSocket_GetIpv6MulticastInterface_Result

GetIpv6MulticastLoopback

Get SOL_IPV6 -> IPV6_MULTICAST_LOOP.

Request

<EMPTY>

Response

NameType
payload BaseNetworkSocket_GetIpv6MulticastLoopback_Result

GetIpv6Only

Get SOL_IPV6 -> IPV6_V6ONLY.

Request

<EMPTY>

Response

NameType
payload BaseNetworkSocket_GetIpv6Only_Result

GetIpv6ReceiveHopLimit

Get SOL_IPV6 -> IPV6_RECVHOPLIMIT.

Request

<EMPTY>

Response

NameType
payload BaseNetworkSocket_GetIpv6ReceiveHopLimit_Result

GetIpv6ReceivePacketInfo

Get SOL_IPV6 -> IPV6_RECVPKTINFO.

Request

<EMPTY>

Response

NameType
payload BaseNetworkSocket_GetIpv6ReceivePacketInfo_Result

GetIpv6ReceiveTrafficClass

Get SOL_IPV6 -> IPV6_RECVTCLASS.

Request

<EMPTY>

Response

NameType
payload BaseNetworkSocket_GetIpv6ReceiveTrafficClass_Result

GetIpv6TrafficClass

Get SOL_IPV6 -> IPV6_TCLASS.

Request

<EMPTY>

Response

NameType
payload BaseNetworkSocket_GetIpv6TrafficClass_Result

GetIpv6UnicastHops

Get SOL_IPV6 -> IPV6_UNICAST_HOPS.

Request

<EMPTY>

Response

NameType
payload BaseNetworkSocket_GetIpv6UnicastHops_Result

GetKeepAlive

Get SOL_SOCKET -> SO_KEEPALIVE.

Request

<EMPTY>

Response

NameType
payload BaseSocket_GetKeepAlive_Result

GetLinger

Get SOL_SOCKET -> SO_LINGER.

Request

<EMPTY>

Response

NameType
payload BaseSocket_GetLinger_Result

GetMark

Like getting SOL_SOCKET -> SO_MARK. The major difference is that unlike the standard SO_MARK, this API has multiple mark domains and each mark can be retrieved independently in each domain.

Added: HEAD

Request

NameType
domain MarkDomain

Response

NameType
payload BaseSocket_GetMark_Result

GetNoCheck

Get SOL_SOCKET -> SO_NO_CHECK.

Request

<EMPTY>

Response

NameType
payload BaseSocket_GetNoCheck_Result

GetOriginalDestination

Get SOL_IP -> SO_ORIGINAL_DST.

Added: 15

Request

<EMPTY>

Response

NameType
payload BaseNetworkSocket_GetOriginalDestination_Result

GetOutOfBandInline

Get SOL_SOCKET -> SO_OOBINLINE.

Request

<EMPTY>

Response

NameType
payload BaseSocket_GetOutOfBandInline_Result

GetPeerName

Retrieves the remote socket address.

Request

<EMPTY>

Response

NameType
payload BaseNetworkSocket_GetPeerName_Result

GetReceiveBuffer

Get SOL_SOCKET -> SO_RCVBUF.

Request

<EMPTY>

Response

NameType
payload BaseSocket_GetReceiveBuffer_Result

GetReuseAddress

Get SOL_SOCKET -> SO_REUSEADDR.

Request

<EMPTY>

Response

NameType
payload BaseSocket_GetReuseAddress_Result

GetReusePort

Get SOL_SOCKET -> SO_REUSEPORT.

Request

<EMPTY>

Response

NameType
payload BaseSocket_GetReusePort_Result

GetSendBuffer

Get SOL_SOCKET -> SO_SNDBUF.

Request

<EMPTY>

Response

NameType
payload BaseSocket_GetSendBuffer_Result

GetSockName

Retrieves the local socket address.

Request

<EMPTY>

Response

NameType
payload BaseNetworkSocket_GetSockName_Result

GetTimestamp

Get SOL_SOCKET -> SO_TIMESTAMP or SO_TIMESTAMPNS.

Request

<EMPTY>

Response

NameType
payload BaseSocket_GetTimestamp_Result

Query

Request

<EMPTY>

Response

NameType
protocol vector<uint8>

RecvMsgPostflight

Returns the set of requested control messages.

  • response the set of currently requested control messages.

Request

<EMPTY>

Response

NameType
payload DatagramSocket_RecvMsgPostflight_Result

SendMsgPreflight

Validates that data can be sent.

  • request args the requested disposition of data to be sent.
  • response the constraints sent data must satisfy.
  • error the error code indicating the reason for validation failure.

Request

NameType
payload DatagramSocketSendMsgPreflightRequest

Response

NameType
payload DatagramSocket_SendMsgPreflight_Result

SetBindToDevice

Set SOL_SOCKET -> SO_BINDTODEVICE.

Request

NameType
value fuchsia.net.interfaces/Name

Response

NameType
payload BaseSocket_SetBindToDevice_Result

SetBindToInterfaceIndex

Set SOL_SOCKET -> SO_BINDTOIFINDEX. If value is 0, this clears the bound interface.

Added: 20

Request

NameType
value fuchsia.net/InterfaceId

Response

NameType
payload BaseSocket_SetBindToInterfaceIndex_Result

SetBroadcast

Set SOL_SOCKET -> SO_BROADCAST.

Request

NameType
value bool

Response

NameType
payload BaseSocket_SetBroadcast_Result

SetIpMulticastInterface

Set SOL_IP -> IP_MULTICAST_IF.

Request

NameType
iface fuchsia.net/InterfaceId
address fuchsia.net/Ipv4Address

Response

NameType
payload BaseNetworkSocket_SetIpMulticastInterface_Result

SetIpMulticastLoopback

Set SOL_IP -> IP_MULTICAST_LOOP.

Request

NameType
value bool

Response

NameType
payload BaseNetworkSocket_SetIpMulticastLoopback_Result

SetIpMulticastTtl

Set SOL_IP -> IP_MULTICAST_TTL.

Request

NameType
value OptionalUint8

Response

NameType
payload BaseNetworkSocket_SetIpMulticastTtl_Result

SetIpPacketInfo

Set SOL_IP -> IP_PKTINFO.

Request

NameType
value bool

Response

NameType
payload BaseNetworkSocket_SetIpPacketInfo_Result

SetIpReceiveOriginalDestinationAddress

Set SOL_IP -> IP_RECVORIGDSTADDR

Added: 15

Request

NameType
value bool

Response

NameType
payload BaseNetworkSocket_SetIpReceiveOriginalDestinationAddress_Result

SetIpReceiveTtl

Set SOL_IP -> IP_RECVTTL.

Request

NameType
value bool

Response

NameType
payload BaseNetworkSocket_SetIpReceiveTtl_Result

SetIpReceiveTypeOfService

Set SOL_IP -> IP_RECVTOS.

Request

NameType
value bool

Response

NameType
payload BaseNetworkSocket_SetIpReceiveTypeOfService_Result

SetIpTransparent

Set SOL_IP -> IP_TRANSPARENT

Added: 15

Request

NameType
value bool

Response

NameType
payload BaseNetworkSocket_SetIpTransparent_Result

SetIpTtl

Set SOL_IP -> IP_TTL.

Request

NameType
value OptionalUint8

Response

NameType
payload BaseNetworkSocket_SetIpTtl_Result

SetIpTypeOfService

Set SOL_IP -> IP_TOS.

Request

NameType
value uint8

Response

NameType
payload BaseNetworkSocket_SetIpTypeOfService_Result

SetIpv6MulticastHops

Set SOL_IPV6 -> IPV6_MULTICAST_HOPS.

Request

NameType
value OptionalUint8

Response

NameType
payload BaseNetworkSocket_SetIpv6MulticastHops_Result

SetIpv6MulticastInterface

Set SOL_IPV6 -> IPV6_MULTICAST_IF.

Request

NameType
value fuchsia.net/InterfaceId

Response

NameType
payload BaseNetworkSocket_SetIpv6MulticastInterface_Result

SetIpv6MulticastLoopback

Set SOL_IPV6 -> IPV6_MULTICAST_LOOP.

Request

NameType
value bool

Response

NameType
payload BaseNetworkSocket_SetIpv6MulticastLoopback_Result

SetIpv6Only

Set SOL_IPV6 -> IPV6_V6ONLY.

Request

NameType
value bool

Response

NameType
payload BaseNetworkSocket_SetIpv6Only_Result

SetIpv6ReceiveHopLimit

Set SOL_IPV6 -> IPV6_RECVHOPLIMIT.

Request

NameType
value bool

Response

NameType
payload BaseNetworkSocket_SetIpv6ReceiveHopLimit_Result

SetIpv6ReceivePacketInfo

Set SOL_IPV6 -> IPV6_RECVPKTINFO.

Request

NameType
value bool

Response

NameType
payload BaseNetworkSocket_SetIpv6ReceivePacketInfo_Result

SetIpv6ReceiveTrafficClass

Set SOL_IPV6 -> IPV6_RECVTCLASS.

Request

NameType
value bool

Response

NameType
payload BaseNetworkSocket_SetIpv6ReceiveTrafficClass_Result

SetIpv6TrafficClass

Set SOL_IPV6 -> IPV6_TCLASS

Request

NameType
value OptionalUint8

Response

NameType
payload BaseNetworkSocket_SetIpv6TrafficClass_Result

SetIpv6UnicastHops

Set SOL_IPV6 -> IPV6_UNICAST_HOPS.

Request

NameType
value OptionalUint8

Response

NameType
payload BaseNetworkSocket_SetIpv6UnicastHops_Result

SetKeepAlive

Set SOL_SOCKET -> SO_KEEPALIVE.

Request

NameType
value bool

Response

NameType
payload BaseSocket_SetKeepAlive_Result

SetLinger

Set SOL_SOCKET -> SO_LINGER.

Request

NameType
linger bool
length_secs uint32

Response

NameType
payload BaseSocket_SetLinger_Result

SetMark

Like setting SOL_SOCKET -> SO_MARK. The major difference is that unlike the standard SO_MARK, this API has multiple mark domains and each mark can be set independently in each domain.

Added: HEAD

Request

NameType
domain MarkDomain
mark OptionalUint32

Response

NameType
payload BaseSocket_SetMark_Result

SetNoCheck

Set SOL_SOCKET -> SO_NO_CHECK.

Request

NameType
value bool

Response

NameType
payload BaseSocket_SetNoCheck_Result

SetOutOfBandInline

Set SOL_SOCKET -> SO_OOBINLINE.

Request

NameType
value bool

Response

NameType
payload BaseSocket_SetOutOfBandInline_Result

SetReceiveBuffer

Set SOL_SOCKET -> SO_RCVBUF.

Request

NameType
value_bytes uint64

Response

NameType
payload BaseSocket_SetReceiveBuffer_Result

SetReuseAddress

Set SOL_SOCKET -> SO_REUSEADDR.

Request

NameType
value bool

Response

NameType
payload BaseSocket_SetReuseAddress_Result

SetReusePort

Set SOL_SOCKET -> SO_REUSEPORT.

Request

NameType
value bool

Response

NameType
payload BaseSocket_SetReusePort_Result

SetSendBuffer

Set SOL_SOCKET -> SO_SNDBUF.

Request

NameType
value_bytes uint64

Response

NameType
payload BaseSocket_SetSendBuffer_Result

SetTimestamp

Set SOL_SOCKET -> SO_TIMESTAMP or SO_TIMESTAMPNS.

Request

NameType
value TimestampOption

Response

NameType
payload BaseSocket_SetTimestamp_Result

Shutdown

Shuts down part of the socket.

Request

NameType
mode ShutdownMode

Response

NameType
payload BaseNetworkSocket_Shutdown_Result

Provider

Defined in fuchsia.posix.socket/socket.fidl

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.

DatagramSocket

Requests a datagram socket with the specified parameters.

Request

NameType
domain Domain
proto DatagramSocketProtocol

Response

NameType
payload Provider_DatagramSocket_Result

DatagramSocketDeprecated

Requests a datagram socket with the specified parameters. TODO(https://fxbug.dev/42165881): Remove this method once no more callers rely on it.

Request

NameType
domain Domain
proto DatagramSocketProtocol

Response

NameType
payload Provider_DatagramSocketDeprecated_Result

GetInterfaceAddresses

Requests a list of fuchsia.posix.socket.InterfaceAddresses describing the network interfaces on the system.

Request

<EMPTY>

Response

NameType
interfaces vector<InterfaceAddresses>

InterfaceIndexToName

Looks up an interface by its index and returns its name. Returns ZX_ERR_NOT_FOUND if the specified index doesn't exist.

Request

NameType
index uint64

Response

NameType
payload Provider_InterfaceIndexToName_Result

InterfaceNameToFlags

Looks up an interface by its name and returns its flags. Returns ZX_ERR_NOT_FOUND if the specified name doesn't exist.

Request

NameType
name fuchsia.net.interfaces/Name

Response

NameType
payload Provider_InterfaceNameToFlags_Result

InterfaceNameToIndex

Looks up an interface by its name and returns its index. Returns ZX_ERR_NOT_FOUND if the specified name doesn't exist.

Request

NameType
name fuchsia.net.interfaces/Name

Response

NameType
payload Provider_InterfaceNameToIndex_Result

StreamSocket

Requests a stream socket with the specified parameters.

Request

NameType
domain Domain
proto StreamSocketProtocol

Response

NameType
payload Provider_StreamSocket_Result

StreamSocket

Defined in fuchsia.posix.socket/socket.fidl

A stream socket.

All methods on this type are nonblocking; their exact behaviors match their Linux counterparts.

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.

Accept

Accepts a buffered incoming connection.

Request

NameType
want_addr bool

Response

NameType
payload StreamSocket_Accept_Result

AddIpMembership

Set SOL_IP -> IP_ADD_MEMBERSHIP

Request

NameType
membership IpMulticastMembership

Response

NameType
payload BaseNetworkSocket_AddIpMembership_Result

AddIpv6Membership

Set SOL_IPV6 -> IPV6_ADD_MEMBERSHIP.

Request

NameType
membership Ipv6MulticastMembership

Response

NameType
payload BaseNetworkSocket_AddIpv6Membership_Result

Bind

Sets the local address used for the socket.

Request

NameType
addr fuchsia.net/SocketAddress

Response

NameType
payload BaseNetworkSocket_Bind_Result

Clone2

Request

NameType
request server_end:fuchsia.unknown/Cloneable

Close

Terminates the connection.

After calling Close, the client must not send any other requests.

Servers, after sending the status response, should close the connection regardless of status and without sending an epitaph.

Closing the client end of the channel should be semantically equivalent to calling Close without knowing when the close has completed or its status.

Request

<EMPTY>

Response

NameType
payload fuchsia.unknown/Closeable_Close_Result

Connect

Initiates a connection to a remote address.

Request

NameType
addr fuchsia.net/SocketAddress

Response

NameType
payload BaseNetworkSocket_Connect_Result

Describe

Request

<EMPTY>

Response

NameType
payload StreamSocketDescribeResponse

Disconnect

Clears connection information from this socket.

Request

<EMPTY>

Response

NameType
payload BaseNetworkSocket_Disconnect_Result

DropIpMembership

Set SOL_IP -> IP_DROP_MEMBERSHIP

Request

NameType
membership IpMulticastMembership

Response

NameType
payload BaseNetworkSocket_DropIpMembership_Result

DropIpv6Membership

Set SOL_IPV6 -> IPV6_DROP_MEMBERSHIP.

Request

NameType
membership Ipv6MulticastMembership

Response

NameType
payload BaseNetworkSocket_DropIpv6Membership_Result

GetAcceptConn

Get SOL_SOCKET -> SO_ACCEPTCONN.

Request

<EMPTY>

Response

NameType
payload BaseSocket_GetAcceptConn_Result

GetBindToDevice

Get SOL_SOCKET -> SO_BINDTODEVICE.

Request

<EMPTY>

Response

NameType
payload BaseSocket_GetBindToDevice_Result

GetBindToInterfaceIndex

Get SOL_SOCKET -> SO_BINDTOIFINDEX.

Added: 20

Request

<EMPTY>

Response

NameType
payload BaseSocket_GetBindToInterfaceIndex_Result

GetBroadcast

Get SOL_SOCKET -> SO_BROADCAST.

Request

<EMPTY>

Response

NameType
payload BaseSocket_GetBroadcast_Result

GetError

Get SOL_SOCKET -> SO_ERROR. Returns the last error if there is an error set on the socket.

Request

<EMPTY>

Response

NameType
payload BaseSocket_GetError_Result

GetInfo

Retrieves creation information from the socket.

Request

<EMPTY>

Response

NameType
payload StreamSocket_GetInfo_Result

GetIpMulticastInterface

Get SOL_IP -> IP_MULTICAST_IF.

Request

<EMPTY>

Response

NameType
payload BaseNetworkSocket_GetIpMulticastInterface_Result

GetIpMulticastLoopback

Get SOL_IP -> IP_MULTICAST_LOOP.

Request

<EMPTY>

Response

NameType
payload BaseNetworkSocket_GetIpMulticastLoopback_Result

GetIpMulticastTtl

Get SOL_IP -> IP_MULTICAST_TTL.

Request

<EMPTY>

Response

NameType
payload BaseNetworkSocket_GetIpMulticastTtl_Result

GetIpPacketInfo

Get SOL_IP -> IP_PKTINFO.

Request

<EMPTY>

Response

NameType
payload BaseNetworkSocket_GetIpPacketInfo_Result

GetIpReceiveOriginalDestinationAddress

Get SOL_IP -> IP_RECVORIGDSTADDR

Added: 15

Request

<EMPTY>

Response

NameType
payload BaseNetworkSocket_GetIpReceiveOriginalDestinationAddress_Result

GetIpReceiveTtl

Get SOL_IP -> IP_RECVTTL.

Request

<EMPTY>

Response

NameType
payload BaseNetworkSocket_GetIpReceiveTtl_Result

GetIpReceiveTypeOfService

Get SOL_IP -> IP_RECVTOS.

Request

<EMPTY>

Response

NameType
payload BaseNetworkSocket_GetIpReceiveTypeOfService_Result

GetIpTransparent

Get SOL_IP -> IP_TRANSPARENT

Added: 15

Request

<EMPTY>

Response

NameType
payload BaseNetworkSocket_GetIpTransparent_Result

GetIpTtl

Get SOL_IP -> IP_TTL.

Request

<EMPTY>

Response

NameType
payload BaseNetworkSocket_GetIpTtl_Result

GetIpTypeOfService

Get SOL_IP -> IP_TOS.

Request

<EMPTY>

Response

NameType
payload BaseNetworkSocket_GetIpTypeOfService_Result

GetIpv6MulticastHops

Get SOL_IPV6 -> IPV6_MULTICAST_HOPS.

Request

<EMPTY>

Response

NameType
payload BaseNetworkSocket_GetIpv6MulticastHops_Result

GetIpv6MulticastInterface

Get SOL_IPV6 -> IPV6_MULTICAST_IF.

Request

<EMPTY>

Response

NameType
payload BaseNetworkSocket_GetIpv6MulticastInterface_Result

GetIpv6MulticastLoopback

Get SOL_IPV6 -> IPV6_MULTICAST_LOOP.

Request

<EMPTY>

Response

NameType
payload BaseNetworkSocket_GetIpv6MulticastLoopback_Result

GetIpv6Only

Get SOL_IPV6 -> IPV6_V6ONLY.

Request

<EMPTY>

Response

NameType
payload BaseNetworkSocket_GetIpv6Only_Result

GetIpv6ReceiveHopLimit

Get SOL_IPV6 -> IPV6_RECVHOPLIMIT.

Request

<EMPTY>

Response

NameType
payload BaseNetworkSocket_GetIpv6ReceiveHopLimit_Result

GetIpv6ReceivePacketInfo

Get SOL_IPV6 -> IPV6_RECVPKTINFO.

Request

<EMPTY>

Response

NameType
payload BaseNetworkSocket_GetIpv6ReceivePacketInfo_Result

GetIpv6ReceiveTrafficClass

Get SOL_IPV6 -> IPV6_RECVTCLASS.

Request

<EMPTY>

Response

NameType
payload BaseNetworkSocket_GetIpv6ReceiveTrafficClass_Result

GetIpv6TrafficClass

Get SOL_IPV6 -> IPV6_TCLASS.

Request

<EMPTY>

Response

NameType
payload BaseNetworkSocket_GetIpv6TrafficClass_Result

GetIpv6UnicastHops

Get SOL_IPV6 -> IPV6_UNICAST_HOPS.

Request

<EMPTY>

Response

NameType
payload BaseNetworkSocket_GetIpv6UnicastHops_Result

GetKeepAlive

Get SOL_SOCKET -> SO_KEEPALIVE.

Request

<EMPTY>

Response

NameType
payload BaseSocket_GetKeepAlive_Result

GetLinger

Get SOL_SOCKET -> SO_LINGER.

Request

<EMPTY>

Response

NameType
payload BaseSocket_GetLinger_Result

GetMark

Like getting SOL_SOCKET -> SO_MARK. The major difference is that unlike the standard SO_MARK, this API has multiple mark domains and each mark can be retrieved independently in each domain.

Added: HEAD

Request

NameType
domain MarkDomain

Response

NameType
payload BaseSocket_GetMark_Result

GetNoCheck

Get SOL_SOCKET -> SO_NO_CHECK.

Request

<EMPTY>

Response

NameType
payload BaseSocket_GetNoCheck_Result

GetOriginalDestination

Get SOL_IP -> SO_ORIGINAL_DST.

Added: 15

Request

<EMPTY>

Response

NameType
payload BaseNetworkSocket_GetOriginalDestination_Result

GetOutOfBandInline

Get SOL_SOCKET -> SO_OOBINLINE.

Request

<EMPTY>

Response

NameType
payload BaseSocket_GetOutOfBandInline_Result

GetPeerName

Retrieves the remote socket address.

Request

<EMPTY>

Response

NameType
payload BaseNetworkSocket_GetPeerName_Result

GetReceiveBuffer

Get SOL_SOCKET -> SO_RCVBUF.

Request

<EMPTY>

Response

NameType
payload BaseSocket_GetReceiveBuffer_Result

GetReuseAddress

Get SOL_SOCKET -> SO_REUSEADDR.

Request

<EMPTY>

Response

NameType
payload BaseSocket_GetReuseAddress_Result

GetReusePort

Get SOL_SOCKET -> SO_REUSEPORT.

Request

<EMPTY>

Response

NameType
payload BaseSocket_GetReusePort_Result

GetSendBuffer

Get SOL_SOCKET -> SO_SNDBUF.

Request

<EMPTY>

Response

NameType
payload BaseSocket_GetSendBuffer_Result

GetSockName

Retrieves the local socket address.

Request

<EMPTY>

Response

NameType
payload BaseNetworkSocket_GetSockName_Result

GetTcpCongestion

Get SOL_TCP -> TCP_CONGESTION.

Request

<EMPTY>

Response

NameType
payload StreamSocket_GetTcpCongestion_Result

GetTcpCork

Get SOL_TCP -> TCP_CORK.

Request

<EMPTY>

Response

NameType
payload StreamSocket_GetTcpCork_Result

GetTcpDeferAccept

Get SOL_TCP -> TCP_DEFER_ACCEPT.

Request

<EMPTY>

Response

NameType
payload StreamSocket_GetTcpDeferAccept_Result

GetTcpInfo

Get SOL_TCP -> TCP_INFO.

Request

<EMPTY>

Response

NameType
payload StreamSocket_GetTcpInfo_Result

GetTcpKeepAliveCount

Get SOL_TCP -> TCP_KEEPCNT.

Request

<EMPTY>

Response

NameType
payload StreamSocket_GetTcpKeepAliveCount_Result

GetTcpKeepAliveIdle

Get SOL_TCP -> TCP_KEEPIDLE.

Request

<EMPTY>

Response

NameType
payload StreamSocket_GetTcpKeepAliveIdle_Result

GetTcpKeepAliveInterval

Get SOL_TCP -> TCP_KEEPINTVL.

Request

<EMPTY>

Response

NameType
payload StreamSocket_GetTcpKeepAliveInterval_Result

GetTcpLinger

Get SOL_TCP -> TCP_LINGER2.

Request

<EMPTY>

Response

NameType
payload StreamSocket_GetTcpLinger_Result

GetTcpMaxSegment

Get SOL_TCP -> TCP_MAXSEG.

Request

<EMPTY>

Response

NameType
payload StreamSocket_GetTcpMaxSegment_Result

GetTcpNoDelay

Get SOL_TCP -> TCP_NODELAY.

Request

<EMPTY>

Response

NameType
payload StreamSocket_GetTcpNoDelay_Result

GetTcpQuickAck

Get SOL_TCP -> TCP_QUICKACK.

Request

<EMPTY>

Response

NameType
payload StreamSocket_GetTcpQuickAck_Result

GetTcpSynCount

Get SOL_TCP -> TCP_SYNCNT.

Request

<EMPTY>

Response

NameType
payload StreamSocket_GetTcpSynCount_Result

GetTcpUserTimeout

Get SOL_TCP -> TCP_USER_TIMEOUT.

Request

<EMPTY>

Response

NameType
payload StreamSocket_GetTcpUserTimeout_Result

GetTcpWindowClamp

Get SOL_TCP -> TCP_WINDOW_CLAMP.

Request

<EMPTY>

Response

NameType
payload StreamSocket_GetTcpWindowClamp_Result

GetTimestamp

Get SOL_SOCKET -> SO_TIMESTAMP or SO_TIMESTAMPNS.

Request

<EMPTY>

Response

NameType
payload BaseSocket_GetTimestamp_Result

Listen

Begins listening for new incoming connections. At most backlog connections will be buffered.

Request

NameType
backlog int16

Response

NameType
payload StreamSocket_Listen_Result

Query

Request

<EMPTY>

Response

NameType
protocol vector<uint8>

SetBindToDevice

Set SOL_SOCKET -> SO_BINDTODEVICE.

Request

NameType
value fuchsia.net.interfaces/Name

Response

NameType
payload BaseSocket_SetBindToDevice_Result

SetBindToInterfaceIndex

Set SOL_SOCKET -> SO_BINDTOIFINDEX. If value is 0, this clears the bound interface.

Added: 20

Request

NameType
value fuchsia.net/InterfaceId

Response

NameType
payload BaseSocket_SetBindToInterfaceIndex_Result

SetBroadcast

Set SOL_SOCKET -> SO_BROADCAST.

Request

NameType
value bool

Response

NameType
payload BaseSocket_SetBroadcast_Result

SetIpMulticastInterface

Set SOL_IP -> IP_MULTICAST_IF.

Request

NameType
iface fuchsia.net/InterfaceId
address fuchsia.net/Ipv4Address

Response

NameType
payload BaseNetworkSocket_SetIpMulticastInterface_Result

SetIpMulticastLoopback

Set SOL_IP -> IP_MULTICAST_LOOP.

Request

NameType
value bool

Response

NameType
payload BaseNetworkSocket_SetIpMulticastLoopback_Result

SetIpMulticastTtl

Set SOL_IP -> IP_MULTICAST_TTL.

Request

NameType
value OptionalUint8

Response

NameType
payload BaseNetworkSocket_SetIpMulticastTtl_Result

SetIpPacketInfo

Set SOL_IP -> IP_PKTINFO.

Request

NameType
value bool

Response

NameType
payload BaseNetworkSocket_SetIpPacketInfo_Result

SetIpReceiveOriginalDestinationAddress

Set SOL_IP -> IP_RECVORIGDSTADDR

Added: 15

Request

NameType
value bool

Response

NameType
payload BaseNetworkSocket_SetIpReceiveOriginalDestinationAddress_Result

SetIpReceiveTtl

Set SOL_IP -> IP_RECVTTL.

Request

NameType
value bool

Response

NameType
payload BaseNetworkSocket_SetIpReceiveTtl_Result

SetIpReceiveTypeOfService

Set SOL_IP -> IP_RECVTOS.

Request

NameType
value bool

Response

NameType
payload BaseNetworkSocket_SetIpReceiveTypeOfService_Result

SetIpTransparent

Set SOL_IP -> IP_TRANSPARENT

Added: 15

Request

NameType
value bool

Response

NameType
payload BaseNetworkSocket_SetIpTransparent_Result

SetIpTtl

Set SOL_IP -> IP_TTL.

Request

NameType
value OptionalUint8

Response

NameType
payload BaseNetworkSocket_SetIpTtl_Result

SetIpTypeOfService

Set SOL_IP -> IP_TOS.

Request

NameType
value uint8

Response

NameType
payload BaseNetworkSocket_SetIpTypeOfService_Result

SetIpv6MulticastHops

Set SOL_IPV6 -> IPV6_MULTICAST_HOPS.

Request

NameType
value OptionalUint8

Response

NameType
payload BaseNetworkSocket_SetIpv6MulticastHops_Result

SetIpv6MulticastInterface

Set SOL_IPV6 -> IPV6_MULTICAST_IF.

Request

NameType
value fuchsia.net/InterfaceId

Response

NameType
payload BaseNetworkSocket_SetIpv6MulticastInterface_Result

SetIpv6MulticastLoopback

Set SOL_IPV6 -> IPV6_MULTICAST_LOOP.

Request

NameType
value bool

Response

NameType
payload BaseNetworkSocket_SetIpv6MulticastLoopback_Result

SetIpv6Only

Set SOL_IPV6 -> IPV6_V6ONLY.

Request

NameType
value bool

Response

NameType
payload BaseNetworkSocket_SetIpv6Only_Result

SetIpv6ReceiveHopLimit

Set SOL_IPV6 -> IPV6_RECVHOPLIMIT.

Request

NameType
value bool

Response

NameType
payload BaseNetworkSocket_SetIpv6ReceiveHopLimit_Result

SetIpv6ReceivePacketInfo

Set SOL_IPV6 -> IPV6_RECVPKTINFO.

Request

NameType
value bool

Response

NameType
payload BaseNetworkSocket_SetIpv6ReceivePacketInfo_Result

SetIpv6ReceiveTrafficClass

Set SOL_IPV6 -> IPV6_RECVTCLASS.

Request

NameType
value bool

Response

NameType
payload BaseNetworkSocket_SetIpv6ReceiveTrafficClass_Result

SetIpv6TrafficClass

Set SOL_IPV6 -> IPV6_TCLASS

Request

NameType
value OptionalUint8

Response

NameType
payload BaseNetworkSocket_SetIpv6TrafficClass_Result

SetIpv6UnicastHops

Set SOL_IPV6 -> IPV6_UNICAST_HOPS.

Request

NameType
value OptionalUint8

Response

NameType
payload BaseNetworkSocket_SetIpv6UnicastHops_Result

SetKeepAlive

Set SOL_SOCKET -> SO_KEEPALIVE.

Request

NameType
value bool

Response

NameType
payload BaseSocket_SetKeepAlive_Result

SetLinger

Set SOL_SOCKET -> SO_LINGER.

Request

NameType
linger bool
length_secs uint32

Response

NameType
payload BaseSocket_SetLinger_Result

SetMark

Like setting SOL_SOCKET -> SO_MARK. The major difference is that unlike the standard SO_MARK, this API has multiple mark domains and each mark can be set independently in each domain.

Added: HEAD

Request

NameType
domain MarkDomain
mark OptionalUint32

Response

NameType
payload BaseSocket_SetMark_Result

SetNoCheck

Set SOL_SOCKET -> SO_NO_CHECK.

Request

NameType
value bool

Response

NameType
payload BaseSocket_SetNoCheck_Result

SetOutOfBandInline

Set SOL_SOCKET -> SO_OOBINLINE.

Request

NameType
value bool

Response

NameType
payload BaseSocket_SetOutOfBandInline_Result

SetReceiveBuffer

Set SOL_SOCKET -> SO_RCVBUF.

Request

NameType
value_bytes uint64

Response

NameType
payload BaseSocket_SetReceiveBuffer_Result

SetReuseAddress

Set SOL_SOCKET -> SO_REUSEADDR.

Request

NameType
value bool

Response

NameType
payload BaseSocket_SetReuseAddress_Result

SetReusePort

Set SOL_SOCKET -> SO_REUSEPORT.

Request

NameType
value bool

Response

NameType
payload BaseSocket_SetReusePort_Result

SetSendBuffer

Set SOL_SOCKET -> SO_SNDBUF.

Request

NameType
value_bytes uint64

Response

NameType
payload BaseSocket_SetSendBuffer_Result

SetTcpCongestion

Set SOL_TCP -> TCP_CONGESTION.

Request

NameType
value TcpCongestionControl

Response

NameType
payload StreamSocket_SetTcpCongestion_Result

SetTcpCork

Set SOL_TCP -> TCP_CORK.

Request

NameType
value bool

Response

NameType
payload StreamSocket_SetTcpCork_Result

SetTcpDeferAccept

Set SOL_TCP -> TCP_DEFER_ACCEPT.

Request

NameType
value_secs uint32

Response

NameType
payload StreamSocket_SetTcpDeferAccept_Result

SetTcpKeepAliveCount

Set SOL_TCP -> TCP_KEEPCNT.

Request

NameType
value uint32

Response

NameType
payload StreamSocket_SetTcpKeepAliveCount_Result

SetTcpKeepAliveIdle

Set SOL_TCP -> TCP_KEEPIDLE.

Request

NameType
value_secs uint32

Response

NameType
payload StreamSocket_SetTcpKeepAliveIdle_Result

SetTcpKeepAliveInterval

Set SOL_TCP -> TCP_KEEPINTVL.

Request

NameType
value_secs uint32

Response

NameType
payload StreamSocket_SetTcpKeepAliveInterval_Result

SetTcpLinger

Set SOL_TCP -> TCP_LINGER2.

Request

NameType
value_secs OptionalUint32

Response

NameType
payload StreamSocket_SetTcpLinger_Result

SetTcpMaxSegment

Set SOL_TCP -> TCP_MAXSEG.

Request

NameType
value_bytes uint32

Response

NameType
payload StreamSocket_SetTcpMaxSegment_Result

SetTcpNoDelay

Set SOL_TCP -> TCP_NODELAY.

Request

NameType
value bool

Response

NameType
payload StreamSocket_SetTcpNoDelay_Result

SetTcpQuickAck

Set SOL_TCP -> TCP_QUICKACK.

Request

NameType
value bool

Response

NameType
payload StreamSocket_SetTcpQuickAck_Result

SetTcpSynCount

Set SOL_TCP -> TCP_SYNCNT.

Request

NameType
value uint32

Response

NameType
payload StreamSocket_SetTcpSynCount_Result

SetTcpUserTimeout

Set SOL_TCP -> TCP_USER_TIMEOUT.

Request

NameType
value_millis uint32

Response

NameType
payload StreamSocket_SetTcpUserTimeout_Result

SetTcpWindowClamp

Set SOL_TCP -> TCP_WINDOW_CLAMP.

Request

NameType
value uint32

Response

NameType
payload StreamSocket_SetTcpWindowClamp_Result

SetTimestamp

Set SOL_SOCKET -> SO_TIMESTAMP or SO_TIMESTAMPNS.

Request

NameType
value TimestampOption

Response

NameType
payload BaseSocket_SetTimestamp_Result

Shutdown

Shuts down part of the socket.

Request

NameType
mode ShutdownMode

Response

NameType
payload BaseNetworkSocket_Shutdown_Result

SynchronousDatagramSocket

Defined in fuchsia.posix.socket/socket.fidl

A synchronous datagram socket.

This protocol defines synchronous methods for sending and receiving datagram payloads over a channel. All methods are nonblocking; their behavior roughly matches their Linux counterparts.

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.

AddIpMembership

Set SOL_IP -> IP_ADD_MEMBERSHIP

Request

NameType
membership IpMulticastMembership

Response

NameType
payload BaseNetworkSocket_AddIpMembership_Result

AddIpv6Membership

Set SOL_IPV6 -> IPV6_ADD_MEMBERSHIP.

Request

NameType
membership Ipv6MulticastMembership

Response

NameType
payload BaseNetworkSocket_AddIpv6Membership_Result

Bind

Sets the local address used for the socket.

Request

NameType
addr fuchsia.net/SocketAddress

Response

NameType
payload BaseNetworkSocket_Bind_Result

Clone2

Request

NameType
request server_end:fuchsia.unknown/Cloneable

Close

Terminates the connection.

After calling Close, the client must not send any other requests.

Servers, after sending the status response, should close the connection regardless of status and without sending an epitaph.

Closing the client end of the channel should be semantically equivalent to calling Close without knowing when the close has completed or its status.

Request

<EMPTY>

Response

NameType
payload fuchsia.unknown/Closeable_Close_Result

Connect

Initiates a connection to a remote address.

Request

NameType
addr fuchsia.net/SocketAddress

Response

NameType
payload BaseNetworkSocket_Connect_Result

Describe

Request

<EMPTY>

Response

NameType
payload SynchronousDatagramSocketDescribeResponse

Disconnect

Clears connection information from this socket.

Request

<EMPTY>

Response

NameType
payload BaseNetworkSocket_Disconnect_Result

DropIpMembership

Set SOL_IP -> IP_DROP_MEMBERSHIP

Request

NameType
membership IpMulticastMembership

Response

NameType
payload BaseNetworkSocket_DropIpMembership_Result

DropIpv6Membership

Set SOL_IPV6 -> IPV6_DROP_MEMBERSHIP.

Request

NameType
membership Ipv6MulticastMembership

Response

NameType
payload BaseNetworkSocket_DropIpv6Membership_Result

GetAcceptConn

Get SOL_SOCKET -> SO_ACCEPTCONN.

Request

<EMPTY>

Response

NameType
payload BaseSocket_GetAcceptConn_Result

GetBindToDevice

Get SOL_SOCKET -> SO_BINDTODEVICE.

Request

<EMPTY>

Response

NameType
payload BaseSocket_GetBindToDevice_Result

GetBindToInterfaceIndex

Get SOL_SOCKET -> SO_BINDTOIFINDEX.

Added: 20

Request

<EMPTY>

Response

NameType
payload BaseSocket_GetBindToInterfaceIndex_Result

GetBroadcast

Get SOL_SOCKET -> SO_BROADCAST.

Request

<EMPTY>

Response

NameType
payload BaseSocket_GetBroadcast_Result

GetError

Get SOL_SOCKET -> SO_ERROR. Returns the last error if there is an error set on the socket.

Request

<EMPTY>

Response

NameType
payload BaseSocket_GetError_Result

GetInfo

Retrieves creation information from the socket.

  • response domain the socket's associated domain.
  • response proto the socket's associated protocol.

Request

<EMPTY>

Response

NameType
payload BaseDatagramSocket_GetInfo_Result

GetIpMulticastInterface

Get SOL_IP -> IP_MULTICAST_IF.

Request

<EMPTY>

Response

NameType
payload BaseNetworkSocket_GetIpMulticastInterface_Result

GetIpMulticastLoopback

Get SOL_IP -> IP_MULTICAST_LOOP.

Request

<EMPTY>

Response

NameType
payload BaseNetworkSocket_GetIpMulticastLoopback_Result

GetIpMulticastTtl

Get SOL_IP -> IP_MULTICAST_TTL.

Request

<EMPTY>

Response

NameType
payload BaseNetworkSocket_GetIpMulticastTtl_Result

GetIpPacketInfo

Get SOL_IP -> IP_PKTINFO.

Request

<EMPTY>

Response

NameType
payload BaseNetworkSocket_GetIpPacketInfo_Result

GetIpReceiveOriginalDestinationAddress

Get SOL_IP -> IP_RECVORIGDSTADDR

Added: 15

Request

<EMPTY>

Response

NameType
payload BaseNetworkSocket_GetIpReceiveOriginalDestinationAddress_Result

GetIpReceiveTtl

Get SOL_IP -> IP_RECVTTL.

Request

<EMPTY>

Response

NameType
payload BaseNetworkSocket_GetIpReceiveTtl_Result

GetIpReceiveTypeOfService

Get SOL_IP -> IP_RECVTOS.

Request

<EMPTY>

Response

NameType
payload BaseNetworkSocket_GetIpReceiveTypeOfService_Result

GetIpTransparent

Get SOL_IP -> IP_TRANSPARENT

Added: 15

Request

<EMPTY>

Response

NameType
payload BaseNetworkSocket_GetIpTransparent_Result

GetIpTtl

Get SOL_IP -> IP_TTL.

Request

<EMPTY>

Response

NameType
payload BaseNetworkSocket_GetIpTtl_Result

GetIpTypeOfService

Get SOL_IP -> IP_TOS.

Request

<EMPTY>

Response

NameType
payload BaseNetworkSocket_GetIpTypeOfService_Result

GetIpv6MulticastHops

Get SOL_IPV6 -> IPV6_MULTICAST_HOPS.

Request

<EMPTY>

Response

NameType
payload BaseNetworkSocket_GetIpv6MulticastHops_Result

GetIpv6MulticastInterface

Get SOL_IPV6 -> IPV6_MULTICAST_IF.

Request

<EMPTY>

Response

NameType
payload BaseNetworkSocket_GetIpv6MulticastInterface_Result

GetIpv6MulticastLoopback

Get SOL_IPV6 -> IPV6_MULTICAST_LOOP.

Request

<EMPTY>

Response

NameType
payload BaseNetworkSocket_GetIpv6MulticastLoopback_Result

GetIpv6Only

Get SOL_IPV6 -> IPV6_V6ONLY.

Request

<EMPTY>

Response

NameType
payload BaseNetworkSocket_GetIpv6Only_Result

GetIpv6ReceiveHopLimit

Get SOL_IPV6 -> IPV6_RECVHOPLIMIT.

Request

<EMPTY>

Response

NameType
payload BaseNetworkSocket_GetIpv6ReceiveHopLimit_Result

GetIpv6ReceivePacketInfo

Get SOL_IPV6 -> IPV6_RECVPKTINFO.

Request

<EMPTY>

Response

NameType
payload BaseNetworkSocket_GetIpv6ReceivePacketInfo_Result

GetIpv6ReceiveTrafficClass

Get SOL_IPV6 -> IPV6_RECVTCLASS.

Request

<EMPTY>

Response

NameType
payload BaseNetworkSocket_GetIpv6ReceiveTrafficClass_Result

GetIpv6TrafficClass

Get SOL_IPV6 -> IPV6_TCLASS.

Request

<EMPTY>

Response

NameType
payload BaseNetworkSocket_GetIpv6TrafficClass_Result

GetIpv6UnicastHops

Get SOL_IPV6 -> IPV6_UNICAST_HOPS.

Request

<EMPTY>

Response

NameType
payload BaseNetworkSocket_GetIpv6UnicastHops_Result

GetKeepAlive

Get SOL_SOCKET -> SO_KEEPALIVE.

Request

<EMPTY>

Response

NameType
payload BaseSocket_GetKeepAlive_Result

GetLinger

Get SOL_SOCKET -> SO_LINGER.

Request

<EMPTY>

Response

NameType
payload BaseSocket_GetLinger_Result

GetMark

Like getting SOL_SOCKET -> SO_MARK. The major difference is that unlike the standard SO_MARK, this API has multiple mark domains and each mark can be retrieved independently in each domain.

Added: HEAD

Request

NameType
domain MarkDomain

Response

NameType
payload BaseSocket_GetMark_Result

GetNoCheck

Get SOL_SOCKET -> SO_NO_CHECK.

Request

<EMPTY>

Response

NameType
payload BaseSocket_GetNoCheck_Result

GetOriginalDestination

Get SOL_IP -> SO_ORIGINAL_DST.

Added: 15

Request

<EMPTY>

Response

NameType
payload BaseNetworkSocket_GetOriginalDestination_Result

GetOutOfBandInline

Get SOL_SOCKET -> SO_OOBINLINE.

Request

<EMPTY>

Response

NameType
payload BaseSocket_GetOutOfBandInline_Result

GetPeerName

Retrieves the remote socket address.

Request

<EMPTY>

Response

NameType
payload BaseNetworkSocket_GetPeerName_Result

GetReceiveBuffer

Get SOL_SOCKET -> SO_RCVBUF.

Request

<EMPTY>

Response

NameType
payload BaseSocket_GetReceiveBuffer_Result

GetReuseAddress

Get SOL_SOCKET -> SO_REUSEADDR.

Request

<EMPTY>

Response

NameType
payload BaseSocket_GetReuseAddress_Result

GetReusePort

Get SOL_SOCKET -> SO_REUSEPORT.

Request

<EMPTY>

Response

NameType
payload BaseSocket_GetReusePort_Result

GetSendBuffer

Get SOL_SOCKET -> SO_SNDBUF.

Request

<EMPTY>

Response

NameType
payload BaseSocket_GetSendBuffer_Result

GetSockName

Retrieves the local socket address.

Request

<EMPTY>

Response

NameType
payload BaseNetworkSocket_GetSockName_Result

GetTimestamp

Get SOL_SOCKET -> SO_TIMESTAMP or SO_TIMESTAMPNS.

Request

<EMPTY>

Response

NameType
payload BaseSocket_GetTimestamp_Result

Query

Request

<EMPTY>

Response

NameType
protocol vector<uint8>

RecvMsg

Receives a message from the socket.

  • request want_addr request message's source address information to be returned.
  • request data_len the maximum allowed length of the response data buffer.
  • request want_control request ancillary data to be returned.
  • request flags flags for the receive request.
  • response addr the message's source address information, if requested.
  • response data the message.
  • response control control messages, if requested.
  • response truncated indicates whether or not the returned message was truncated.

Request

NameType
want_addr bool
data_len uint32
want_control bool
flags RecvMsgFlags

Response

NameType
payload SynchronousDatagramSocket_RecvMsg_Result

SendMsg

Sends a message on the socket.

  • request addr the address to send the message to. If unset, will send to the connected peer.
  • request data the message.
  • request control ancillary data.
  • request flags flags for the send request.
  • response len the number of bytes sent.

Request

NameType
addr fuchsia.net/SocketAddress?
data vector<uint8>
control DatagramSocketSendControlData
flags SendMsgFlags

Response

NameType
payload SynchronousDatagramSocket_SendMsg_Result

SetBindToDevice

Set SOL_SOCKET -> SO_BINDTODEVICE.

Request

NameType
value fuchsia.net.interfaces/Name

Response

NameType
payload BaseSocket_SetBindToDevice_Result

SetBindToInterfaceIndex

Set SOL_SOCKET -> SO_BINDTOIFINDEX. If value is 0, this clears the bound interface.

Added: 20

Request

NameType
value fuchsia.net/InterfaceId

Response

NameType
payload BaseSocket_SetBindToInterfaceIndex_Result

SetBroadcast

Set SOL_SOCKET -> SO_BROADCAST.

Request

NameType
value bool

Response

NameType
payload BaseSocket_SetBroadcast_Result

SetIpMulticastInterface

Set SOL_IP -> IP_MULTICAST_IF.

Request

NameType
iface fuchsia.net/InterfaceId
address fuchsia.net/Ipv4Address

Response

NameType
payload BaseNetworkSocket_SetIpMulticastInterface_Result

SetIpMulticastLoopback

Set SOL_IP -> IP_MULTICAST_LOOP.

Request

NameType
value bool

Response

NameType
payload BaseNetworkSocket_SetIpMulticastLoopback_Result

SetIpMulticastTtl

Set SOL_IP -> IP_MULTICAST_TTL.

Request

NameType
value OptionalUint8

Response

NameType
payload BaseNetworkSocket_SetIpMulticastTtl_Result

SetIpPacketInfo

Set SOL_IP -> IP_PKTINFO.

Request

NameType
value bool

Response

NameType
payload BaseNetworkSocket_SetIpPacketInfo_Result

SetIpReceiveOriginalDestinationAddress

Set SOL_IP -> IP_RECVORIGDSTADDR

Added: 15

Request

NameType
value bool

Response

NameType
payload BaseNetworkSocket_SetIpReceiveOriginalDestinationAddress_Result

SetIpReceiveTtl

Set SOL_IP -> IP_RECVTTL.

Request

NameType
value bool

Response

NameType
payload BaseNetworkSocket_SetIpReceiveTtl_Result

SetIpReceiveTypeOfService

Set SOL_IP -> IP_RECVTOS.

Request

NameType
value bool

Response

NameType
payload BaseNetworkSocket_SetIpReceiveTypeOfService_Result

SetIpTransparent

Set SOL_IP -> IP_TRANSPARENT

Added: 15

Request

NameType
value bool

Response

NameType
payload BaseNetworkSocket_SetIpTransparent_Result

SetIpTtl

Set SOL_IP -> IP_TTL.

Request

NameType
value OptionalUint8

Response

NameType
payload BaseNetworkSocket_SetIpTtl_Result

SetIpTypeOfService

Set SOL_IP -> IP_TOS.

Request

NameType
value uint8

Response

NameType
payload BaseNetworkSocket_SetIpTypeOfService_Result

SetIpv6MulticastHops

Set SOL_IPV6 -> IPV6_MULTICAST_HOPS.

Request

NameType
value OptionalUint8

Response

NameType
payload BaseNetworkSocket_SetIpv6MulticastHops_Result

SetIpv6MulticastInterface

Set SOL_IPV6 -> IPV6_MULTICAST_IF.

Request

NameType
value fuchsia.net/InterfaceId

Response

NameType
payload BaseNetworkSocket_SetIpv6MulticastInterface_Result

SetIpv6MulticastLoopback

Set SOL_IPV6 -> IPV6_MULTICAST_LOOP.

Request

NameType
value bool

Response

NameType
payload BaseNetworkSocket_SetIpv6MulticastLoopback_Result

SetIpv6Only

Set SOL_IPV6 -> IPV6_V6ONLY.

Request

NameType
value bool

Response

NameType
payload BaseNetworkSocket_SetIpv6Only_Result

SetIpv6ReceiveHopLimit

Set SOL_IPV6 -> IPV6_RECVHOPLIMIT.

Request

NameType
value bool

Response

NameType
payload BaseNetworkSocket_SetIpv6ReceiveHopLimit_Result

SetIpv6ReceivePacketInfo

Set SOL_IPV6 -> IPV6_RECVPKTINFO.

Request

NameType
value bool

Response

NameType
payload BaseNetworkSocket_SetIpv6ReceivePacketInfo_Result

SetIpv6ReceiveTrafficClass

Set SOL_IPV6 -> IPV6_RECVTCLASS.

Request

NameType
value bool

Response

NameType
payload BaseNetworkSocket_SetIpv6ReceiveTrafficClass_Result

SetIpv6TrafficClass

Set SOL_IPV6 -> IPV6_TCLASS

Request

NameType
value OptionalUint8

Response

NameType
payload BaseNetworkSocket_SetIpv6TrafficClass_Result

SetIpv6UnicastHops

Set SOL_IPV6 -> IPV6_UNICAST_HOPS.

Request

NameType
value OptionalUint8

Response

NameType
payload BaseNetworkSocket_SetIpv6UnicastHops_Result

SetKeepAlive

Set SOL_SOCKET -> SO_KEEPALIVE.

Request

NameType
value bool

Response

NameType
payload BaseSocket_SetKeepAlive_Result

SetLinger

Set SOL_SOCKET -> SO_LINGER.

Request

NameType
linger bool
length_secs uint32

Response

NameType
payload BaseSocket_SetLinger_Result

SetMark

Like setting SOL_SOCKET -> SO_MARK. The major difference is that unlike the standard SO_MARK, this API has multiple mark domains and each mark can be set independently in each domain.

Added: HEAD

Request

NameType
domain MarkDomain
mark OptionalUint32

Response

NameType
payload BaseSocket_SetMark_Result

SetNoCheck

Set SOL_SOCKET -> SO_NO_CHECK.

Request

NameType
value bool

Response

NameType
payload BaseSocket_SetNoCheck_Result

SetOutOfBandInline

Set SOL_SOCKET -> SO_OOBINLINE.

Request

NameType
value bool

Response

NameType
payload BaseSocket_SetOutOfBandInline_Result

SetReceiveBuffer

Set SOL_SOCKET -> SO_RCVBUF.

Request

NameType
value_bytes uint64

Response

NameType
payload BaseSocket_SetReceiveBuffer_Result

SetReuseAddress

Set SOL_SOCKET -> SO_REUSEADDR.

Request

NameType
value bool

Response

NameType
payload BaseSocket_SetReuseAddress_Result

SetReusePort

Set SOL_SOCKET -> SO_REUSEPORT.

Request

NameType
value bool

Response

NameType
payload BaseSocket_SetReusePort_Result

SetSendBuffer

Set SOL_SOCKET -> SO_SNDBUF.

Request

NameType
value_bytes uint64

Response

NameType
payload BaseSocket_SetSendBuffer_Result

SetTimestamp

Set SOL_SOCKET -> SO_TIMESTAMP or SO_TIMESTAMPNS.

Request

NameType
value TimestampOption

Response

NameType
payload BaseSocket_SetTimestamp_Result

Shutdown

Shuts down part of the socket.

Request

NameType
mode ShutdownMode

Response

NameType
payload BaseNetworkSocket_Shutdown_Result

STRUCTS

BaseDatagramSocket_GetInfo_Response

Defined in fuchsia.posix.socket/socket.fidl

FieldTypeDescriptionDefault
domain Domain No default
proto DatagramSocketProtocol No default

BaseNetworkSocket_AddIpMembership_Response

Defined in fuchsia.posix.socket/socket.fidl

<EMPTY>

BaseNetworkSocket_AddIpv6Membership_Response

Defined in fuchsia.posix.socket/socket.fidl

<EMPTY>

BaseNetworkSocket_Bind_Response

Defined in fuchsia.posix.socket/socket.fidl

<EMPTY>

BaseNetworkSocket_Connect_Response

Defined in fuchsia.posix.socket/socket.fidl

<EMPTY>

BaseNetworkSocket_Disconnect_Response

Defined in fuchsia.posix.socket/socket.fidl

<EMPTY>

BaseNetworkSocket_DropIpMembership_Response

Defined in fuchsia.posix.socket/socket.fidl

<EMPTY>

BaseNetworkSocket_DropIpv6Membership_Response

Defined in fuchsia.posix.socket/socket.fidl

<EMPTY>

BaseNetworkSocket_GetIpMulticastInterface_Response

Defined in fuchsia.posix.socket/socket.fidl

FieldTypeDescriptionDefault
value fuchsia.net/Ipv4Address No default

BaseNetworkSocket_GetIpMulticastLoopback_Response

Defined in fuchsia.posix.socket/socket.fidl

FieldTypeDescriptionDefault
value bool No default

BaseNetworkSocket_GetIpMulticastTtl_Response

Defined in fuchsia.posix.socket/socket.fidl

FieldTypeDescriptionDefault
value uint8 No default

BaseNetworkSocket_GetIpPacketInfo_Response

Defined in fuchsia.posix.socket/socket.fidl

FieldTypeDescriptionDefault
value bool No default

BaseNetworkSocket_GetIpReceiveOriginalDestinationAddress_Response

Defined in fuchsia.posix.socket/socket.fidl

FieldTypeDescriptionDefault
value bool No default

BaseNetworkSocket_GetIpReceiveTtl_Response

Defined in fuchsia.posix.socket/socket.fidl

FieldTypeDescriptionDefault
value bool No default

BaseNetworkSocket_GetIpReceiveTypeOfService_Response

Defined in fuchsia.posix.socket/socket.fidl

FieldTypeDescriptionDefault
value bool No default

BaseNetworkSocket_GetIpTransparent_Response

Defined in fuchsia.posix.socket/socket.fidl

FieldTypeDescriptionDefault
value bool No default

BaseNetworkSocket_GetIpTtl_Response

Defined in fuchsia.posix.socket/socket.fidl

FieldTypeDescriptionDefault
value uint8 No default

BaseNetworkSocket_GetIpTypeOfService_Response

Defined in fuchsia.posix.socket/socket.fidl

FieldTypeDescriptionDefault
value uint8 No default

BaseNetworkSocket_GetIpv6MulticastHops_Response

Defined in fuchsia.posix.socket/socket.fidl

FieldTypeDescriptionDefault
value uint8 No default

BaseNetworkSocket_GetIpv6MulticastInterface_Response

Defined in fuchsia.posix.socket/socket.fidl

FieldTypeDescriptionDefault
value fuchsia.net/InterfaceId No default

BaseNetworkSocket_GetIpv6MulticastLoopback_Response

Defined in fuchsia.posix.socket/socket.fidl

FieldTypeDescriptionDefault
value bool No default

BaseNetworkSocket_GetIpv6Only_Response

Defined in fuchsia.posix.socket/socket.fidl

FieldTypeDescriptionDefault
value bool No default

BaseNetworkSocket_GetIpv6ReceiveHopLimit_Response

Defined in fuchsia.posix.socket/socket.fidl

FieldTypeDescriptionDefault
value bool No default

BaseNetworkSocket_GetIpv6ReceivePacketInfo_Response

Defined in fuchsia.posix.socket/socket.fidl

FieldTypeDescriptionDefault
value bool No default

BaseNetworkSocket_GetIpv6ReceiveTrafficClass_Response

Defined in fuchsia.posix.socket/socket.fidl

FieldTypeDescriptionDefault
value bool No default

BaseNetworkSocket_GetIpv6TrafficClass_Response

Defined in fuchsia.posix.socket/socket.fidl

FieldTypeDescriptionDefault
value uint8 No default

BaseNetworkSocket_GetIpv6UnicastHops_Response

Defined in fuchsia.posix.socket/socket.fidl

FieldTypeDescriptionDefault
value uint8 No default

BaseNetworkSocket_GetOriginalDestination_Response

Defined in fuchsia.posix.socket/socket.fidl

FieldTypeDescriptionDefault
value fuchsia.net/SocketAddress No default

BaseNetworkSocket_GetPeerName_Response

Defined in fuchsia.posix.socket/socket.fidl

FieldTypeDescriptionDefault
addr fuchsia.net/SocketAddress No default

BaseNetworkSocket_GetSockName_Response

Defined in fuchsia.posix.socket/socket.fidl

FieldTypeDescriptionDefault
addr fuchsia.net/SocketAddress No default

BaseNetworkSocket_SetIpMulticastInterface_Response

Defined in fuchsia.posix.socket/socket.fidl

<EMPTY>

BaseNetworkSocket_SetIpMulticastLoopback_Response

Defined in fuchsia.posix.socket/socket.fidl

<EMPTY>

BaseNetworkSocket_SetIpMulticastTtl_Response

Defined in fuchsia.posix.socket/socket.fidl

<EMPTY>

BaseNetworkSocket_SetIpPacketInfo_Response

Defined in fuchsia.posix.socket/socket.fidl

<EMPTY>

BaseNetworkSocket_SetIpReceiveOriginalDestinationAddress_Response

Defined in fuchsia.posix.socket/socket.fidl

<EMPTY>

BaseNetworkSocket_SetIpReceiveTtl_Response

Defined in fuchsia.posix.socket/socket.fidl

<EMPTY>

BaseNetworkSocket_SetIpReceiveTypeOfService_Response

Defined in fuchsia.posix.socket/socket.fidl

<EMPTY>

BaseNetworkSocket_SetIpTransparent_Response

Defined in fuchsia.posix.socket/socket.fidl

<EMPTY>

BaseNetworkSocket_SetIpTtl_Response

Defined in fuchsia.posix.socket/socket.fidl

<EMPTY>

BaseNetworkSocket_SetIpTypeOfService_Response

Defined in fuchsia.posix.socket/socket.fidl

<EMPTY>

BaseNetworkSocket_SetIpv6MulticastHops_Response

Defined in fuchsia.posix.socket/socket.fidl

<EMPTY>

BaseNetworkSocket_SetIpv6MulticastInterface_Response

Defined in fuchsia.posix.socket/socket.fidl

<EMPTY>

BaseNetworkSocket_SetIpv6MulticastLoopback_Response

Defined in fuchsia.posix.socket/socket.fidl

<EMPTY>

BaseNetworkSocket_SetIpv6Only_Response

Defined in fuchsia.posix.socket/socket.fidl

<EMPTY>

BaseNetworkSocket_SetIpv6ReceiveHopLimit_Response

Defined in fuchsia.posix.socket/socket.fidl

<EMPTY>

BaseNetworkSocket_SetIpv6ReceivePacketInfo_Response

Defined in fuchsia.posix.socket/socket.fidl

<EMPTY>

BaseNetworkSocket_SetIpv6ReceiveTrafficClass_Response

Defined in fuchsia.posix.socket/socket.fidl

<EMPTY>

BaseNetworkSocket_SetIpv6TrafficClass_Response

Defined in fuchsia.posix.socket/socket.fidl

<EMPTY>

BaseNetworkSocket_SetIpv6UnicastHops_Response

Defined in fuchsia.posix.socket/socket.fidl

<EMPTY>

BaseNetworkSocket_Shutdown_Response

Defined in fuchsia.posix.socket/socket.fidl

<EMPTY>

BaseSocket_GetAcceptConn_Response

Defined in fuchsia.posix.socket/socket.fidl

FieldTypeDescriptionDefault
value bool No default

BaseSocket_GetBindToDevice_Response

Defined in fuchsia.posix.socket/socket.fidl

FieldTypeDescriptionDefault
value fuchsia.net.interfaces/Name No default

BaseSocket_GetBindToInterfaceIndex_Response

Defined in fuchsia.posix.socket/socket.fidl

FieldTypeDescriptionDefault
value fuchsia.net/InterfaceId No default

BaseSocket_GetBroadcast_Response

Defined in fuchsia.posix.socket/socket.fidl

FieldTypeDescriptionDefault
value bool No default

BaseSocket_GetError_Response

Defined in fuchsia.posix.socket/socket.fidl

<EMPTY>

BaseSocket_GetKeepAlive_Response

Defined in fuchsia.posix.socket/socket.fidl

FieldTypeDescriptionDefault
value bool No default

BaseSocket_GetLinger_Response

Defined in fuchsia.posix.socket/socket.fidl

FieldTypeDescriptionDefault
linger bool No default
length_secs uint32 No default

BaseSocket_GetMark_Response

Defined in fuchsia.posix.socket/socket.fidl

FieldTypeDescriptionDefault
mark OptionalUint32 No default

BaseSocket_GetNoCheck_Response

Defined in fuchsia.posix.socket/socket.fidl

FieldTypeDescriptionDefault
value bool No default

BaseSocket_GetOutOfBandInline_Response

Defined in fuchsia.posix.socket/socket.fidl

FieldTypeDescriptionDefault
value bool No default

BaseSocket_GetReceiveBuffer_Response

Defined in fuchsia.posix.socket/socket.fidl

FieldTypeDescriptionDefault
value_bytes uint64 No default

BaseSocket_GetReuseAddress_Response

Defined in fuchsia.posix.socket/socket.fidl

FieldTypeDescriptionDefault
value bool No default

BaseSocket_GetReusePort_Response

Defined in fuchsia.posix.socket/socket.fidl

FieldTypeDescriptionDefault
value bool No default

BaseSocket_GetSendBuffer_Response

Defined in fuchsia.posix.socket/socket.fidl

FieldTypeDescriptionDefault
value_bytes uint64 No default

BaseSocket_GetTimestamp_Response

Defined in fuchsia.posix.socket/socket.fidl

FieldTypeDescriptionDefault
value TimestampOption No default

BaseSocket_SetBindToDevice_Response

Defined in fuchsia.posix.socket/socket.fidl

<EMPTY>

BaseSocket_SetBindToInterfaceIndex_Response

Defined in fuchsia.posix.socket/socket.fidl

<EMPTY>

BaseSocket_SetBroadcast_Response

Defined in fuchsia.posix.socket/socket.fidl

<EMPTY>

BaseSocket_SetKeepAlive_Response

Defined in fuchsia.posix.socket/socket.fidl

<EMPTY>

BaseSocket_SetLinger_Response

Defined in fuchsia.posix.socket/socket.fidl

<EMPTY>

BaseSocket_SetMark_Response

Defined in fuchsia.posix.socket/socket.fidl

<EMPTY>

BaseSocket_SetNoCheck_Response

Defined in fuchsia.posix.socket/socket.fidl

<EMPTY>

BaseSocket_SetOutOfBandInline_Response

Defined in fuchsia.posix.socket/socket.fidl

<EMPTY>

BaseSocket_SetReceiveBuffer_Response

Defined in fuchsia.posix.socket/socket.fidl

<EMPTY>

BaseSocket_SetReuseAddress_Response

Defined in fuchsia.posix.socket/socket.fidl

<EMPTY>

BaseSocket_SetReusePort_Response

Defined in fuchsia.posix.socket/socket.fidl

<EMPTY>

BaseSocket_SetSendBuffer_Response

Defined in fuchsia.posix.socket/socket.fidl

<EMPTY>

BaseSocket_SetTimestamp_Response

Defined in fuchsia.posix.socket/socket.fidl

<EMPTY>

Empty

Defined in fuchsia.posix.socket/socket.fidl

<EMPTY>

IpMulticastMembership

Defined in fuchsia.posix.socket/socket.fidl

IPv4 multicast membership options.

FieldTypeDescriptionDefault
iface fuchsia.net/InterfaceId

Interface index for membership.

No default
local_addr fuchsia.net/Ipv4Address

Local interface address requesting or relinquishing ownership.

No default
mcast_addr fuchsia.net/Ipv4Address

Address of the multicast group the membership refers to.

No default

Ipv6MulticastMembership

Defined in fuchsia.posix.socket/socket.fidl

IPv6 multicast membership options.

FieldTypeDescriptionDefault
iface fuchsia.net/InterfaceId

Interface index for membership.

No default
mcast_addr fuchsia.net/Ipv6Address

Address of the multicast group the membership refers to.

No default

Ipv6PktInfoRecvControlData

Defined in fuchsia.posix.socket/socket.fidl

FieldTypeDescriptionDefault
iface fuchsia.net/InterfaceId

The index of the interface on which the IP packet was received.

No default
header_destination_addr fuchsia.net/Ipv6Address

The destination address specified in the received packet's IP header.

No default

Ipv6PktInfoSendControlData

Defined in fuchsia.posix.socket/socket.fidl

IPv6-specific disposition of sent data.

This is currently a struct instead of a table as it is meant to match in6_pktinfo which is not expected to grow.

FieldTypeDescriptionDefault
iface uint64

The interface index from which the IPv6 packet should be sent.

0 indicates that the local interface is unspecified and the stack may choose an appropriate interface.

No default
local_addr fuchsia.net/Ipv6Address

The source address from which the IPv6 packet should be sent.

All zeroes indicates that the local address is unspecified and the stack may choose an appropriate address (i.e. the local address to which the socket is bound).

No default

Provider_DatagramSocketDeprecated_Response resource

Defined in fuchsia.posix.socket/socket.fidl

FieldTypeDescriptionDefault
s client_end:SynchronousDatagramSocket No default

Provider_InterfaceIndexToName_Response

Defined in fuchsia.posix.socket/socket.fidl

FieldTypeDescriptionDefault
name fuchsia.net.interfaces/Name No default

Provider_InterfaceNameToFlags_Response

Defined in fuchsia.posix.socket/socket.fidl

FieldTypeDescriptionDefault
flags InterfaceFlags No default

Provider_InterfaceNameToIndex_Response

Defined in fuchsia.posix.socket/socket.fidl

FieldTypeDescriptionDefault
index uint64 No default

Provider_StreamSocket_Response resource

Defined in fuchsia.posix.socket/socket.fidl

FieldTypeDescriptionDefault
s client_end:StreamSocket No default

StreamSocket_Accept_Response resource

Defined in fuchsia.posix.socket/socket.fidl

FieldTypeDescriptionDefault
addr fuchsia.net/SocketAddress? No default
s client_end:StreamSocket No default

StreamSocket_GetInfo_Response

Defined in fuchsia.posix.socket/socket.fidl

FieldTypeDescriptionDefault
domain Domain No default
proto StreamSocketProtocol No default

StreamSocket_GetTcpCongestion_Response

Defined in fuchsia.posix.socket/socket.fidl

FieldTypeDescriptionDefault
value TcpCongestionControl No default

StreamSocket_GetTcpCork_Response

Defined in fuchsia.posix.socket/socket.fidl

FieldTypeDescriptionDefault
value bool No default

StreamSocket_GetTcpDeferAccept_Response

Defined in fuchsia.posix.socket/socket.fidl

FieldTypeDescriptionDefault
value_secs uint32 No default

StreamSocket_GetTcpInfo_Response

Defined in fuchsia.posix.socket/socket.fidl

FieldTypeDescriptionDefault
info TcpInfo No default

StreamSocket_GetTcpKeepAliveCount_Response

Defined in fuchsia.posix.socket/socket.fidl

FieldTypeDescriptionDefault
value uint32 No default

StreamSocket_GetTcpKeepAliveIdle_Response

Defined in fuchsia.posix.socket/socket.fidl

FieldTypeDescriptionDefault
value_secs uint32 No default

StreamSocket_GetTcpKeepAliveInterval_Response

Defined in fuchsia.posix.socket/socket.fidl

FieldTypeDescriptionDefault
value_secs uint32 No default

StreamSocket_GetTcpLinger_Response

Defined in fuchsia.posix.socket/socket.fidl

FieldTypeDescriptionDefault
value_secs OptionalUint32 No default

StreamSocket_GetTcpMaxSegment_Response

Defined in fuchsia.posix.socket/socket.fidl

FieldTypeDescriptionDefault
value_bytes uint32 No default

StreamSocket_GetTcpNoDelay_Response

Defined in fuchsia.posix.socket/socket.fidl

FieldTypeDescriptionDefault
value bool No default

StreamSocket_GetTcpQuickAck_Response

Defined in fuchsia.posix.socket/socket.fidl

FieldTypeDescriptionDefault
value bool No default

StreamSocket_GetTcpSynCount_Response

Defined in fuchsia.posix.socket/socket.fidl

FieldTypeDescriptionDefault
value uint32 No default

StreamSocket_GetTcpUserTimeout_Response

Defined in fuchsia.posix.socket/socket.fidl

FieldTypeDescriptionDefault
value_millis uint32 No default

StreamSocket_GetTcpWindowClamp_Response

Defined in fuchsia.posix.socket/socket.fidl

FieldTypeDescriptionDefault
value uint32 No default

StreamSocket_Listen_Response

Defined in fuchsia.posix.socket/socket.fidl

<EMPTY>

StreamSocket_SetTcpCongestion_Response

Defined in fuchsia.posix.socket/socket.fidl

<EMPTY>

StreamSocket_SetTcpCork_Response

Defined in fuchsia.posix.socket/socket.fidl

<EMPTY>

StreamSocket_SetTcpDeferAccept_Response

Defined in fuchsia.posix.socket/socket.fidl

<EMPTY>

StreamSocket_SetTcpKeepAliveCount_Response

Defined in fuchsia.posix.socket/socket.fidl

<EMPTY>

StreamSocket_SetTcpKeepAliveIdle_Response

Defined in fuchsia.posix.socket/socket.fidl

<EMPTY>

StreamSocket_SetTcpKeepAliveInterval_Response

Defined in fuchsia.posix.socket/socket.fidl

<EMPTY>

StreamSocket_SetTcpLinger_Response

Defined in fuchsia.posix.socket/socket.fidl

<EMPTY>

StreamSocket_SetTcpMaxSegment_Response

Defined in fuchsia.posix.socket/socket.fidl

<EMPTY>

StreamSocket_SetTcpNoDelay_Response

Defined in fuchsia.posix.socket/socket.fidl

<EMPTY>

StreamSocket_SetTcpQuickAck_Response

Defined in fuchsia.posix.socket/socket.fidl

<EMPTY>

StreamSocket_SetTcpSynCount_Response

Defined in fuchsia.posix.socket/socket.fidl

<EMPTY>

StreamSocket_SetTcpUserTimeout_Response

Defined in fuchsia.posix.socket/socket.fidl

<EMPTY>

StreamSocket_SetTcpWindowClamp_Response

Defined in fuchsia.posix.socket/socket.fidl

<EMPTY>

SynchronousDatagramSocket_RecvMsg_Response

Defined in fuchsia.posix.socket/socket.fidl

FieldTypeDescriptionDefault
addr fuchsia.net/SocketAddress? No default
data vector<uint8> No default
control DatagramSocketRecvControlData No default
truncated uint32 No default

SynchronousDatagramSocket_SendMsg_Response

Defined in fuchsia.posix.socket/socket.fidl

FieldTypeDescriptionDefault
len int64 No default

Timestamp

Defined in fuchsia.posix.socket/socket.fidl

FieldTypeDescriptionDefault
nanoseconds int64

Time in nanoseconds since epoch (January 1 1970 GMT).

No default
requested TimestampOption

Identifies whether/how the timestamp should be returned to the user. Ignored in the DatagramSocket protocol.

No default

ENUMS

DatagramSocketProtocol strict

Type: uint32

Defined in fuchsia.posix.socket/socket.fidl

Protocols supported by fuchsia.posix.socket/DatagramSocket.

DatagramSocketProtocol enumerates the protocols supported by the network stack over datagram sockets.

NameValueDescription
1

UDP (User Datagram Protocol).

A UDP socket is equivalent to the POSIX API of SOCK_DGRAM with a protocol of 0 or IPPROTO_UDP.

2

ICMP (Internet Control Message Protocol) echo.

An ICMP echo socket is equivalent to the POSIX API of SOCK_DGRAM with a protocol of IPPROTO_ICMP IPPROTO_ICMPV6 (depending on provided domain).

Datagrams sent over an ICMP echo socket must have a valid ICMP or ICMPv6 echo header.

Domain strict

Type: int16

Defined in fuchsia.posix.socket/socket.fidl

A socket's domain.

Determines the addressing domain for a socket.

NameValueDescription
0

An IPv4 socket. Equivalent to AF_INET.

1

An IPv6 socket. Equivalent to AF_INET6.

MarkDomain strict

Type: uint32

Defined in fuchsia.posix.socket/socket.fidl

Domains for a mark. This allows multiple marks to be set and retrieved independently.

Added: HEAD

NameValueDescription
0
1

StreamSocketProtocol strict

Type: uint32

Defined in fuchsia.posix.socket/socket.fidl

Protocols supported by fuchsia.posix.socket/StreamSocket.

StreamSocketProtocol enumerates the protocols supported by the network stack over stream sockets.

NameValueDescription
0

TCP (Transmission Control Protocol).

A TCP socket is equivalent to the POSIX API of SOCK_STREAM with a protocol of 0 or IPPROTO_TCP.

TcpCongestionControl strict

Type: uint32

Defined in fuchsia.posix.socket/socket.fidl

TCP congestion control modes.

NameValueDescription
1
2

TcpCongestionControlState strict

Type: uint32

Defined in fuchsia.posix.socket/socket.fidl

TCP congestion control state machine state.

NameValueDescription
0
1
2
3
4

TcpState strict

Type: uint32

Defined in fuchsia.posix.socket/socket.fidl

TCP state machine state.

NameValueDescription
1
2
3
4
5
6
7
8
9
10
11

TimestampOption strict

Type: uint32

Defined in fuchsia.posix.socket/socket.fidl

Packet timestamp reporting precision options.

NameValueDescription
0

Do not report timestamp.

1

Report timestamp with nanosecond precision.

2

Report timestamp with microsecond precision.

UdpMetadataEncodingProtocolVersion flexible

Type: uint16

Defined in fuchsia.posix.socket/socket.fidl

NameValueDescription
0

TABLES

DatagramSocketDescribeResponse resource

Defined in fuchsia.posix.socket/socket.fidl

OrdinalFieldTypeDescription
socket handle<socket>

ZX_SOCKET_DATAGRAM on which data is sent and received.

tx_meta_buf_size uint64

Size of the buffer used to receive Tx metadata.

rx_meta_buf_size uint64

Size of the buffer used to receive Rx metadata.

metadata_encoding_protocol_version UdpMetadataEncodingProtocolVersion

Identifies the version of the protocol used to encode and decode metadata sent alongside payloads over the socket.

DatagramSocketRecvControlData

Defined in fuchsia.posix.socket/socket.fidl

OrdinalFieldTypeDescription
network NetworkSocketRecvControlData

Network socket ancillary data.

DatagramSocketSendControlData

Defined in fuchsia.posix.socket/socket.fidl

OrdinalFieldTypeDescription
network NetworkSocketSendControlData

Network socket ancillary data.

DatagramSocketSendMsgPreflightRequest

Defined in fuchsia.posix.socket/socket.fidl

OrdinalFieldTypeDescription
to fuchsia.net/SocketAddress

The destination address.

If absent, interpreted as the method receiver's connected address and causes the connected address to be returned.

Required if the method receiver is not connected.

ipv6_pktinfo Ipv6PktInfoSendControlData

Information controlling the local interface and/or address used when sending an IPv6 packet.

If absent, indicates that the stack is free to choose an appropriate outgoing route.

DatagramSocket_RecvMsgPostflight_Response resource

Defined in fuchsia.posix.socket/socket.fidl

OrdinalFieldTypeDescription
validity handle<eventpair>

Represents the validity of this structure.

The structure is invalid if the peer is closed.

timestamp TimestampOption

Identifies whether the SO_TIMESTAMP or SO_TIMESTAMPNS control messages are requested.

requests CmsgRequests

Identifies the status (requested or not) of up to 32 control messages. This set size should be large enough to signal the status of all cmsgs supported by POSIX systems as of 2022. If that changes, the set can be extended by adding additional bits fields.

DatagramSocket_SendMsgPreflight_Response resource

Defined in fuchsia.posix.socket/socket.fidl

OrdinalFieldTypeDescription
to fuchsia.net/SocketAddress

The validated destination address.

Present only in response to an unset to addreess.

validity vector<handle<eventpair>>:63

Represents the validity of this structure.

The structure is invalid if any of the elements' peer is closed. Datagrams sent with the associated metadata after invalidation will be silently dropped.

maximum_size uint32

The maximum datagram size that can be sent.

Datagrams exceeding this will be silently dropped.

InterfaceAddresses

Defined in fuchsia.posix.socket/socket.fidl

Holds information about an interface and its addresses.

OrdinalFieldTypeDescription
id uint64

ID of the interface.

name fuchsia.net.interfaces/Name

Name of the interface.

addresses vector<fuchsia.net/Subnet>

All addresses currently assigned to the interface.

interface_flags InterfaceFlags

Contains the interface flags, as returned by the SIOCGIFFLAGS ioctl operation.

IpRecvControlData

Defined in fuchsia.posix.socket/socket.fidl

OrdinalFieldTypeDescription
tos uint8

The Type of Service value found in a received packet's IPv4 header.

Present if the SOL_IP -> IP_RECVTOS option is enabled.

ttl uint8

The Time to Live value found in a received packet's IPv4 header.

Present if the SOL_IP -> IP_RECVTTL option is enabled.

original_destination_address fuchsia.net/SocketAddress

The original destination address.

Present if the SOL_IP -> IP_RECVORIGDSTADDR option is enabled.

Added: 15

IpSendControlData

Defined in fuchsia.posix.socket/socket.fidl

OrdinalFieldTypeDescription
ttl uint8

The Time to Live value to set in the IPv4 header of an outgoing packet.

Ipv6RecvControlData

Defined in fuchsia.posix.socket/socket.fidl

OrdinalFieldTypeDescription
tclass uint8

The Traffic Class of a packet that was received.

Present if the SOL_IPV6 -> IPV6_RECVTCLASS option is enabled.

hoplimit uint8

The Hop Limit of a packet that was received.

Present if the SOL_IPV6 -> IPV6_RECVHOPLIMIT option is enabled.

pktinfo Ipv6PktInfoRecvControlData

The packet information of a packet that was received.

Present if the SOL_IPV6 -> IPV6_RECVPKTINFO option is enabled.

Ipv6SendControlData

Defined in fuchsia.posix.socket/socket.fidl

OrdinalFieldTypeDescription
hoplimit uint8

The Hop Limit value to set in the IPv6 header of an outgoing packet.

pktinfo Ipv6PktInfoSendControlData

Information controlling the local interface and/or address used when sending an IPv6 packet.

NetworkSocketRecvControlData

Defined in fuchsia.posix.socket/socket.fidl

Network socket (L3) ancillary data that can be received.

OrdinalFieldTypeDescription
socket SocketRecvControlData

Socket level ancillary data.

ip IpRecvControlData

IPv4 level ancillary data.

These match POSIX SOL_IP control messages.

ipv6 Ipv6RecvControlData

IPv6 level ancillary data.

These match POSIX SOL_IPV6 control messages.

NetworkSocketSendControlData

Defined in fuchsia.posix.socket/socket.fidl

Network socket (L3) ancillary data that can be sent.

OrdinalFieldTypeDescription
socket SocketSendControlData

Socket level ancillary data.

ip IpSendControlData

IPv4 level ancillary data.

These match POSIX SOL_IP control messages.

ipv6 Ipv6SendControlData

IPv6 level ancillary data.

These match POSIX SOL_IPV6 control messages.

RecvMsgMeta

Defined in fuchsia.posix.socket/socket.fidl

Metadata of a received datagram.

OrdinalFieldTypeDescription
from fuchsia.net/SocketAddress

The from address of the datagram.

control DatagramSocketRecvControlData

Ancillary control message data describing the datagram.

payload_len uint16

The length of the payload, in bytes.

SendMsgMeta

Defined in fuchsia.posix.socket/socket.fidl

Metadata of a sent datagram.

OrdinalFieldTypeDescription
to fuchsia.net/SocketAddress

The destination address, if specified.

control DatagramSocketSendControlData

Ancillary control message data used for sending the payload.

SocketRecvControlData

Defined in fuchsia.posix.socket/socket.fidl

Socket level ancillary data that can be received.

These match control messages with a SOL_SOCKET level.

OrdinalFieldTypeDescription
timestamp Timestamp

Data about the time at which the packet was received.

SocketSendControlData

Defined in fuchsia.posix.socket/socket.fidl

Socket level ancillary data that can be sent.

These match the POSIX SOL_SOCKET control messages.

OrdinalFieldTypeDescription

StreamSocketDescribeResponse resource

Defined in fuchsia.posix.socket/socket.fidl

OrdinalFieldTypeDescription
socket handle<socket>

ZX_SOCKET_STREAM on which data is sent and received.

SynchronousDatagramSocketDescribeResponse resource

Defined in fuchsia.posix.socket/socket.fidl

OrdinalFieldTypeDescription
event handle<eventpair>

Signals additional information about the state of the socket such as readiness or shutdown-ness.

TcpInfo

Defined in fuchsia.posix.socket/socket.fidl

TCP protocol state.

OrdinalFieldTypeDescription
state TcpState
ca_state TcpCongestionControlState
rto_usec uint32
rtt_usec uint32
rtt_var_usec uint32
snd_ssthresh uint32
snd_cwnd uint32
reorder_seen bool

UNIONS

BaseDatagramSocket_GetInfo_Result strict

Defined in fuchsia.posix.socket/socket.fidl

OrdinalVariantTypeDescription
response BaseDatagramSocket_GetInfo_Response
err fuchsia.posix/Errno

BaseNetworkSocket_AddIpMembership_Result strict

Defined in fuchsia.posix.socket/socket.fidl

OrdinalVariantTypeDescription
response BaseNetworkSocket_AddIpMembership_Response
err fuchsia.posix/Errno

BaseNetworkSocket_AddIpv6Membership_Result strict

Defined in fuchsia.posix.socket/socket.fidl

OrdinalVariantTypeDescription
response BaseNetworkSocket_AddIpv6Membership_Response
err fuchsia.posix/Errno

BaseNetworkSocket_Bind_Result strict

Defined in fuchsia.posix.socket/socket.fidl

OrdinalVariantTypeDescription
response BaseNetworkSocket_Bind_Response
err fuchsia.posix/Errno

BaseNetworkSocket_Connect_Result strict

Defined in fuchsia.posix.socket/socket.fidl

OrdinalVariantTypeDescription
response BaseNetworkSocket_Connect_Response
err fuchsia.posix/Errno

BaseNetworkSocket_Disconnect_Result strict

Defined in fuchsia.posix.socket/socket.fidl

OrdinalVariantTypeDescription
response BaseNetworkSocket_Disconnect_Response
err fuchsia.posix/Errno

BaseNetworkSocket_DropIpMembership_Result strict

Defined in fuchsia.posix.socket/socket.fidl

OrdinalVariantTypeDescription
response BaseNetworkSocket_DropIpMembership_Response
err fuchsia.posix/Errno

BaseNetworkSocket_DropIpv6Membership_Result strict

Defined in fuchsia.posix.socket/socket.fidl

OrdinalVariantTypeDescription
response BaseNetworkSocket_DropIpv6Membership_Response
err fuchsia.posix/Errno

BaseNetworkSocket_GetIpMulticastInterface_Result strict

Defined in fuchsia.posix.socket/socket.fidl

OrdinalVariantTypeDescription
response BaseNetworkSocket_GetIpMulticastInterface_Response
err fuchsia.posix/Errno

BaseNetworkSocket_GetIpMulticastLoopback_Result strict

Defined in fuchsia.posix.socket/socket.fidl

OrdinalVariantTypeDescription
response BaseNetworkSocket_GetIpMulticastLoopback_Response
err fuchsia.posix/Errno

BaseNetworkSocket_GetIpMulticastTtl_Result strict

Defined in fuchsia.posix.socket/socket.fidl

OrdinalVariantTypeDescription
response BaseNetworkSocket_GetIpMulticastTtl_Response
err fuchsia.posix/Errno

BaseNetworkSocket_GetIpPacketInfo_Result strict

Defined in fuchsia.posix.socket/socket.fidl

OrdinalVariantTypeDescription
response BaseNetworkSocket_GetIpPacketInfo_Response
err fuchsia.posix/Errno

BaseNetworkSocket_GetIpReceiveOriginalDestinationAddress_Result strict

Defined in fuchsia.posix.socket/socket.fidl

OrdinalVariantTypeDescription
response BaseNetworkSocket_GetIpReceiveOriginalDestinationAddress_Response
err fuchsia.posix/Errno

BaseNetworkSocket_GetIpReceiveTtl_Result strict

Defined in fuchsia.posix.socket/socket.fidl

OrdinalVariantTypeDescription
response BaseNetworkSocket_GetIpReceiveTtl_Response
err fuchsia.posix/Errno

BaseNetworkSocket_GetIpReceiveTypeOfService_Result strict

Defined in fuchsia.posix.socket/socket.fidl

OrdinalVariantTypeDescription
response BaseNetworkSocket_GetIpReceiveTypeOfService_Response
err fuchsia.posix/Errno

BaseNetworkSocket_GetIpTransparent_Result strict

Defined in fuchsia.posix.socket/socket.fidl

OrdinalVariantTypeDescription
response BaseNetworkSocket_GetIpTransparent_Response
err fuchsia.posix/Errno

BaseNetworkSocket_GetIpTtl_Result strict

Defined in fuchsia.posix.socket/socket.fidl

OrdinalVariantTypeDescription
response BaseNetworkSocket_GetIpTtl_Response
err fuchsia.posix/Errno

BaseNetworkSocket_GetIpTypeOfService_Result strict

Defined in fuchsia.posix.socket/socket.fidl

OrdinalVariantTypeDescription
response BaseNetworkSocket_GetIpTypeOfService_Response
err fuchsia.posix/Errno

BaseNetworkSocket_GetIpv6MulticastHops_Result strict

Defined in fuchsia.posix.socket/socket.fidl

OrdinalVariantTypeDescription
response BaseNetworkSocket_GetIpv6MulticastHops_Response
err fuchsia.posix/Errno

BaseNetworkSocket_GetIpv6MulticastInterface_Result strict

Defined in fuchsia.posix.socket/socket.fidl

OrdinalVariantTypeDescription
response BaseNetworkSocket_GetIpv6MulticastInterface_Response
err fuchsia.posix/Errno

BaseNetworkSocket_GetIpv6MulticastLoopback_Result strict

Defined in fuchsia.posix.socket/socket.fidl

OrdinalVariantTypeDescription
response BaseNetworkSocket_GetIpv6MulticastLoopback_Response
err fuchsia.posix/Errno

BaseNetworkSocket_GetIpv6Only_Result strict

Defined in fuchsia.posix.socket/socket.fidl

OrdinalVariantTypeDescription
response BaseNetworkSocket_GetIpv6Only_Response
err fuchsia.posix/Errno

BaseNetworkSocket_GetIpv6ReceiveHopLimit_Result strict

Defined in fuchsia.posix.socket/socket.fidl

OrdinalVariantTypeDescription
response BaseNetworkSocket_GetIpv6ReceiveHopLimit_Response
err fuchsia.posix/Errno

BaseNetworkSocket_GetIpv6ReceivePacketInfo_Result strict

Defined in fuchsia.posix.socket/socket.fidl

OrdinalVariantTypeDescription
response BaseNetworkSocket_GetIpv6ReceivePacketInfo_Response
err fuchsia.posix/Errno

BaseNetworkSocket_GetIpv6ReceiveTrafficClass_Result strict

Defined in fuchsia.posix.socket/socket.fidl

OrdinalVariantTypeDescription
response BaseNetworkSocket_GetIpv6ReceiveTrafficClass_Response
err fuchsia.posix/Errno

BaseNetworkSocket_GetIpv6TrafficClass_Result strict

Defined in fuchsia.posix.socket/socket.fidl

OrdinalVariantTypeDescription
response BaseNetworkSocket_GetIpv6TrafficClass_Response
err fuchsia.posix/Errno

BaseNetworkSocket_GetIpv6UnicastHops_Result strict

Defined in fuchsia.posix.socket/socket.fidl

OrdinalVariantTypeDescription
response BaseNetworkSocket_GetIpv6UnicastHops_Response
err fuchsia.posix/Errno

BaseNetworkSocket_GetOriginalDestination_Result strict

Defined in fuchsia.posix.socket/socket.fidl

OrdinalVariantTypeDescription
response BaseNetworkSocket_GetOriginalDestination_Response
err fuchsia.posix/Errno

BaseNetworkSocket_GetPeerName_Result strict

Defined in fuchsia.posix.socket/socket.fidl

OrdinalVariantTypeDescription
response BaseNetworkSocket_GetPeerName_Response
err fuchsia.posix/Errno

BaseNetworkSocket_GetSockName_Result strict

Defined in fuchsia.posix.socket/socket.fidl

OrdinalVariantTypeDescription
response BaseNetworkSocket_GetSockName_Response
err fuchsia.posix/Errno

BaseNetworkSocket_SetIpMulticastInterface_Result strict

Defined in fuchsia.posix.socket/socket.fidl

OrdinalVariantTypeDescription
response BaseNetworkSocket_SetIpMulticastInterface_Response
err fuchsia.posix/Errno

BaseNetworkSocket_SetIpMulticastLoopback_Result strict

Defined in fuchsia.posix.socket/socket.fidl

OrdinalVariantTypeDescription
response BaseNetworkSocket_SetIpMulticastLoopback_Response
err fuchsia.posix/Errno

BaseNetworkSocket_SetIpMulticastTtl_Result strict

Defined in fuchsia.posix.socket/socket.fidl

OrdinalVariantTypeDescription
response BaseNetworkSocket_SetIpMulticastTtl_Response
err fuchsia.posix/Errno

BaseNetworkSocket_SetIpPacketInfo_Result strict

Defined in fuchsia.posix.socket/socket.fidl

OrdinalVariantTypeDescription
response BaseNetworkSocket_SetIpPacketInfo_Response
err fuchsia.posix/Errno

BaseNetworkSocket_SetIpReceiveOriginalDestinationAddress_Result strict

Defined in fuchsia.posix.socket/socket.fidl

OrdinalVariantTypeDescription
response BaseNetworkSocket_SetIpReceiveOriginalDestinationAddress_Response
err fuchsia.posix/Errno

BaseNetworkSocket_SetIpReceiveTtl_Result strict

Defined in fuchsia.posix.socket/socket.fidl

OrdinalVariantTypeDescription
response BaseNetworkSocket_SetIpReceiveTtl_Response
err fuchsia.posix/Errno

BaseNetworkSocket_SetIpReceiveTypeOfService_Result strict

Defined in fuchsia.posix.socket/socket.fidl

OrdinalVariantTypeDescription
response BaseNetworkSocket_SetIpReceiveTypeOfService_Response
err fuchsia.posix/Errno

BaseNetworkSocket_SetIpTransparent_Result strict

Defined in fuchsia.posix.socket/socket.fidl

OrdinalVariantTypeDescription
response BaseNetworkSocket_SetIpTransparent_Response
err fuchsia.posix/Errno

BaseNetworkSocket_SetIpTtl_Result strict

Defined in fuchsia.posix.socket/socket.fidl

OrdinalVariantTypeDescription
response BaseNetworkSocket_SetIpTtl_Response
err fuchsia.posix/Errno

BaseNetworkSocket_SetIpTypeOfService_Result strict

Defined in fuchsia.posix.socket/socket.fidl

OrdinalVariantTypeDescription
response BaseNetworkSocket_SetIpTypeOfService_Response
err fuchsia.posix/Errno

BaseNetworkSocket_SetIpv6MulticastHops_Result strict

Defined in fuchsia.posix.socket/socket.fidl

OrdinalVariantTypeDescription
response BaseNetworkSocket_SetIpv6MulticastHops_Response
err fuchsia.posix/Errno

BaseNetworkSocket_SetIpv6MulticastInterface_Result strict

Defined in fuchsia.posix.socket/socket.fidl

OrdinalVariantTypeDescription
response BaseNetworkSocket_SetIpv6MulticastInterface_Response
err fuchsia.posix/Errno

BaseNetworkSocket_SetIpv6MulticastLoopback_Result strict

Defined in fuchsia.posix.socket/socket.fidl

OrdinalVariantTypeDescription
response BaseNetworkSocket_SetIpv6MulticastLoopback_Response
err fuchsia.posix/Errno

BaseNetworkSocket_SetIpv6Only_Result strict

Defined in fuchsia.posix.socket/socket.fidl

OrdinalVariantTypeDescription
response BaseNetworkSocket_SetIpv6Only_Response
err fuchsia.posix/Errno

BaseNetworkSocket_SetIpv6ReceiveHopLimit_Result strict

Defined in fuchsia.posix.socket/socket.fidl

OrdinalVariantTypeDescription
response BaseNetworkSocket_SetIpv6ReceiveHopLimit_Response
err fuchsia.posix/Errno

BaseNetworkSocket_SetIpv6ReceivePacketInfo_Result strict

Defined in fuchsia.posix.socket/socket.fidl

OrdinalVariantTypeDescription
response BaseNetworkSocket_SetIpv6ReceivePacketInfo_Response
err fuchsia.posix/Errno

BaseNetworkSocket_SetIpv6ReceiveTrafficClass_Result strict

Defined in fuchsia.posix.socket/socket.fidl

OrdinalVariantTypeDescription
response BaseNetworkSocket_SetIpv6ReceiveTrafficClass_Response
err fuchsia.posix/Errno

BaseNetworkSocket_SetIpv6TrafficClass_Result strict

Defined in fuchsia.posix.socket/socket.fidl

OrdinalVariantTypeDescription
response BaseNetworkSocket_SetIpv6TrafficClass_Response
err fuchsia.posix/Errno

BaseNetworkSocket_SetIpv6UnicastHops_Result strict

Defined in fuchsia.posix.socket/socket.fidl

OrdinalVariantTypeDescription
response BaseNetworkSocket_SetIpv6UnicastHops_Response
err fuchsia.posix/Errno

BaseNetworkSocket_Shutdown_Result strict

Defined in fuchsia.posix.socket/socket.fidl

OrdinalVariantTypeDescription
response BaseNetworkSocket_Shutdown_Response
err fuchsia.posix/Errno

BaseSocket_GetAcceptConn_Result strict

Defined in fuchsia.posix.socket/socket.fidl

OrdinalVariantTypeDescription
response BaseSocket_GetAcceptConn_Response
err fuchsia.posix/Errno

BaseSocket_GetBindToDevice_Result strict

Defined in fuchsia.posix.socket/socket.fidl

OrdinalVariantTypeDescription
response BaseSocket_GetBindToDevice_Response
err fuchsia.posix/Errno

BaseSocket_GetBindToInterfaceIndex_Result strict

Defined in fuchsia.posix.socket/socket.fidl

OrdinalVariantTypeDescription
response BaseSocket_GetBindToInterfaceIndex_Response
err fuchsia.posix/Errno

BaseSocket_GetBroadcast_Result strict

Defined in fuchsia.posix.socket/socket.fidl

OrdinalVariantTypeDescription
response BaseSocket_GetBroadcast_Response
err fuchsia.posix/Errno

BaseSocket_GetError_Result strict

Defined in fuchsia.posix.socket/socket.fidl

OrdinalVariantTypeDescription
response BaseSocket_GetError_Response
err fuchsia.posix/Errno

BaseSocket_GetKeepAlive_Result strict

Defined in fuchsia.posix.socket/socket.fidl

OrdinalVariantTypeDescription
response BaseSocket_GetKeepAlive_Response
err fuchsia.posix/Errno

BaseSocket_GetLinger_Result strict

Defined in fuchsia.posix.socket/socket.fidl

OrdinalVariantTypeDescription
response BaseSocket_GetLinger_Response
err fuchsia.posix/Errno

BaseSocket_GetMark_Result strict

Defined in fuchsia.posix.socket/socket.fidl

OrdinalVariantTypeDescription
response BaseSocket_GetMark_Response
err fuchsia.posix/Errno

BaseSocket_GetNoCheck_Result strict

Defined in fuchsia.posix.socket/socket.fidl

OrdinalVariantTypeDescription
response BaseSocket_GetNoCheck_Response
err fuchsia.posix/Errno

BaseSocket_GetOutOfBandInline_Result strict

Defined in fuchsia.posix.socket/socket.fidl

OrdinalVariantTypeDescription
response BaseSocket_GetOutOfBandInline_Response
err fuchsia.posix/Errno

BaseSocket_GetReceiveBuffer_Result strict

Defined in fuchsia.posix.socket/socket.fidl

OrdinalVariantTypeDescription
response BaseSocket_GetReceiveBuffer_Response
err fuchsia.posix/Errno

BaseSocket_GetReuseAddress_Result strict

Defined in fuchsia.posix.socket/socket.fidl

OrdinalVariantTypeDescription
response BaseSocket_GetReuseAddress_Response
err fuchsia.posix/Errno

BaseSocket_GetReusePort_Result strict

Defined in fuchsia.posix.socket/socket.fidl

OrdinalVariantTypeDescription
response BaseSocket_GetReusePort_Response
err fuchsia.posix/Errno

BaseSocket_GetSendBuffer_Result strict

Defined in fuchsia.posix.socket/socket.fidl

OrdinalVariantTypeDescription
response BaseSocket_GetSendBuffer_Response
err fuchsia.posix/Errno

BaseSocket_GetTimestamp_Result strict

Defined in fuchsia.posix.socket/socket.fidl

OrdinalVariantTypeDescription
response BaseSocket_GetTimestamp_Response
err fuchsia.posix/Errno

BaseSocket_SetBindToDevice_Result strict

Defined in fuchsia.posix.socket/socket.fidl

OrdinalVariantTypeDescription
response BaseSocket_SetBindToDevice_Response
err fuchsia.posix/Errno

BaseSocket_SetBindToInterfaceIndex_Result strict

Defined in fuchsia.posix.socket/socket.fidl

OrdinalVariantTypeDescription
response BaseSocket_SetBindToInterfaceIndex_Response
err fuchsia.posix/Errno

BaseSocket_SetBroadcast_Result strict

Defined in fuchsia.posix.socket/socket.fidl

OrdinalVariantTypeDescription
response BaseSocket_SetBroadcast_Response
err fuchsia.posix/Errno

BaseSocket_SetKeepAlive_Result strict

Defined in fuchsia.posix.socket/socket.fidl

OrdinalVariantTypeDescription
response BaseSocket_SetKeepAlive_Response
err fuchsia.posix/Errno

BaseSocket_SetLinger_Result strict

Defined in fuchsia.posix.socket/socket.fidl

OrdinalVariantTypeDescription
response BaseSocket_SetLinger_Response
err fuchsia.posix/Errno

BaseSocket_SetMark_Result strict

Defined in fuchsia.posix.socket/socket.fidl

OrdinalVariantTypeDescription
response BaseSocket_SetMark_Response
err fuchsia.posix/Errno

BaseSocket_SetNoCheck_Result strict

Defined in fuchsia.posix.socket/socket.fidl

OrdinalVariantTypeDescription
response BaseSocket_SetNoCheck_Response
err fuchsia.posix/Errno

BaseSocket_SetOutOfBandInline_Result strict

Defined in fuchsia.posix.socket/socket.fidl

OrdinalVariantTypeDescription
response BaseSocket_SetOutOfBandInline_Response
err fuchsia.posix/Errno

BaseSocket_SetReceiveBuffer_Result strict

Defined in fuchsia.posix.socket/socket.fidl

OrdinalVariantTypeDescription
response BaseSocket_SetReceiveBuffer_Response
err fuchsia.posix/Errno

BaseSocket_SetReuseAddress_Result strict

Defined in fuchsia.posix.socket/socket.fidl

OrdinalVariantTypeDescription
response BaseSocket_SetReuseAddress_Response
err fuchsia.posix/Errno

BaseSocket_SetReusePort_Result strict

Defined in fuchsia.posix.socket/socket.fidl

OrdinalVariantTypeDescription
response BaseSocket_SetReusePort_Response
err fuchsia.posix/Errno

BaseSocket_SetSendBuffer_Result strict

Defined in fuchsia.posix.socket/socket.fidl

OrdinalVariantTypeDescription
response BaseSocket_SetSendBuffer_Response
err fuchsia.posix/Errno

BaseSocket_SetTimestamp_Result strict

Defined in fuchsia.posix.socket/socket.fidl

OrdinalVariantTypeDescription
response BaseSocket_SetTimestamp_Response
err fuchsia.posix/Errno

DatagramSocket_RecvMsgPostflight_Result strict resource

Defined in fuchsia.posix.socket/socket.fidl

OrdinalVariantTypeDescription
response DatagramSocket_RecvMsgPostflight_Response
err fuchsia.posix/Errno

DatagramSocket_SendMsgPreflight_Result strict resource

Defined in fuchsia.posix.socket/socket.fidl

OrdinalVariantTypeDescription
response DatagramSocket_SendMsgPreflight_Response
err fuchsia.posix/Errno

OptionalUint32 strict

Defined in fuchsia.posix.socket/socket.fidl

An optional uint32 value.

OrdinalVariantTypeDescription
value uint32
unset Empty

OptionalUint8 strict

Defined in fuchsia.posix.socket/socket.fidl

An optional byte value.

OrdinalVariantTypeDescription
value uint8
unset Empty

Provider_DatagramSocketDeprecated_Result strict resource

Defined in fuchsia.posix.socket/socket.fidl

OrdinalVariantTypeDescription
response Provider_DatagramSocketDeprecated_Response
err fuchsia.posix/Errno

Provider_DatagramSocket_Response strict resource

Defined in fuchsia.posix.socket/socket.fidl

OrdinalVariantTypeDescription
datagram_socket client_end:DatagramSocket
synchronous_datagram_socket client_end:SynchronousDatagramSocket

Provider_DatagramSocket_Result strict resource

Defined in fuchsia.posix.socket/socket.fidl

OrdinalVariantTypeDescription
response Provider_DatagramSocket_Response
err fuchsia.posix/Errno

Provider_InterfaceIndexToName_Result strict

Defined in fuchsia.posix.socket/socket.fidl

OrdinalVariantTypeDescription
response Provider_InterfaceIndexToName_Response
err zx/Status

Provider_InterfaceNameToFlags_Result strict

Defined in fuchsia.posix.socket/socket.fidl

OrdinalVariantTypeDescription
response Provider_InterfaceNameToFlags_Response
err zx/Status

Provider_InterfaceNameToIndex_Result strict

Defined in fuchsia.posix.socket/socket.fidl

OrdinalVariantTypeDescription
response Provider_InterfaceNameToIndex_Response
err zx/Status

Provider_StreamSocket_Result strict resource

Defined in fuchsia.posix.socket/socket.fidl

OrdinalVariantTypeDescription
response Provider_StreamSocket_Response
err fuchsia.posix/Errno

StreamSocket_Accept_Result strict resource

Defined in fuchsia.posix.socket/socket.fidl

OrdinalVariantTypeDescription
response StreamSocket_Accept_Response
err fuchsia.posix/Errno

StreamSocket_GetInfo_Result strict

Defined in fuchsia.posix.socket/socket.fidl

OrdinalVariantTypeDescription
response StreamSocket_GetInfo_Response
err fuchsia.posix/Errno

StreamSocket_GetTcpCongestion_Result strict

Defined in fuchsia.posix.socket/socket.fidl

OrdinalVariantTypeDescription
response StreamSocket_GetTcpCongestion_Response
err fuchsia.posix/Errno

StreamSocket_GetTcpCork_Result strict

Defined in fuchsia.posix.socket/socket.fidl

OrdinalVariantTypeDescription
response StreamSocket_GetTcpCork_Response
err fuchsia.posix/Errno

StreamSocket_GetTcpDeferAccept_Result strict

Defined in fuchsia.posix.socket/socket.fidl

OrdinalVariantTypeDescription
response StreamSocket_GetTcpDeferAccept_Response
err fuchsia.posix/Errno

StreamSocket_GetTcpInfo_Result strict

Defined in fuchsia.posix.socket/socket.fidl

OrdinalVariantTypeDescription
response StreamSocket_GetTcpInfo_Response
err fuchsia.posix/Errno

StreamSocket_GetTcpKeepAliveCount_Result strict

Defined in fuchsia.posix.socket/socket.fidl

OrdinalVariantTypeDescription
response StreamSocket_GetTcpKeepAliveCount_Response
err fuchsia.posix/Errno

StreamSocket_GetTcpKeepAliveIdle_Result strict

Defined in fuchsia.posix.socket/socket.fidl

OrdinalVariantTypeDescription
response StreamSocket_GetTcpKeepAliveIdle_Response
err fuchsia.posix/Errno

StreamSocket_GetTcpKeepAliveInterval_Result strict

Defined in fuchsia.posix.socket/socket.fidl

OrdinalVariantTypeDescription
response StreamSocket_GetTcpKeepAliveInterval_Response
err fuchsia.posix/Errno

StreamSocket_GetTcpLinger_Result strict

Defined in fuchsia.posix.socket/socket.fidl

OrdinalVariantTypeDescription
response StreamSocket_GetTcpLinger_Response
err fuchsia.posix/Errno

StreamSocket_GetTcpMaxSegment_Result strict

Defined in fuchsia.posix.socket/socket.fidl

OrdinalVariantTypeDescription
response StreamSocket_GetTcpMaxSegment_Response
err fuchsia.posix/Errno

StreamSocket_GetTcpNoDelay_Result strict

Defined in fuchsia.posix.socket/socket.fidl

OrdinalVariantTypeDescription
response StreamSocket_GetTcpNoDelay_Response
err fuchsia.posix/Errno

StreamSocket_GetTcpQuickAck_Result strict

Defined in fuchsia.posix.socket/socket.fidl

OrdinalVariantTypeDescription
response StreamSocket_GetTcpQuickAck_Response
err fuchsia.posix/Errno

StreamSocket_GetTcpSynCount_Result strict

Defined in fuchsia.posix.socket/socket.fidl

OrdinalVariantTypeDescription
response StreamSocket_GetTcpSynCount_Response
err fuchsia.posix/Errno

StreamSocket_GetTcpUserTimeout_Result strict

Defined in fuchsia.posix.socket/socket.fidl

OrdinalVariantTypeDescription
response StreamSocket_GetTcpUserTimeout_Response
err fuchsia.posix/Errno

StreamSocket_GetTcpWindowClamp_Result strict

Defined in fuchsia.posix.socket/socket.fidl

OrdinalVariantTypeDescription
response StreamSocket_GetTcpWindowClamp_Response
err fuchsia.posix/Errno

StreamSocket_Listen_Result strict

Defined in fuchsia.posix.socket/socket.fidl

OrdinalVariantTypeDescription
response StreamSocket_Listen_Response
err fuchsia.posix/Errno

StreamSocket_SetTcpCongestion_Result strict

Defined in fuchsia.posix.socket/socket.fidl

OrdinalVariantTypeDescription
response StreamSocket_SetTcpCongestion_Response
err fuchsia.posix/Errno

StreamSocket_SetTcpCork_Result strict

Defined in fuchsia.posix.socket/socket.fidl

OrdinalVariantTypeDescription
response StreamSocket_SetTcpCork_Response
err fuchsia.posix/Errno

StreamSocket_SetTcpDeferAccept_Result strict

Defined in fuchsia.posix.socket/socket.fidl

OrdinalVariantTypeDescription
response StreamSocket_SetTcpDeferAccept_Response
err fuchsia.posix/Errno

StreamSocket_SetTcpKeepAliveCount_Result strict

Defined in fuchsia.posix.socket/socket.fidl

OrdinalVariantTypeDescription
response StreamSocket_SetTcpKeepAliveCount_Response
err fuchsia.posix/Errno

StreamSocket_SetTcpKeepAliveIdle_Result strict

Defined in fuchsia.posix.socket/socket.fidl

OrdinalVariantTypeDescription
response StreamSocket_SetTcpKeepAliveIdle_Response
err fuchsia.posix/Errno

StreamSocket_SetTcpKeepAliveInterval_Result strict

Defined in fuchsia.posix.socket/socket.fidl

OrdinalVariantTypeDescription
response StreamSocket_SetTcpKeepAliveInterval_Response
err fuchsia.posix/Errno

StreamSocket_SetTcpLinger_Result strict

Defined in fuchsia.posix.socket/socket.fidl

OrdinalVariantTypeDescription
response StreamSocket_SetTcpLinger_Response
err fuchsia.posix/Errno

StreamSocket_SetTcpMaxSegment_Result strict

Defined in fuchsia.posix.socket/socket.fidl

OrdinalVariantTypeDescription
response StreamSocket_SetTcpMaxSegment_Response
err fuchsia.posix/Errno

StreamSocket_SetTcpNoDelay_Result strict

Defined in fuchsia.posix.socket/socket.fidl

OrdinalVariantTypeDescription
response StreamSocket_SetTcpNoDelay_Response
err fuchsia.posix/Errno

StreamSocket_SetTcpQuickAck_Result strict

Defined in fuchsia.posix.socket/socket.fidl

OrdinalVariantTypeDescription
response StreamSocket_SetTcpQuickAck_Response
err fuchsia.posix/Errno

StreamSocket_SetTcpSynCount_Result strict

Defined in fuchsia.posix.socket/socket.fidl

OrdinalVariantTypeDescription
response StreamSocket_SetTcpSynCount_Response
err fuchsia.posix/Errno

StreamSocket_SetTcpUserTimeout_Result strict

Defined in fuchsia.posix.socket/socket.fidl

OrdinalVariantTypeDescription
response StreamSocket_SetTcpUserTimeout_Response
err fuchsia.posix/Errno

StreamSocket_SetTcpWindowClamp_Result strict

Defined in fuchsia.posix.socket/socket.fidl

OrdinalVariantTypeDescription
response StreamSocket_SetTcpWindowClamp_Response
err fuchsia.posix/Errno

SynchronousDatagramSocket_RecvMsg_Result strict

Defined in fuchsia.posix.socket/socket.fidl

OrdinalVariantTypeDescription
response SynchronousDatagramSocket_RecvMsg_Response
err fuchsia.posix/Errno

SynchronousDatagramSocket_SendMsg_Result strict

Defined in fuchsia.posix.socket/socket.fidl

OrdinalVariantTypeDescription
response SynchronousDatagramSocket_SendMsg_Response
err fuchsia.posix/Errno

BITS

CmsgRequests flexible

Type: uint32

Defined in fuchsia.posix.socket/socket.fidl

NameValueDescription
1

Identifies whether the IP_RECVTOS control message is requested.

2

Identifies whether the IP_RECVTTL control message is requested.

4

Identifies whether the IPV6_RECVTCLASS control message is requested.

8

Identifies whether the IPV6_RECVHOPLIMIT control message is requested.

16

Identifies whether the IPV6_RECVPKTINFO control message is requested.

32

Identifies whether the IP_RECVORIGDSTADDR control message is requested.

Added: 15

InterfaceFlags strict

Type: uint16

Defined in fuchsia.posix.socket/socket.fidl

Bits representing the interface flags as returned by the SIOCGIFFLAGS ioctl operation. These bitmasks are intended to track the C API definition. For example, InterfaceFlags.UP corresponds to IFF_UP, etc.

NameValueDescription
1
2
4
8
16
32
64
128
256
512
1024
2048
4096
8192
16384
32768

RecvMsgFlags strict

Type: uint16

Defined in fuchsia.posix.socket/socket.fidl

Flags controlling RecvMsg behavior.

NameValueDescription
2

Returns data from the receive queue without removing from it.

Equivalent to MSG_PEEK.

SendMsgFlags strict

Type: uint16

Defined in fuchsia.posix.socket/socket.fidl

NameValueDescription
32768

ShutdownMode strict

Type: uint16

Defined in fuchsia.posix.socket/socket.fidl

Socket shutdown mode.

NameValueDescription
1

Shutdown socket read endpoint.

2

Shutdown socket write endpoint.

CONSTANTS

NameValueTypeDescription
DATAGRAM_SOCKET_PROTOCOL_NAME fuchsia.posix.socket/DatagramSocket String
FAST_UDP_WAIT_MANY_MAXIMUM_ITEMS 63 uint32

Constant bounding the number of eventpairs returned by Netstack to clients of the fast protocol.

Set equal to ZX_WAIT_MANY_MAXIMUM_ITEMS - 1, where ZX_WAIT_MANY_MAXIMUM_ITEMS is defined in //zircon/system/public/zircon/types.h and bounds the number of eventpairs in a single call to zx_object_wait_many. The bias leaves room to allow clients to wait for errors on the zircon socket in the same call.

SIGNAL_DATAGRAM_ERROR USER_SIGNAL_2 uint32
SIGNAL_DATAGRAM_INCOMING USER_SIGNAL_0 uint32
SIGNAL_DATAGRAM_OUTGOING USER_SIGNAL_1 uint32
SIGNAL_DATAGRAM_SHUTDOWN_READ USER_SIGNAL_4 uint32
SIGNAL_DATAGRAM_SHUTDOWN_WRITE USER_SIGNAL_5 uint32
SIGNAL_STREAM_CONNECTED USER_SIGNAL_3 uint32
SIGNAL_STREAM_INCOMING USER_SIGNAL_0 uint32
STREAM_SOCKET_PROTOCOL_NAME fuchsia.posix.socket/StreamSocket String
SYNCHRONOUS_DATAGRAM_SOCKET_PROTOCOL_NAME fuchsia.posix.socket/SynchronousDatagramSocket String
USER_SIGNAL_0 16777216 uint32
USER_SIGNAL_1 33554432 uint32
USER_SIGNAL_2 67108864 uint32
USER_SIGNAL_3 134217728 uint32
USER_SIGNAL_4 268435456 uint32
USER_SIGNAL_5 536870912 uint32