协议
BaseDatagramSocket
在 fuchsia.posix.socket/socket.fidl 中定义
所有数据报套接字共享的基础协议。
数据报套接字的完整实现应包含此协议。
AddIpMembership
设置 SOL_IP -> IP_ADD_MEMBERSHIP
请求
| 名称 | 类型 |
|---|---|
membership |
IpMulticastMembership
|
响应
| 名称 | 类型 |
|---|---|
payload |
BaseNetworkSocket_AddIpMembership_Result
|
AddIpv6Membership
设置 SOL_IPV6 -> IPV6_ADD_MEMBERSHIP。
请求
| 名称 | 类型 |
|---|---|
membership |
Ipv6MulticastMembership
|
响应
| 名称 | 类型 |
|---|---|
payload |
BaseNetworkSocket_AddIpv6Membership_Result
|
装订
设置用于套接字的本地地址。
请求
| 名称 | 类型 |
|---|---|
addr |
fuchsia.net/SocketAddress
|
响应
| 名称 | 类型 |
|---|---|
payload |
BaseNetworkSocket_Bind_Result
|
克隆
请求
| 名称 | 类型 |
|---|---|
request |
server_end:fuchsia.unknown/Cloneable
|
关闭
终止连接。
调用 Close 后,客户端不得发送任何其他请求。
服务器在发送状态响应后,应关闭连接,无论状态如何,且不发送 epitaph。
关闭通道的客户端在语义上应等同于调用 Close,而无需知道关闭何时完成或其状态。
请求
<EMPTY>
响应
| 名称 | 类型 |
|---|---|
payload |
fuchsia.unknown/Closeable_Close_Result
|
关联
发起与远程地址的连接。
请求
| 名称 | 类型 |
|---|---|
addr |
fuchsia.net/SocketAddress
|
响应
| 名称 | 类型 |
|---|---|
payload |
BaseNetworkSocket_Connect_Result
|
断开连接
清除此套接字中的连接信息。
请求
<EMPTY>
响应
| 名称 | 类型 |
|---|---|
payload |
BaseNetworkSocket_Disconnect_Result
|
DropIpMembership
设置 SOL_IP -> IP_DROP_MEMBERSHIP
请求
| 名称 | 类型 |
|---|---|
membership |
IpMulticastMembership
|
响应
| 名称 | 类型 |
|---|---|
payload |
BaseNetworkSocket_DropIpMembership_Result
|
DropIpv6Membership
设置 SOL_IPV6 -> IPV6_DROP_MEMBERSHIP。
请求
| 名称 | 类型 |
|---|---|
membership |
Ipv6MulticastMembership
|
响应
| 名称 | 类型 |
|---|---|
payload |
BaseNetworkSocket_DropIpv6Membership_Result
|
GetAcceptConn
获取 SOL_SOCKET -> SO_ACCEPTCONN。
请求
<EMPTY>
响应
| 名称 | 类型 |
|---|---|
payload |
BaseSocket_GetAcceptConn_Result
|
GetBindToDevice
获取 SOL_SOCKET -> SO_BINDTODEVICE。
请求
<EMPTY>
响应
| 名称 | 类型 |
|---|---|
payload |
BaseSocket_GetBindToDevice_Result
|
GetBindToInterfaceIndex
获取 SOL_SOCKET -> SO_BINDTOIFINDEX。
请求
<EMPTY>
响应
| 名称 | 类型 |
|---|---|
payload |
BaseSocket_GetBindToInterfaceIndex_Result
|
GetBroadcast
获取 SOL_SOCKET -> SO_BROADCAST。
请求
<EMPTY>
响应
| 名称 | 类型 |
|---|---|
payload |
BaseSocket_GetBroadcast_Result
|
GetCookie
获取 SOL_SOCKET -> SO_COOKIE。
请求
<EMPTY>
响应
| 名称 | 类型 |
|---|---|
payload |
BaseSocket_GetCookie_Result
|
GetError
获取 SOL_SOCKET -> SO_ERROR。
如果套接字上设置了错误,则返回最后一个错误。
请求
<EMPTY>
响应
| 名称 | 类型 |
|---|---|
payload |
BaseSocket_GetError_Result
|
GetInfo
从套接字检索创建信息。
- 响应
domain套接字的关联网域。 - 响应
proto套接字的关联协议。
请求
<EMPTY>
响应
| 名称 | 类型 |
|---|---|
payload |
BaseDatagramSocket_GetInfo_Result
|
GetIpMulticastInterface
获取 SOL_IP -> IP_MULTICAST_IF。
请求
<EMPTY>
响应
| 名称 | 类型 |
|---|---|
payload |
BaseNetworkSocket_GetIpMulticastInterface_Result
|
GetIpMulticastLoopback
获取 SOL_IP -> IP_MULTICAST_LOOP。
请求
<EMPTY>
响应
| 名称 | 类型 |
|---|---|
payload |
BaseNetworkSocket_GetIpMulticastLoopback_Result
|
GetIpMulticastTtl
获取 SOL_IP -> IP_MULTICAST_TTL。
请求
<EMPTY>
响应
| 名称 | 类型 |
|---|---|
payload |
BaseNetworkSocket_GetIpMulticastTtl_Result
|
GetIpPacketInfo
获取 SOL_IP -> IP_PKTINFO。
请求
<EMPTY>
响应
| 名称 | 类型 |
|---|---|
payload |
BaseNetworkSocket_GetIpPacketInfo_Result
|
GetIpReceiveOriginalDestinationAddress
获取 SOL_IP -> IP_RECVORIGDSTADDR
请求
<EMPTY>
响应
| 名称 | 类型 |
|---|---|
payload |
BaseNetworkSocket_GetIpReceiveOriginalDestinationAddress_Result
|
GetIpReceiveTtl
获取 SOL_IP -> IP_RECVTTL。
请求
<EMPTY>
响应
| 名称 | 类型 |
|---|---|
payload |
BaseNetworkSocket_GetIpReceiveTtl_Result
|
GetIpReceiveTypeOfService
获取 SOL_IP -> IP_RECVTOS。
请求
<EMPTY>
响应
| 名称 | 类型 |
|---|---|
payload |
BaseNetworkSocket_GetIpReceiveTypeOfService_Result
|
GetIpTransparent
获取 SOL_IP -> IP_TRANSPARENT
请求
<EMPTY>
响应
| 名称 | 类型 |
|---|---|
payload |
BaseNetworkSocket_GetIpTransparent_Result
|
GetIpTtl
获取 SOL_IP -> IP_TTL。
请求
<EMPTY>
响应
| 名称 | 类型 |
|---|---|
payload |
BaseNetworkSocket_GetIpTtl_Result
|
GetIpTypeOfService
获取 SOL_IP -> IP_TOS。
请求
<EMPTY>
响应
| 名称 | 类型 |
|---|---|
payload |
BaseNetworkSocket_GetIpTypeOfService_Result
|
GetIpv6MulticastHops
获取 SOL_IPV6 -> IPV6_MULTICAST_HOPS。
请求
<EMPTY>
响应
| 名称 | 类型 |
|---|---|
payload |
BaseNetworkSocket_GetIpv6MulticastHops_Result
|
GetIpv6MulticastInterface
获取 SOL_IPV6 -> IPV6_MULTICAST_IF。
请求
<EMPTY>
响应
| 名称 | 类型 |
|---|---|
payload |
BaseNetworkSocket_GetIpv6MulticastInterface_Result
|
GetIpv6MulticastLoopback
获取 SOL_IPV6 -> IPV6_MULTICAST_LOOP。
请求
<EMPTY>
响应
| 名称 | 类型 |
|---|---|
payload |
BaseNetworkSocket_GetIpv6MulticastLoopback_Result
|
GetIpv6Only
获取 SOL_IPV6 -> IPV6_V6ONLY。
请求
<EMPTY>
响应
| 名称 | 类型 |
|---|---|
payload |
BaseNetworkSocket_GetIpv6Only_Result
|
GetIpv6ReceiveHopLimit
获取 SOL_IPV6 -> IPV6_RECVHOPLIMIT。
请求
<EMPTY>
响应
| 名称 | 类型 |
|---|---|
payload |
BaseNetworkSocket_GetIpv6ReceiveHopLimit_Result
|
GetIpv6ReceivePacketInfo
获取 SOL_IPV6 -> IPV6_RECVPKTINFO。
请求
<EMPTY>
响应
| 名称 | 类型 |
|---|---|
payload |
BaseNetworkSocket_GetIpv6ReceivePacketInfo_Result
|
GetIpv6ReceiveTrafficClass
获取 SOL_IPV6 -> IPV6_RECVTCLASS。
请求
<EMPTY>
响应
| 名称 | 类型 |
|---|---|
payload |
BaseNetworkSocket_GetIpv6ReceiveTrafficClass_Result
|
GetIpv6TrafficClass
获取 SOL_IPV6 -> IPV6_TCLASS。
请求
<EMPTY>
响应
| 名称 | 类型 |
|---|---|
payload |
BaseNetworkSocket_GetIpv6TrafficClass_Result
|
GetIpv6UnicastHops
获取 SOL_IPV6 -> IPV6_UNICAST_HOPS。
请求
<EMPTY>
响应
| 名称 | 类型 |
|---|---|
payload |
BaseNetworkSocket_GetIpv6UnicastHops_Result
|
GetKeepAlive
获取 SOL_SOCKET -> SO_KEEPALIVE。
请求
<EMPTY>
响应
| 名称 | 类型 |
|---|---|
payload |
BaseSocket_GetKeepAlive_Result
|
GetLinger
获取 SOL_SOCKET -> SO_LINGER。
请求
<EMPTY>
响应
| 名称 | 类型 |
|---|---|
payload |
BaseSocket_GetLinger_Result
|
GetMark
例如,SOL_SOCKET -> SO_MARK。主要区别在于,与标准 SO_MARK 不同,此 API 具有多个标记网域,并且每个标记都可以在每个网域中独立检索。
请求
| 名称 | 类型 |
|---|---|
domain |
fuchsia.net/MarkDomain
|
响应
| 名称 | 类型 |
|---|---|
payload |
BaseSocket_GetMark_Result
|
GetNoCheck
获取 SOL_SOCKET -> SO_NO_CHECK。
请求
<EMPTY>
响应
| 名称 | 类型 |
|---|---|
payload |
BaseSocket_GetNoCheck_Result
|
GetOriginalDestination
获取 SOL_IP -> SO_ORIGINAL_DST。
请求
<EMPTY>
响应
| 名称 | 类型 |
|---|---|
payload |
BaseNetworkSocket_GetOriginalDestination_Result
|
GetOutOfBandInline
获取 SOL_SOCKET -> SO_OOBINLINE。
请求
<EMPTY>
响应
| 名称 | 类型 |
|---|---|
payload |
BaseSocket_GetOutOfBandInline_Result
|
GetPeerName
检索远程套接字地址。
请求
<EMPTY>
响应
| 名称 | 类型 |
|---|---|
payload |
BaseNetworkSocket_GetPeerName_Result
|
GetReceiveBuffer
获取 SOL_SOCKET -> SO_RCVBUF。
请求
<EMPTY>
响应
| 名称 | 类型 |
|---|---|
payload |
BaseSocket_GetReceiveBuffer_Result
|
GetReuseAddress
获取 SOL_SOCKET -> SO_REUSEADDR。
请求
<EMPTY>
响应
| 名称 | 类型 |
|---|---|
payload |
BaseSocket_GetReuseAddress_Result
|
GetReusePort
获取 SOL_SOCKET -> SO_REUSEPORT。
请求
<EMPTY>
响应
| 名称 | 类型 |
|---|---|
payload |
BaseSocket_GetReusePort_Result
|
GetSendBuffer
获取 SOL_SOCKET -> SO_SNDBUF。
请求
<EMPTY>
响应
| 名称 | 类型 |
|---|---|
payload |
BaseSocket_GetSendBuffer_Result
|
GetSockName
检索本地套接字地址。
请求
<EMPTY>
响应
| 名称 | 类型 |
|---|---|
payload |
BaseNetworkSocket_GetSockName_Result
|
GetTimestamp
获取 SOL_SOCKET -> SO_TIMESTAMP 或 SO_TIMESTAMPNS。
请求
<EMPTY>
响应
| 名称 | 类型 |
|---|---|
payload |
BaseSocket_GetTimestamp_Result
|
查询
请求
<EMPTY>
响应
| 名称 | 类型 |
|---|---|
protocol |
vector<uint8>
|
SetBindToDevice
设置 SOL_SOCKET -> SO_BINDTODEVICE。
请求
| 名称 | 类型 |
|---|---|
value |
fuchsia.net.interfaces/Name
|
响应
| 名称 | 类型 |
|---|---|
payload |
BaseSocket_SetBindToDevice_Result
|
SetBindToInterfaceIndex
设置 SOL_SOCKET -> SO_BINDTOIFINDEX。
如果 value 为 0,则会清除绑定的接口。
请求
| 名称 | 类型 |
|---|---|
value |
fuchsia.net/InterfaceId
|
响应
| 名称 | 类型 |
|---|---|
payload |
BaseSocket_SetBindToInterfaceIndex_Result
|
SetBroadcast
设置 SOL_SOCKET -> SO_BROADCAST。
请求
| 名称 | 类型 |
|---|---|
value |
bool
|
响应
| 名称 | 类型 |
|---|---|
payload |
BaseSocket_SetBroadcast_Result
|
SetIpMulticastInterface
设置 SOL_IP -> IP_MULTICAST_IF。
请求
| 名称 | 类型 |
|---|---|
iface |
fuchsia.net/InterfaceId
|
address |
fuchsia.net/Ipv4Address
|
响应
| 名称 | 类型 |
|---|---|
payload |
BaseNetworkSocket_SetIpMulticastInterface_Result
|
SetIpMulticastLoopback
设置 SOL_IP -> IP_MULTICAST_LOOP。
请求
| 名称 | 类型 |
|---|---|
value |
bool
|
响应
| 名称 | 类型 |
|---|---|
payload |
BaseNetworkSocket_SetIpMulticastLoopback_Result
|
SetIpMulticastTtl
设置 SOL_IP -> IP_MULTICAST_TTL。
请求
| 名称 | 类型 |
|---|---|
value |
OptionalUint8
|
响应
| 名称 | 类型 |
|---|---|
payload |
BaseNetworkSocket_SetIpMulticastTtl_Result
|
SetIpPacketInfo
设置 SOL_IP -> IP_PKTINFO。
请求
| 名称 | 类型 |
|---|---|
value |
bool
|
响应
| 名称 | 类型 |
|---|---|
payload |
BaseNetworkSocket_SetIpPacketInfo_Result
|
SetIpReceiveOriginalDestinationAddress
设置 SOL_IP -> IP_RECVORIGDSTADDR
请求
| 名称 | 类型 |
|---|---|
value |
bool
|
响应
| 名称 | 类型 |
|---|---|
payload |
BaseNetworkSocket_SetIpReceiveOriginalDestinationAddress_Result
|
SetIpReceiveTtl
设置 SOL_IP -> IP_RECVTTL。
请求
| 名称 | 类型 |
|---|---|
value |
bool
|
响应
| 名称 | 类型 |
|---|---|
payload |
BaseNetworkSocket_SetIpReceiveTtl_Result
|
SetIpReceiveTypeOfService
设置 SOL_IP -> IP_RECVTOS。
请求
| 名称 | 类型 |
|---|---|
value |
bool
|
响应
| 名称 | 类型 |
|---|---|
payload |
BaseNetworkSocket_SetIpReceiveTypeOfService_Result
|
SetIpTransparent
设置 SOL_IP -> IP_TRANSPARENT
请求
| 名称 | 类型 |
|---|---|
value |
bool
|
响应
| 名称 | 类型 |
|---|---|
payload |
BaseNetworkSocket_SetIpTransparent_Result
|
SetIpTtl
设置 SOL_IP -> IP_TTL。
请求
| 名称 | 类型 |
|---|---|
value |
OptionalUint8
|
响应
| 名称 | 类型 |
|---|---|
payload |
BaseNetworkSocket_SetIpTtl_Result
|
SetIpTypeOfService
设置 SOL_IP -> IP_TOS。
请求
| 名称 | 类型 |
|---|---|
value |
uint8
|
响应
| 名称 | 类型 |
|---|---|
payload |
BaseNetworkSocket_SetIpTypeOfService_Result
|
SetIpv6MulticastHops
设置 SOL_IPV6 -> IPV6_MULTICAST_HOPS。
请求
| 名称 | 类型 |
|---|---|
value |
OptionalUint8
|
响应
| 名称 | 类型 |
|---|---|
payload |
BaseNetworkSocket_SetIpv6MulticastHops_Result
|
SetIpv6MulticastInterface
设置 SOL_IPV6 -> IPV6_MULTICAST_IF。
请求
| 名称 | 类型 |
|---|---|
value |
fuchsia.net/InterfaceId
|
响应
| 名称 | 类型 |
|---|---|
payload |
BaseNetworkSocket_SetIpv6MulticastInterface_Result
|
SetIpv6MulticastLoopback
设置 SOL_IPV6 -> IPV6_MULTICAST_LOOP。
请求
| 名称 | 类型 |
|---|---|
value |
bool
|
响应
| 名称 | 类型 |
|---|---|
payload |
BaseNetworkSocket_SetIpv6MulticastLoopback_Result
|
SetIpv6Only
设置 SOL_IPV6 -> IPV6_V6ONLY。
请求
| 名称 | 类型 |
|---|---|
value |
bool
|
响应
| 名称 | 类型 |
|---|---|
payload |
BaseNetworkSocket_SetIpv6Only_Result
|
SetIpv6ReceiveHopLimit
设置 SOL_IPV6 -> IPV6_RECVHOPLIMIT。
请求
| 名称 | 类型 |
|---|---|
value |
bool
|
响应
| 名称 | 类型 |
|---|---|
payload |
BaseNetworkSocket_SetIpv6ReceiveHopLimit_Result
|
SetIpv6ReceivePacketInfo
设置 SOL_IPV6 -> IPV6_RECVPKTINFO。
请求
| 名称 | 类型 |
|---|---|
value |
bool
|
响应
| 名称 | 类型 |
|---|---|
payload |
BaseNetworkSocket_SetIpv6ReceivePacketInfo_Result
|
SetIpv6ReceiveTrafficClass
设置 SOL_IPV6 -> IPV6_RECVTCLASS。
请求
| 名称 | 类型 |
|---|---|
value |
bool
|
响应
| 名称 | 类型 |
|---|---|
payload |
BaseNetworkSocket_SetIpv6ReceiveTrafficClass_Result
|
SetIpv6TrafficClass
设置 SOL_IPV6 -> IPV6_TCLASS
请求
| 名称 | 类型 |
|---|---|
value |
OptionalUint8
|
响应
| 名称 | 类型 |
|---|---|
payload |
BaseNetworkSocket_SetIpv6TrafficClass_Result
|
SetIpv6UnicastHops
设置 SOL_IPV6 -> IPV6_UNICAST_HOPS。
请求
| 名称 | 类型 |
|---|---|
value |
OptionalUint8
|
响应
| 名称 | 类型 |
|---|---|
payload |
BaseNetworkSocket_SetIpv6UnicastHops_Result
|
SetKeepAlive
设置 SOL_SOCKET -> SO_KEEPALIVE。
请求
| 名称 | 类型 |
|---|---|
value |
bool
|
响应
| 名称 | 类型 |
|---|---|
payload |
BaseSocket_SetKeepAlive_Result
|
SetLinger
设置 SOL_SOCKET -> SO_LINGER。
请求
| 名称 | 类型 |
|---|---|
linger |
bool
|
length_secs |
uint32
|
响应
| 名称 | 类型 |
|---|---|
payload |
BaseSocket_SetLinger_Result
|
SetMark
例如,设置 SOL_SOCKET -> SO_MARK。主要区别在于,与标准 SO_MARK 不同,此 API 具有多个标记网域,并且每个标记都可以在每个网域中独立设置。
请求
| 名称 | 类型 |
|---|---|
domain |
fuchsia.net/MarkDomain
|
mark |
OptionalUint32
|
响应
| 名称 | 类型 |
|---|---|
payload |
BaseSocket_SetMark_Result
|
SetNoCheck
设置 SOL_SOCKET -> SO_NO_CHECK。
请求
| 名称 | 类型 |
|---|---|
value |
bool
|
响应
| 名称 | 类型 |
|---|---|
payload |
BaseSocket_SetNoCheck_Result
|
SetOutOfBandInline
设置 SOL_SOCKET -> SO_OOBINLINE。
请求
| 名称 | 类型 |
|---|---|
value |
bool
|
响应
| 名称 | 类型 |
|---|---|
payload |
BaseSocket_SetOutOfBandInline_Result
|
SetReceiveBuffer
设置 SOL_SOCKET -> SO_RCVBUF。
请求
| 名称 | 类型 |
|---|---|
value_bytes |
uint64
|
响应
| 名称 | 类型 |
|---|---|
payload |
BaseSocket_SetReceiveBuffer_Result
|
SetReuseAddress
设置 SOL_SOCKET -> SO_REUSEADDR。
请求
| 名称 | 类型 |
|---|---|
value |
bool
|
响应
| 名称 | 类型 |
|---|---|
payload |
BaseSocket_SetReuseAddress_Result
|
SetReusePort
设置 SOL_SOCKET -> SO_REUSEPORT。
请求
| 名称 | 类型 |
|---|---|
value |
ReusePortOption
|
响应
| 名称 | 类型 |
|---|---|
payload |
BaseSocket_SetReusePort_Result
|
SetReusePortDeprecated
请求
| 名称 | 类型 |
|---|---|
value |
bool
|
响应
| 名称 | 类型 |
|---|---|
payload |
BaseSocket_SetReusePortDeprecated_Result
|
SetSendBuffer
设置 SOL_SOCKET -> SO_SNDBUF。
请求
| 名称 | 类型 |
|---|---|
value_bytes |
uint64
|
响应
| 名称 | 类型 |
|---|---|
payload |
BaseSocket_SetSendBuffer_Result
|
SetTimestamp
依次点击SOL_SOCKET -> SO_TIMESTAMP 或 SO_TIMESTAMPNS。
请求
| 名称 | 类型 |
|---|---|
value |
TimestampOption
|
响应
| 名称 | 类型 |
|---|---|
payload |
BaseSocket_SetTimestamp_Result
|
关闭
关闭套接字的一部分。
请求
| 名称 | 类型 |
|---|---|
mode |
ShutdownMode
|
响应
| 名称 | 类型 |
|---|---|
payload |
BaseNetworkSocket_Shutdown_Result
|
BaseNetworkSocket
在 fuchsia.posix.socket/socket.fidl 中定义
网络套接字。
AddIpMembership
设置 SOL_IP -> IP_ADD_MEMBERSHIP
请求
| 名称 | 类型 |
|---|---|
membership |
IpMulticastMembership
|
响应
| 名称 | 类型 |
|---|---|
payload |
BaseNetworkSocket_AddIpMembership_Result
|
AddIpv6Membership
设置 SOL_IPV6 -> IPV6_ADD_MEMBERSHIP。
请求
| 名称 | 类型 |
|---|---|
membership |
Ipv6MulticastMembership
|
响应
| 名称 | 类型 |
|---|---|
payload |
BaseNetworkSocket_AddIpv6Membership_Result
|
装订
设置用于套接字的本地地址。
请求
| 名称 | 类型 |
|---|---|
addr |
fuchsia.net/SocketAddress
|
响应
| 名称 | 类型 |
|---|---|
payload |
BaseNetworkSocket_Bind_Result
|
克隆
请求
| 名称 | 类型 |
|---|---|
request |
server_end:fuchsia.unknown/Cloneable
|
关闭
终止连接。
调用 Close 后,客户端不得发送任何其他请求。
服务器在发送状态响应后,应关闭连接,无论状态如何,且不发送 epitaph。
关闭通道的客户端在语义上应等同于调用 Close,而无需知道关闭何时完成或其状态。
请求
<EMPTY>
响应
| 名称 | 类型 |
|---|---|
payload |
fuchsia.unknown/Closeable_Close_Result
|
关联
发起与远程地址的连接。
请求
| 名称 | 类型 |
|---|---|
addr |
fuchsia.net/SocketAddress
|
响应
| 名称 | 类型 |
|---|---|
payload |
BaseNetworkSocket_Connect_Result
|
断开连接
清除此套接字中的连接信息。
请求
<EMPTY>
响应
| 名称 | 类型 |
|---|---|
payload |
BaseNetworkSocket_Disconnect_Result
|
DropIpMembership
设置 SOL_IP -> IP_DROP_MEMBERSHIP
请求
| 名称 | 类型 |
|---|---|
membership |
IpMulticastMembership
|
响应
| 名称 | 类型 |
|---|---|
payload |
BaseNetworkSocket_DropIpMembership_Result
|
DropIpv6Membership
设置 SOL_IPV6 -> IPV6_DROP_MEMBERSHIP。
请求
| 名称 | 类型 |
|---|---|
membership |
Ipv6MulticastMembership
|
响应
| 名称 | 类型 |
|---|---|
payload |
BaseNetworkSocket_DropIpv6Membership_Result
|
GetAcceptConn
获取 SOL_SOCKET -> SO_ACCEPTCONN。
请求
<EMPTY>
响应
| 名称 | 类型 |
|---|---|
payload |
BaseSocket_GetAcceptConn_Result
|
GetBindToDevice
获取 SOL_SOCKET -> SO_BINDTODEVICE。
请求
<EMPTY>
响应
| 名称 | 类型 |
|---|---|
payload |
BaseSocket_GetBindToDevice_Result
|
GetBindToInterfaceIndex
获取 SOL_SOCKET -> SO_BINDTOIFINDEX。
请求
<EMPTY>
响应
| 名称 | 类型 |
|---|---|
payload |
BaseSocket_GetBindToInterfaceIndex_Result
|
GetBroadcast
获取 SOL_SOCKET -> SO_BROADCAST。
请求
<EMPTY>
响应
| 名称 | 类型 |
|---|---|
payload |
BaseSocket_GetBroadcast_Result
|
GetCookie
获取 SOL_SOCKET -> SO_COOKIE。
请求
<EMPTY>
响应
| 名称 | 类型 |
|---|---|
payload |
BaseSocket_GetCookie_Result
|
GetError
获取 SOL_SOCKET -> SO_ERROR。
如果套接字上设置了错误,则返回最后一个错误。
请求
<EMPTY>
响应
| 名称 | 类型 |
|---|---|
payload |
BaseSocket_GetError_Result
|
GetIpMulticastInterface
获取 SOL_IP -> IP_MULTICAST_IF。
请求
<EMPTY>
响应
| 名称 | 类型 |
|---|---|
payload |
BaseNetworkSocket_GetIpMulticastInterface_Result
|
GetIpMulticastLoopback
获取 SOL_IP -> IP_MULTICAST_LOOP。
请求
<EMPTY>
响应
| 名称 | 类型 |
|---|---|
payload |
BaseNetworkSocket_GetIpMulticastLoopback_Result
|
GetIpMulticastTtl
获取 SOL_IP -> IP_MULTICAST_TTL。
请求
<EMPTY>
响应
| 名称 | 类型 |
|---|---|
payload |
BaseNetworkSocket_GetIpMulticastTtl_Result
|
GetIpPacketInfo
获取 SOL_IP -> IP_PKTINFO。
请求
<EMPTY>
响应
| 名称 | 类型 |
|---|---|
payload |
BaseNetworkSocket_GetIpPacketInfo_Result
|
GetIpReceiveOriginalDestinationAddress
获取 SOL_IP -> IP_RECVORIGDSTADDR
请求
<EMPTY>
响应
| 名称 | 类型 |
|---|---|
payload |
BaseNetworkSocket_GetIpReceiveOriginalDestinationAddress_Result
|
GetIpReceiveTtl
获取 SOL_IP -> IP_RECVTTL。
请求
<EMPTY>
响应
| 名称 | 类型 |
|---|---|
payload |
BaseNetworkSocket_GetIpReceiveTtl_Result
|
GetIpReceiveTypeOfService
获取 SOL_IP -> IP_RECVTOS。
请求
<EMPTY>
响应
| 名称 | 类型 |
|---|---|
payload |
BaseNetworkSocket_GetIpReceiveTypeOfService_Result
|
GetIpTransparent
获取 SOL_IP -> IP_TRANSPARENT
请求
<EMPTY>
响应
| 名称 | 类型 |
|---|---|
payload |
BaseNetworkSocket_GetIpTransparent_Result
|
GetIpTtl
获取 SOL_IP -> IP_TTL。
请求
<EMPTY>
响应
| 名称 | 类型 |
|---|---|
payload |
BaseNetworkSocket_GetIpTtl_Result
|
GetIpTypeOfService
获取 SOL_IP -> IP_TOS。
请求
<EMPTY>
响应
| 名称 | 类型 |
|---|---|
payload |
BaseNetworkSocket_GetIpTypeOfService_Result
|
GetIpv6MulticastHops
获取 SOL_IPV6 -> IPV6_MULTICAST_HOPS。
请求
<EMPTY>
响应
| 名称 | 类型 |
|---|---|
payload |
BaseNetworkSocket_GetIpv6MulticastHops_Result
|
GetIpv6MulticastInterface
获取 SOL_IPV6 -> IPV6_MULTICAST_IF。
请求
<EMPTY>
响应
| 名称 | 类型 |
|---|---|
payload |
BaseNetworkSocket_GetIpv6MulticastInterface_Result
|
GetIpv6MulticastLoopback
获取 SOL_IPV6 -> IPV6_MULTICAST_LOOP。
请求
<EMPTY>
响应
| 名称 | 类型 |
|---|---|
payload |
BaseNetworkSocket_GetIpv6MulticastLoopback_Result
|
GetIpv6Only
获取 SOL_IPV6 -> IPV6_V6ONLY。
请求
<EMPTY>
响应
| 名称 | 类型 |
|---|---|
payload |
BaseNetworkSocket_GetIpv6Only_Result
|
GetIpv6ReceiveHopLimit
获取 SOL_IPV6 -> IPV6_RECVHOPLIMIT。
请求
<EMPTY>
响应
| 名称 | 类型 |
|---|---|
payload |
BaseNetworkSocket_GetIpv6ReceiveHopLimit_Result
|
GetIpv6ReceivePacketInfo
获取 SOL_IPV6 -> IPV6_RECVPKTINFO。
请求
<EMPTY>
响应
| 名称 | 类型 |
|---|---|
payload |
BaseNetworkSocket_GetIpv6ReceivePacketInfo_Result
|
GetIpv6ReceiveTrafficClass
获取 SOL_IPV6 -> IPV6_RECVTCLASS。
请求
<EMPTY>
响应
| 名称 | 类型 |
|---|---|
payload |
BaseNetworkSocket_GetIpv6ReceiveTrafficClass_Result
|
GetIpv6TrafficClass
获取 SOL_IPV6 -> IPV6_TCLASS。
请求
<EMPTY>
响应
| 名称 | 类型 |
|---|---|
payload |
BaseNetworkSocket_GetIpv6TrafficClass_Result
|
GetIpv6UnicastHops
获取 SOL_IPV6 -> IPV6_UNICAST_HOPS。
请求
<EMPTY>
响应
| 名称 | 类型 |
|---|---|
payload |
BaseNetworkSocket_GetIpv6UnicastHops_Result
|
GetKeepAlive
获取 SOL_SOCKET -> SO_KEEPALIVE。
请求
<EMPTY>
响应
| 名称 | 类型 |
|---|---|
payload |
BaseSocket_GetKeepAlive_Result
|
GetLinger
获取 SOL_SOCKET -> SO_LINGER。
请求
<EMPTY>
响应
| 名称 | 类型 |
|---|---|
payload |
BaseSocket_GetLinger_Result
|
GetMark
例如,SOL_SOCKET -> SO_MARK。主要区别在于,与标准 SO_MARK 不同,此 API 具有多个标记网域,并且每个标记都可以在每个网域中独立检索。
请求
| 名称 | 类型 |
|---|---|
domain |
fuchsia.net/MarkDomain
|
响应
| 名称 | 类型 |
|---|---|
payload |
BaseSocket_GetMark_Result
|
GetNoCheck
获取 SOL_SOCKET -> SO_NO_CHECK。
请求
<EMPTY>
响应
| 名称 | 类型 |
|---|---|
payload |
BaseSocket_GetNoCheck_Result
|
GetOriginalDestination
获取 SOL_IP -> SO_ORIGINAL_DST。
请求
<EMPTY>
响应
| 名称 | 类型 |
|---|---|
payload |
BaseNetworkSocket_GetOriginalDestination_Result
|
GetOutOfBandInline
获取 SOL_SOCKET -> SO_OOBINLINE。
请求
<EMPTY>
响应
| 名称 | 类型 |
|---|---|
payload |
BaseSocket_GetOutOfBandInline_Result
|
GetPeerName
检索远程套接字地址。
请求
<EMPTY>
响应
| 名称 | 类型 |
|---|---|
payload |
BaseNetworkSocket_GetPeerName_Result
|
GetReceiveBuffer
获取 SOL_SOCKET -> SO_RCVBUF。
请求
<EMPTY>
响应
| 名称 | 类型 |
|---|---|
payload |
BaseSocket_GetReceiveBuffer_Result
|
GetReuseAddress
获取 SOL_SOCKET -> SO_REUSEADDR。
请求
<EMPTY>
响应
| 名称 | 类型 |
|---|---|
payload |
BaseSocket_GetReuseAddress_Result
|
GetReusePort
获取 SOL_SOCKET -> SO_REUSEPORT。
请求
<EMPTY>
响应
| 名称 | 类型 |
|---|---|
payload |
BaseSocket_GetReusePort_Result
|
GetSendBuffer
获取 SOL_SOCKET -> SO_SNDBUF。
请求
<EMPTY>
响应
| 名称 | 类型 |
|---|---|
payload |
BaseSocket_GetSendBuffer_Result
|
GetSockName
检索本地套接字地址。
请求
<EMPTY>
响应
| 名称 | 类型 |
|---|---|
payload |
BaseNetworkSocket_GetSockName_Result
|
GetTimestamp
获取 SOL_SOCKET -> SO_TIMESTAMP 或 SO_TIMESTAMPNS。
请求
<EMPTY>
响应
| 名称 | 类型 |
|---|---|
payload |
BaseSocket_GetTimestamp_Result
|
查询
请求
<EMPTY>
响应
| 名称 | 类型 |
|---|---|
protocol |
vector<uint8>
|
SetBindToDevice
设置 SOL_SOCKET -> SO_BINDTODEVICE。
请求
| 名称 | 类型 |
|---|---|
value |
fuchsia.net.interfaces/Name
|
响应
| 名称 | 类型 |
|---|---|
payload |
BaseSocket_SetBindToDevice_Result
|
SetBindToInterfaceIndex
设置 SOL_SOCKET -> SO_BINDTOIFINDEX。
如果 value 为 0,则会清除绑定的接口。
请求
| 名称 | 类型 |
|---|---|
value |
fuchsia.net/InterfaceId
|
响应
| 名称 | 类型 |
|---|---|
payload |
BaseSocket_SetBindToInterfaceIndex_Result
|
SetBroadcast
设置 SOL_SOCKET -> SO_BROADCAST。
请求
| 名称 | 类型 |
|---|---|
value |
bool
|
响应
| 名称 | 类型 |
|---|---|
payload |
BaseSocket_SetBroadcast_Result
|
SetIpMulticastInterface
设置 SOL_IP -> IP_MULTICAST_IF。
请求
| 名称 | 类型 |
|---|---|
iface |
fuchsia.net/InterfaceId
|
address |
fuchsia.net/Ipv4Address
|
响应
| 名称 | 类型 |
|---|---|
payload |
BaseNetworkSocket_SetIpMulticastInterface_Result
|
SetIpMulticastLoopback
设置 SOL_IP -> IP_MULTICAST_LOOP。
请求
| 名称 | 类型 |
|---|---|
value |
bool
|
响应
| 名称 | 类型 |
|---|---|
payload |
BaseNetworkSocket_SetIpMulticastLoopback_Result
|
SetIpMulticastTtl
设置 SOL_IP -> IP_MULTICAST_TTL。
请求
| 名称 | 类型 |
|---|---|
value |
OptionalUint8
|
响应
| 名称 | 类型 |
|---|---|
payload |
BaseNetworkSocket_SetIpMulticastTtl_Result
|
SetIpPacketInfo
设置 SOL_IP -> IP_PKTINFO。
请求
| 名称 | 类型 |
|---|---|
value |
bool
|
响应
| 名称 | 类型 |
|---|---|
payload |
BaseNetworkSocket_SetIpPacketInfo_Result
|
SetIpReceiveOriginalDestinationAddress
设置 SOL_IP -> IP_RECVORIGDSTADDR
请求
| 名称 | 类型 |
|---|---|
value |
bool
|
响应
| 名称 | 类型 |
|---|---|
payload |
BaseNetworkSocket_SetIpReceiveOriginalDestinationAddress_Result
|
SetIpReceiveTtl
设置 SOL_IP -> IP_RECVTTL。
请求
| 名称 | 类型 |
|---|---|
value |
bool
|
响应
| 名称 | 类型 |
|---|---|
payload |
BaseNetworkSocket_SetIpReceiveTtl_Result
|
SetIpReceiveTypeOfService
设置 SOL_IP -> IP_RECVTOS。
请求
| 名称 | 类型 |
|---|---|
value |
bool
|
响应
| 名称 | 类型 |
|---|---|
payload |
BaseNetworkSocket_SetIpReceiveTypeOfService_Result
|
SetIpTransparent
设置 SOL_IP -> IP_TRANSPARENT
请求
| 名称 | 类型 |
|---|---|
value |
bool
|
响应
| 名称 | 类型 |
|---|---|
payload |
BaseNetworkSocket_SetIpTransparent_Result
|
SetIpTtl
设置 SOL_IP -> IP_TTL。
请求
| 名称 | 类型 |
|---|---|
value |
OptionalUint8
|
响应
| 名称 | 类型 |
|---|---|
payload |
BaseNetworkSocket_SetIpTtl_Result
|
SetIpTypeOfService
设置 SOL_IP -> IP_TOS。
请求
| 名称 | 类型 |
|---|---|
value |
uint8
|
响应
| 名称 | 类型 |
|---|---|
payload |
BaseNetworkSocket_SetIpTypeOfService_Result
|
SetIpv6MulticastHops
设置 SOL_IPV6 -> IPV6_MULTICAST_HOPS。
请求
| 名称 | 类型 |
|---|---|
value |
OptionalUint8
|
响应
| 名称 | 类型 |
|---|---|
payload |
BaseNetworkSocket_SetIpv6MulticastHops_Result
|
SetIpv6MulticastInterface
设置 SOL_IPV6 -> IPV6_MULTICAST_IF。
请求
| 名称 | 类型 |
|---|---|
value |
fuchsia.net/InterfaceId
|
响应
| 名称 | 类型 |
|---|---|
payload |
BaseNetworkSocket_SetIpv6MulticastInterface_Result
|
SetIpv6MulticastLoopback
设置 SOL_IPV6 -> IPV6_MULTICAST_LOOP。
请求
| 名称 | 类型 |
|---|---|
value |
bool
|
响应
| 名称 | 类型 |
|---|---|
payload |
BaseNetworkSocket_SetIpv6MulticastLoopback_Result
|
SetIpv6Only
设置 SOL_IPV6 -> IPV6_V6ONLY。
请求
| 名称 | 类型 |
|---|---|
value |
bool
|
响应
| 名称 | 类型 |
|---|---|
payload |
BaseNetworkSocket_SetIpv6Only_Result
|
SetIpv6ReceiveHopLimit
设置 SOL_IPV6 -> IPV6_RECVHOPLIMIT。
请求
| 名称 | 类型 |
|---|---|
value |
bool
|
响应
| 名称 | 类型 |
|---|---|
payload |
BaseNetworkSocket_SetIpv6ReceiveHopLimit_Result
|
SetIpv6ReceivePacketInfo
设置 SOL_IPV6 -> IPV6_RECVPKTINFO。
请求
| 名称 | 类型 |
|---|---|
value |
bool
|
响应
| 名称 | 类型 |
|---|---|
payload |
BaseNetworkSocket_SetIpv6ReceivePacketInfo_Result
|
SetIpv6ReceiveTrafficClass
设置 SOL_IPV6 -> IPV6_RECVTCLASS。
请求
| 名称 | 类型 |
|---|---|
value |
bool
|
响应
| 名称 | 类型 |
|---|---|
payload |
BaseNetworkSocket_SetIpv6ReceiveTrafficClass_Result
|
SetIpv6TrafficClass
设置 SOL_IPV6 -> IPV6_TCLASS
请求
| 名称 | 类型 |
|---|---|
value |
OptionalUint8
|
响应
| 名称 | 类型 |
|---|---|
payload |
BaseNetworkSocket_SetIpv6TrafficClass_Result
|
SetIpv6UnicastHops
设置 SOL_IPV6 -> IPV6_UNICAST_HOPS。
请求
| 名称 | 类型 |
|---|---|
value |
OptionalUint8
|
响应
| 名称 | 类型 |
|---|---|
payload |
BaseNetworkSocket_SetIpv6UnicastHops_Result
|
SetKeepAlive
设置 SOL_SOCKET -> SO_KEEPALIVE。
请求
| 名称 | 类型 |
|---|---|
value |
bool
|
响应
| 名称 | 类型 |
|---|---|
payload |
BaseSocket_SetKeepAlive_Result
|
SetLinger
设置 SOL_SOCKET -> SO_LINGER。
请求
| 名称 | 类型 |
|---|---|
linger |
bool
|
length_secs |
uint32
|
响应
| 名称 | 类型 |
|---|---|
payload |
BaseSocket_SetLinger_Result
|
SetMark
例如,设置 SOL_SOCKET -> SO_MARK。主要区别在于,与标准 SO_MARK 不同,此 API 具有多个标记网域,并且每个标记都可以在每个网域中独立设置。
请求
| 名称 | 类型 |
|---|---|
domain |
fuchsia.net/MarkDomain
|
mark |
OptionalUint32
|
响应
| 名称 | 类型 |
|---|---|
payload |
BaseSocket_SetMark_Result
|
SetNoCheck
设置 SOL_SOCKET -> SO_NO_CHECK。
请求
| 名称 | 类型 |
|---|---|
value |
bool
|
响应
| 名称 | 类型 |
|---|---|
payload |
BaseSocket_SetNoCheck_Result
|
SetOutOfBandInline
设置 SOL_SOCKET -> SO_OOBINLINE。
请求
| 名称 | 类型 |
|---|---|
value |
bool
|
响应
| 名称 | 类型 |
|---|---|
payload |
BaseSocket_SetOutOfBandInline_Result
|
SetReceiveBuffer
设置 SOL_SOCKET -> SO_RCVBUF。
请求
| 名称 | 类型 |
|---|---|
value_bytes |
uint64
|
响应
| 名称 | 类型 |
|---|---|
payload |
BaseSocket_SetReceiveBuffer_Result
|
SetReuseAddress
设置 SOL_SOCKET -> SO_REUSEADDR。
请求
| 名称 | 类型 |
|---|---|
value |
bool
|
响应
| 名称 | 类型 |
|---|---|
payload |
BaseSocket_SetReuseAddress_Result
|
SetReusePort
设置 SOL_SOCKET -> SO_REUSEPORT。
请求
| 名称 | 类型 |
|---|---|
value |
ReusePortOption
|
响应
| 名称 | 类型 |
|---|---|
payload |
BaseSocket_SetReusePort_Result
|
SetReusePortDeprecated
请求
| 名称 | 类型 |
|---|---|
value |
bool
|
响应
| 名称 | 类型 |
|---|---|
payload |
BaseSocket_SetReusePortDeprecated_Result
|
SetSendBuffer
设置 SOL_SOCKET -> SO_SNDBUF。
请求
| 名称 | 类型 |
|---|---|
value_bytes |
uint64
|
响应
| 名称 | 类型 |
|---|---|
payload |
BaseSocket_SetSendBuffer_Result
|
SetTimestamp
依次点击SOL_SOCKET -> SO_TIMESTAMP 或 SO_TIMESTAMPNS。
请求
| 名称 | 类型 |
|---|---|
value |
TimestampOption
|
响应
| 名称 | 类型 |
|---|---|
payload |
BaseSocket_SetTimestamp_Result
|
关闭
关闭套接字的一部分。
请求
| 名称 | 类型 |
|---|---|
mode |
ShutdownMode
|
响应
| 名称 | 类型 |
|---|---|
payload |
BaseNetworkSocket_Shutdown_Result
|
BaseSocket
在 fuchsia.posix.socket/socket.fidl 中定义
一个插座。
克隆
请求
| 名称 | 类型 |
|---|---|
request |
server_end:fuchsia.unknown/Cloneable
|
关闭
终止连接。
调用 Close 后,客户端不得发送任何其他请求。
服务器在发送状态响应后,应关闭连接,无论状态如何,且不发送 epitaph。
关闭通道的客户端在语义上应等同于调用 Close,而无需知道关闭何时完成或其状态。
请求
<EMPTY>
响应
| 名称 | 类型 |
|---|---|
payload |
fuchsia.unknown/Closeable_Close_Result
|
GetAcceptConn
获取 SOL_SOCKET -> SO_ACCEPTCONN。
请求
<EMPTY>
响应
| 名称 | 类型 |
|---|---|
payload |
BaseSocket_GetAcceptConn_Result
|
GetBindToDevice
获取 SOL_SOCKET -> SO_BINDTODEVICE。
请求
<EMPTY>
响应
| 名称 | 类型 |
|---|---|
payload |
BaseSocket_GetBindToDevice_Result
|
GetBindToInterfaceIndex
获取 SOL_SOCKET -> SO_BINDTOIFINDEX。
请求
<EMPTY>
响应
| 名称 | 类型 |
|---|---|
payload |
BaseSocket_GetBindToInterfaceIndex_Result
|
GetBroadcast
获取 SOL_SOCKET -> SO_BROADCAST。
请求
<EMPTY>
响应
| 名称 | 类型 |
|---|---|
payload |
BaseSocket_GetBroadcast_Result
|
GetCookie
获取 SOL_SOCKET -> SO_COOKIE。
请求
<EMPTY>
响应
| 名称 | 类型 |
|---|---|
payload |
BaseSocket_GetCookie_Result
|
GetError
获取 SOL_SOCKET -> SO_ERROR。
如果套接字上设置了错误,则返回最后一个错误。
请求
<EMPTY>
响应
| 名称 | 类型 |
|---|---|
payload |
BaseSocket_GetError_Result
|
GetKeepAlive
获取 SOL_SOCKET -> SO_KEEPALIVE。
请求
<EMPTY>
响应
| 名称 | 类型 |
|---|---|
payload |
BaseSocket_GetKeepAlive_Result
|
GetLinger
获取 SOL_SOCKET -> SO_LINGER。
请求
<EMPTY>
响应
| 名称 | 类型 |
|---|---|
payload |
BaseSocket_GetLinger_Result
|
GetMark
例如,SOL_SOCKET -> SO_MARK。主要区别在于,与标准 SO_MARK 不同,此 API 具有多个标记网域,并且每个标记都可以在每个网域中独立检索。
请求
| 名称 | 类型 |
|---|---|
domain |
fuchsia.net/MarkDomain
|
响应
| 名称 | 类型 |
|---|---|
payload |
BaseSocket_GetMark_Result
|
GetNoCheck
获取 SOL_SOCKET -> SO_NO_CHECK。
请求
<EMPTY>
响应
| 名称 | 类型 |
|---|---|
payload |
BaseSocket_GetNoCheck_Result
|
GetOutOfBandInline
获取 SOL_SOCKET -> SO_OOBINLINE。
请求
<EMPTY>
响应
| 名称 | 类型 |
|---|---|
payload |
BaseSocket_GetOutOfBandInline_Result
|
GetReceiveBuffer
获取 SOL_SOCKET -> SO_RCVBUF。
请求
<EMPTY>
响应
| 名称 | 类型 |
|---|---|
payload |
BaseSocket_GetReceiveBuffer_Result
|
GetReuseAddress
获取 SOL_SOCKET -> SO_REUSEADDR。
请求
<EMPTY>
响应
| 名称 | 类型 |
|---|---|
payload |
BaseSocket_GetReuseAddress_Result
|
GetReusePort
获取 SOL_SOCKET -> SO_REUSEPORT。
请求
<EMPTY>
响应
| 名称 | 类型 |
|---|---|
payload |
BaseSocket_GetReusePort_Result
|
GetSendBuffer
获取 SOL_SOCKET -> SO_SNDBUF。
请求
<EMPTY>
响应
| 名称 | 类型 |
|---|---|
payload |
BaseSocket_GetSendBuffer_Result
|
GetTimestamp
获取 SOL_SOCKET -> SO_TIMESTAMP 或 SO_TIMESTAMPNS。
请求
<EMPTY>
响应
| 名称 | 类型 |
|---|---|
payload |
BaseSocket_GetTimestamp_Result
|
查询
请求
<EMPTY>
响应
| 名称 | 类型 |
|---|---|
protocol |
vector<uint8>
|
SetBindToDevice
设置 SOL_SOCKET -> SO_BINDTODEVICE。
请求
| 名称 | 类型 |
|---|---|
value |
fuchsia.net.interfaces/Name
|
响应
| 名称 | 类型 |
|---|---|
payload |
BaseSocket_SetBindToDevice_Result
|
SetBindToInterfaceIndex
设置 SOL_SOCKET -> SO_BINDTOIFINDEX。
如果 value 为 0,则会清除绑定的接口。
请求
| 名称 | 类型 |
|---|---|
value |
fuchsia.net/InterfaceId
|
响应
| 名称 | 类型 |
|---|---|
payload |
BaseSocket_SetBindToInterfaceIndex_Result
|
SetBroadcast
设置 SOL_SOCKET -> SO_BROADCAST。
请求
| 名称 | 类型 |
|---|---|
value |
bool
|
响应
| 名称 | 类型 |
|---|---|
payload |
BaseSocket_SetBroadcast_Result
|
SetKeepAlive
设置 SOL_SOCKET -> SO_KEEPALIVE。
请求
| 名称 | 类型 |
|---|---|
value |
bool
|
响应
| 名称 | 类型 |
|---|---|
payload |
BaseSocket_SetKeepAlive_Result
|
SetLinger
设置 SOL_SOCKET -> SO_LINGER。
请求
| 名称 | 类型 |
|---|---|
linger |
bool
|
length_secs |
uint32
|
响应
| 名称 | 类型 |
|---|---|
payload |
BaseSocket_SetLinger_Result
|
SetMark
例如,设置 SOL_SOCKET -> SO_MARK。主要区别在于,与标准 SO_MARK 不同,此 API 具有多个标记网域,并且每个标记都可以在每个网域中独立设置。
请求
| 名称 | 类型 |
|---|---|
domain |
fuchsia.net/MarkDomain
|
mark |
OptionalUint32
|
响应
| 名称 | 类型 |
|---|---|
payload |
BaseSocket_SetMark_Result
|
SetNoCheck
设置 SOL_SOCKET -> SO_NO_CHECK。
请求
| 名称 | 类型 |
|---|---|
value |
bool
|
响应
| 名称 | 类型 |
|---|---|
payload |
BaseSocket_SetNoCheck_Result
|
SetOutOfBandInline
设置 SOL_SOCKET -> SO_OOBINLINE。
请求
| 名称 | 类型 |
|---|---|
value |
bool
|
响应
| 名称 | 类型 |
|---|---|
payload |
BaseSocket_SetOutOfBandInline_Result
|
SetReceiveBuffer
设置 SOL_SOCKET -> SO_RCVBUF。
请求
| 名称 | 类型 |
|---|---|
value_bytes |
uint64
|
响应
| 名称 | 类型 |
|---|---|
payload |
BaseSocket_SetReceiveBuffer_Result
|
SetReuseAddress
设置 SOL_SOCKET -> SO_REUSEADDR。
请求
| 名称 | 类型 |
|---|---|
value |
bool
|
响应
| 名称 | 类型 |
|---|---|
payload |
BaseSocket_SetReuseAddress_Result
|
SetReusePort
设置 SOL_SOCKET -> SO_REUSEPORT。
请求
| 名称 | 类型 |
|---|---|
value |
ReusePortOption
|
响应
| 名称 | 类型 |
|---|---|
payload |
BaseSocket_SetReusePort_Result
|
SetReusePortDeprecated
请求
| 名称 | 类型 |
|---|---|
value |
bool
|
响应
| 名称 | 类型 |
|---|---|
payload |
BaseSocket_SetReusePortDeprecated_Result
|
SetSendBuffer
设置 SOL_SOCKET -> SO_SNDBUF。
请求
| 名称 | 类型 |
|---|---|
value_bytes |
uint64
|
响应
| 名称 | 类型 |
|---|---|
payload |
BaseSocket_SetSendBuffer_Result
|
SetTimestamp
依次点击SOL_SOCKET -> SO_TIMESTAMP 或 SO_TIMESTAMPNS。
请求
| 名称 | 类型 |
|---|---|
value |
TimestampOption
|
响应
| 名称 | 类型 |
|---|---|
payload |
BaseSocket_SetTimestamp_Result
|
DatagramSocket
在 fuchsia.posix.socket/socket.fidl 中定义
数据报套接字。
AddIpMembership
设置 SOL_IP -> IP_ADD_MEMBERSHIP
请求
| 名称 | 类型 |
|---|---|
membership |
IpMulticastMembership
|
响应
| 名称 | 类型 |
|---|---|
payload |
BaseNetworkSocket_AddIpMembership_Result
|
AddIpv6Membership
设置 SOL_IPV6 -> IPV6_ADD_MEMBERSHIP。
请求
| 名称 | 类型 |
|---|---|
membership |
Ipv6MulticastMembership
|
响应
| 名称 | 类型 |
|---|---|
payload |
BaseNetworkSocket_AddIpv6Membership_Result
|
装订
设置用于套接字的本地地址。
请求
| 名称 | 类型 |
|---|---|
addr |
fuchsia.net/SocketAddress
|
响应
| 名称 | 类型 |
|---|---|
payload |
BaseNetworkSocket_Bind_Result
|
克隆
请求
| 名称 | 类型 |
|---|---|
request |
server_end:fuchsia.unknown/Cloneable
|
关闭
终止连接。
调用 Close 后,客户端不得发送任何其他请求。
服务器在发送状态响应后,应关闭连接,无论状态如何,且不发送 epitaph。
关闭通道的客户端在语义上应等同于调用 Close,而无需知道关闭何时完成或其状态。
请求
<EMPTY>
响应
| 名称 | 类型 |
|---|---|
payload |
fuchsia.unknown/Closeable_Close_Result
|
关联
发起与远程地址的连接。
请求
| 名称 | 类型 |
|---|---|
addr |
fuchsia.net/SocketAddress
|
响应
| 名称 | 类型 |
|---|---|
payload |
BaseNetworkSocket_Connect_Result
|
描述
请求
<EMPTY>
响应
| 名称 | 类型 |
|---|---|
payload |
DatagramSocketDescribeResponse
|
断开连接
清除此套接字中的连接信息。
请求
<EMPTY>
响应
| 名称 | 类型 |
|---|---|
payload |
BaseNetworkSocket_Disconnect_Result
|
DropIpMembership
设置 SOL_IP -> IP_DROP_MEMBERSHIP
请求
| 名称 | 类型 |
|---|---|
membership |
IpMulticastMembership
|
响应
| 名称 | 类型 |
|---|---|
payload |
BaseNetworkSocket_DropIpMembership_Result
|
DropIpv6Membership
设置 SOL_IPV6 -> IPV6_DROP_MEMBERSHIP。
请求
| 名称 | 类型 |
|---|---|
membership |
Ipv6MulticastMembership
|
响应
| 名称 | 类型 |
|---|---|
payload |
BaseNetworkSocket_DropIpv6Membership_Result
|
GetAcceptConn
获取 SOL_SOCKET -> SO_ACCEPTCONN。
请求
<EMPTY>
响应
| 名称 | 类型 |
|---|---|
payload |
BaseSocket_GetAcceptConn_Result
|
GetBindToDevice
获取 SOL_SOCKET -> SO_BINDTODEVICE。
请求
<EMPTY>
响应
| 名称 | 类型 |
|---|---|
payload |
BaseSocket_GetBindToDevice_Result
|
GetBindToInterfaceIndex
获取 SOL_SOCKET -> SO_BINDTOIFINDEX。
请求
<EMPTY>
响应
| 名称 | 类型 |
|---|---|
payload |
BaseSocket_GetBindToInterfaceIndex_Result
|
GetBroadcast
获取 SOL_SOCKET -> SO_BROADCAST。
请求
<EMPTY>
响应
| 名称 | 类型 |
|---|---|
payload |
BaseSocket_GetBroadcast_Result
|
GetCookie
获取 SOL_SOCKET -> SO_COOKIE。
请求
<EMPTY>
响应
| 名称 | 类型 |
|---|---|
payload |
BaseSocket_GetCookie_Result
|
GetError
获取 SOL_SOCKET -> SO_ERROR。
如果套接字上设置了错误,则返回最后一个错误。
请求
<EMPTY>
响应
| 名称 | 类型 |
|---|---|
payload |
BaseSocket_GetError_Result
|
GetInfo
从套接字检索创建信息。
- 响应
domain套接字的关联网域。 - 响应
proto套接字的关联协议。
请求
<EMPTY>
响应
| 名称 | 类型 |
|---|---|
payload |
BaseDatagramSocket_GetInfo_Result
|
GetIpMulticastInterface
获取 SOL_IP -> IP_MULTICAST_IF。
请求
<EMPTY>
响应
| 名称 | 类型 |
|---|---|
payload |
BaseNetworkSocket_GetIpMulticastInterface_Result
|
GetIpMulticastLoopback
获取 SOL_IP -> IP_MULTICAST_LOOP。
请求
<EMPTY>
响应
| 名称 | 类型 |
|---|---|
payload |
BaseNetworkSocket_GetIpMulticastLoopback_Result
|
GetIpMulticastTtl
获取 SOL_IP -> IP_MULTICAST_TTL。
请求
<EMPTY>
响应
| 名称 | 类型 |
|---|---|
payload |
BaseNetworkSocket_GetIpMulticastTtl_Result
|
GetIpPacketInfo
获取 SOL_IP -> IP_PKTINFO。
请求
<EMPTY>
响应
| 名称 | 类型 |
|---|---|
payload |
BaseNetworkSocket_GetIpPacketInfo_Result
|
GetIpReceiveOriginalDestinationAddress
获取 SOL_IP -> IP_RECVORIGDSTADDR
请求
<EMPTY>
响应
| 名称 | 类型 |
|---|---|
payload |
BaseNetworkSocket_GetIpReceiveOriginalDestinationAddress_Result
|
GetIpReceiveTtl
获取 SOL_IP -> IP_RECVTTL。
请求
<EMPTY>
响应
| 名称 | 类型 |
|---|---|
payload |
BaseNetworkSocket_GetIpReceiveTtl_Result
|
GetIpReceiveTypeOfService
获取 SOL_IP -> IP_RECVTOS。
请求
<EMPTY>
响应
| 名称 | 类型 |
|---|---|
payload |
BaseNetworkSocket_GetIpReceiveTypeOfService_Result
|
GetIpTransparent
获取 SOL_IP -> IP_TRANSPARENT
请求
<EMPTY>
响应
| 名称 | 类型 |
|---|---|
payload |
BaseNetworkSocket_GetIpTransparent_Result
|
GetIpTtl
获取 SOL_IP -> IP_TTL。
请求
<EMPTY>
响应
| 名称 | 类型 |
|---|---|
payload |
BaseNetworkSocket_GetIpTtl_Result
|
GetIpTypeOfService
获取 SOL_IP -> IP_TOS。
请求
<EMPTY>
响应
| 名称 | 类型 |
|---|---|
payload |
BaseNetworkSocket_GetIpTypeOfService_Result
|
GetIpv6MulticastHops
获取 SOL_IPV6 -> IPV6_MULTICAST_HOPS。
请求
<EMPTY>
响应
| 名称 | 类型 |
|---|---|
payload |
BaseNetworkSocket_GetIpv6MulticastHops_Result
|
GetIpv6MulticastInterface
获取 SOL_IPV6 -> IPV6_MULTICAST_IF。
请求
<EMPTY>
响应
| 名称 | 类型 |
|---|---|
payload |
BaseNetworkSocket_GetIpv6MulticastInterface_Result
|
GetIpv6MulticastLoopback
获取 SOL_IPV6 -> IPV6_MULTICAST_LOOP。
请求
<EMPTY>
响应
| 名称 | 类型 |
|---|---|
payload |
BaseNetworkSocket_GetIpv6MulticastLoopback_Result
|
GetIpv6Only
获取 SOL_IPV6 -> IPV6_V6ONLY。
请求
<EMPTY>
响应
| 名称 | 类型 |
|---|---|
payload |
BaseNetworkSocket_GetIpv6Only_Result
|
GetIpv6ReceiveHopLimit
获取 SOL_IPV6 -> IPV6_RECVHOPLIMIT。
请求
<EMPTY>
响应
| 名称 | 类型 |
|---|---|
payload |
BaseNetworkSocket_GetIpv6ReceiveHopLimit_Result
|
GetIpv6ReceivePacketInfo
获取 SOL_IPV6 -> IPV6_RECVPKTINFO。
请求
<EMPTY>
响应
| 名称 | 类型 |
|---|---|
payload |
BaseNetworkSocket_GetIpv6ReceivePacketInfo_Result
|
GetIpv6ReceiveTrafficClass
获取 SOL_IPV6 -> IPV6_RECVTCLASS。
请求
<EMPTY>
响应
| 名称 | 类型 |
|---|---|
payload |
BaseNetworkSocket_GetIpv6ReceiveTrafficClass_Result
|
GetIpv6TrafficClass
获取 SOL_IPV6 -> IPV6_TCLASS。
请求
<EMPTY>
响应
| 名称 | 类型 |
|---|---|
payload |
BaseNetworkSocket_GetIpv6TrafficClass_Result
|
GetIpv6UnicastHops
获取 SOL_IPV6 -> IPV6_UNICAST_HOPS。
请求
<EMPTY>
响应
| 名称 | 类型 |
|---|---|
payload |
BaseNetworkSocket_GetIpv6UnicastHops_Result
|
GetKeepAlive
获取 SOL_SOCKET -> SO_KEEPALIVE。
请求
<EMPTY>
响应
| 名称 | 类型 |
|---|---|
payload |
BaseSocket_GetKeepAlive_Result
|
GetLinger
获取 SOL_SOCKET -> SO_LINGER。
请求
<EMPTY>
响应
| 名称 | 类型 |
|---|---|
payload |
BaseSocket_GetLinger_Result
|
GetMark
例如,SOL_SOCKET -> SO_MARK。主要区别在于,与标准 SO_MARK 不同,此 API 具有多个标记网域,并且每个标记都可以在每个网域中独立检索。
请求
| 名称 | 类型 |
|---|---|
domain |
fuchsia.net/MarkDomain
|
响应
| 名称 | 类型 |
|---|---|
payload |
BaseSocket_GetMark_Result
|
GetNoCheck
获取 SOL_SOCKET -> SO_NO_CHECK。
请求
<EMPTY>
响应
| 名称 | 类型 |
|---|---|
payload |
BaseSocket_GetNoCheck_Result
|
GetOriginalDestination
获取 SOL_IP -> SO_ORIGINAL_DST。
请求
<EMPTY>
响应
| 名称 | 类型 |
|---|---|
payload |
BaseNetworkSocket_GetOriginalDestination_Result
|
GetOutOfBandInline
获取 SOL_SOCKET -> SO_OOBINLINE。
请求
<EMPTY>
响应
| 名称 | 类型 |
|---|---|
payload |
BaseSocket_GetOutOfBandInline_Result
|
GetPeerName
检索远程套接字地址。
请求
<EMPTY>
响应
| 名称 | 类型 |
|---|---|
payload |
BaseNetworkSocket_GetPeerName_Result
|
GetReceiveBuffer
获取 SOL_SOCKET -> SO_RCVBUF。
请求
<EMPTY>
响应
| 名称 | 类型 |
|---|---|
payload |
BaseSocket_GetReceiveBuffer_Result
|
GetReuseAddress
获取 SOL_SOCKET -> SO_REUSEADDR。
请求
<EMPTY>
响应
| 名称 | 类型 |
|---|---|
payload |
BaseSocket_GetReuseAddress_Result
|
GetReusePort
获取 SOL_SOCKET -> SO_REUSEPORT。
请求
<EMPTY>
响应
| 名称 | 类型 |
|---|---|
payload |
BaseSocket_GetReusePort_Result
|
GetSendBuffer
获取 SOL_SOCKET -> SO_SNDBUF。
请求
<EMPTY>
响应
| 名称 | 类型 |
|---|---|
payload |
BaseSocket_GetSendBuffer_Result
|
GetSockName
检索本地套接字地址。
请求
<EMPTY>
响应
| 名称 | 类型 |
|---|---|
payload |
BaseNetworkSocket_GetSockName_Result
|
GetTimestamp
获取 SOL_SOCKET -> SO_TIMESTAMP 或 SO_TIMESTAMPNS。
请求
<EMPTY>
响应
| 名称 | 类型 |
|---|---|
payload |
BaseSocket_GetTimestamp_Result
|
查询
请求
<EMPTY>
响应
| 名称 | 类型 |
|---|---|
protocol |
vector<uint8>
|
RecvMsgPostflight
返回一组请求的控制消息。
- 响应当前请求的一组控制消息。
请求
<EMPTY>
响应
| 名称 | 类型 |
|---|---|
payload |
DatagramSocket_RecvMsgPostflight_Result
|
SendMsgPreflight
验证数据是否可以发送。
- request
args:要发送的数据的请求处置。
- 响应发送的数据必须满足的限制。
- error:表示验证失败原因的错误代码。
请求
| 名称 | 类型 |
|---|---|
payload |
DatagramSocketSendMsgPreflightRequest
|
响应
| 名称 | 类型 |
|---|---|
payload |
DatagramSocket_SendMsgPreflight_Result
|
SetBindToDevice
设置 SOL_SOCKET -> SO_BINDTODEVICE。
请求
| 名称 | 类型 |
|---|---|
value |
fuchsia.net.interfaces/Name
|
响应
| 名称 | 类型 |
|---|---|
payload |
BaseSocket_SetBindToDevice_Result
|
SetBindToInterfaceIndex
设置 SOL_SOCKET -> SO_BINDTOIFINDEX。
如果 value 为 0,则会清除绑定的接口。
请求
| 名称 | 类型 |
|---|---|
value |
fuchsia.net/InterfaceId
|
响应
| 名称 | 类型 |
|---|---|
payload |
BaseSocket_SetBindToInterfaceIndex_Result
|
SetBroadcast
设置 SOL_SOCKET -> SO_BROADCAST。
请求
| 名称 | 类型 |
|---|---|
value |
bool
|
响应
| 名称 | 类型 |
|---|---|
payload |
BaseSocket_SetBroadcast_Result
|
SetIpMulticastInterface
设置 SOL_IP -> IP_MULTICAST_IF。
请求
| 名称 | 类型 |
|---|---|
iface |
fuchsia.net/InterfaceId
|
address |
fuchsia.net/Ipv4Address
|
响应
| 名称 | 类型 |
|---|---|
payload |
BaseNetworkSocket_SetIpMulticastInterface_Result
|
SetIpMulticastLoopback
设置 SOL_IP -> IP_MULTICAST_LOOP。
请求
| 名称 | 类型 |
|---|---|
value |
bool
|
响应
| 名称 | 类型 |
|---|---|
payload |
BaseNetworkSocket_SetIpMulticastLoopback_Result
|
SetIpMulticastTtl
设置 SOL_IP -> IP_MULTICAST_TTL。
请求
| 名称 | 类型 |
|---|---|
value |
OptionalUint8
|
响应
| 名称 | 类型 |
|---|---|
payload |
BaseNetworkSocket_SetIpMulticastTtl_Result
|
SetIpPacketInfo
设置 SOL_IP -> IP_PKTINFO。
请求
| 名称 | 类型 |
|---|---|
value |
bool
|
响应
| 名称 | 类型 |
|---|---|
payload |
BaseNetworkSocket_SetIpPacketInfo_Result
|
SetIpReceiveOriginalDestinationAddress
设置 SOL_IP -> IP_RECVORIGDSTADDR
请求
| 名称 | 类型 |
|---|---|
value |
bool
|
响应
| 名称 | 类型 |
|---|---|
payload |
BaseNetworkSocket_SetIpReceiveOriginalDestinationAddress_Result
|
SetIpReceiveTtl
设置 SOL_IP -> IP_RECVTTL。
请求
| 名称 | 类型 |
|---|---|
value |
bool
|
响应
| 名称 | 类型 |
|---|---|
payload |
BaseNetworkSocket_SetIpReceiveTtl_Result
|
SetIpReceiveTypeOfService
设置 SOL_IP -> IP_RECVTOS。
请求
| 名称 | 类型 |
|---|---|
value |
bool
|
响应
| 名称 | 类型 |
|---|---|
payload |
BaseNetworkSocket_SetIpReceiveTypeOfService_Result
|
SetIpTransparent
设置 SOL_IP -> IP_TRANSPARENT
请求
| 名称 | 类型 |
|---|---|
value |
bool
|
响应
| 名称 | 类型 |
|---|---|
payload |
BaseNetworkSocket_SetIpTransparent_Result
|
SetIpTtl
设置 SOL_IP -> IP_TTL。
请求
| 名称 | 类型 |
|---|---|
value |
OptionalUint8
|
响应
| 名称 | 类型 |
|---|---|
payload |
BaseNetworkSocket_SetIpTtl_Result
|
SetIpTypeOfService
设置 SOL_IP -> IP_TOS。
请求
| 名称 | 类型 |
|---|---|
value |
uint8
|
响应
| 名称 | 类型 |
|---|---|
payload |
BaseNetworkSocket_SetIpTypeOfService_Result
|
SetIpv6MulticastHops
设置 SOL_IPV6 -> IPV6_MULTICAST_HOPS。
请求
| 名称 | 类型 |
|---|---|
value |
OptionalUint8
|
响应
| 名称 | 类型 |
|---|---|
payload |
BaseNetworkSocket_SetIpv6MulticastHops_Result
|
SetIpv6MulticastInterface
设置 SOL_IPV6 -> IPV6_MULTICAST_IF。
请求
| 名称 | 类型 |
|---|---|
value |
fuchsia.net/InterfaceId
|
响应
| 名称 | 类型 |
|---|---|
payload |
BaseNetworkSocket_SetIpv6MulticastInterface_Result
|
SetIpv6MulticastLoopback
设置 SOL_IPV6 -> IPV6_MULTICAST_LOOP。
请求
| 名称 | 类型 |
|---|---|
value |
bool
|
响应
| 名称 | 类型 |
|---|---|
payload |
BaseNetworkSocket_SetIpv6MulticastLoopback_Result
|
SetIpv6Only
设置 SOL_IPV6 -> IPV6_V6ONLY。
请求
| 名称 | 类型 |
|---|---|
value |
bool
|
响应
| 名称 | 类型 |
|---|---|
payload |
BaseNetworkSocket_SetIpv6Only_Result
|
SetIpv6ReceiveHopLimit
设置 SOL_IPV6 -> IPV6_RECVHOPLIMIT。
请求
| 名称 | 类型 |
|---|---|
value |
bool
|
响应
| 名称 | 类型 |
|---|---|
payload |
BaseNetworkSocket_SetIpv6ReceiveHopLimit_Result
|
SetIpv6ReceivePacketInfo
设置 SOL_IPV6 -> IPV6_RECVPKTINFO。
请求
| 名称 | 类型 |
|---|---|
value |
bool
|
响应
| 名称 | 类型 |
|---|---|
payload |
BaseNetworkSocket_SetIpv6ReceivePacketInfo_Result
|
SetIpv6ReceiveTrafficClass
设置 SOL_IPV6 -> IPV6_RECVTCLASS。
请求
| 名称 | 类型 |
|---|---|
value |
bool
|
响应
| 名称 | 类型 |
|---|---|
payload |
BaseNetworkSocket_SetIpv6ReceiveTrafficClass_Result
|
SetIpv6TrafficClass
设置 SOL_IPV6 -> IPV6_TCLASS
请求
| 名称 | 类型 |
|---|---|
value |
OptionalUint8
|
响应
| 名称 | 类型 |
|---|---|
payload |
BaseNetworkSocket_SetIpv6TrafficClass_Result
|
SetIpv6UnicastHops
设置 SOL_IPV6 -> IPV6_UNICAST_HOPS。
请求
| 名称 | 类型 |
|---|---|
value |
OptionalUint8
|
响应
| 名称 | 类型 |
|---|---|
payload |
BaseNetworkSocket_SetIpv6UnicastHops_Result
|
SetKeepAlive
设置 SOL_SOCKET -> SO_KEEPALIVE。
请求
| 名称 | 类型 |
|---|---|
value |
bool
|
响应
| 名称 | 类型 |
|---|---|
payload |
BaseSocket_SetKeepAlive_Result
|
SetLinger
设置 SOL_SOCKET -> SO_LINGER。
请求
| 名称 | 类型 |
|---|---|
linger |
bool
|
length_secs |
uint32
|
响应
| 名称 | 类型 |
|---|---|
payload |
BaseSocket_SetLinger_Result
|
SetMark
例如,设置 SOL_SOCKET -> SO_MARK。主要区别在于,与标准 SO_MARK 不同,此 API 具有多个标记网域,并且每个标记都可以在每个网域中独立设置。
请求
| 名称 | 类型 |
|---|---|
domain |
fuchsia.net/MarkDomain
|
mark |
OptionalUint32
|
响应
| 名称 | 类型 |
|---|---|
payload |
BaseSocket_SetMark_Result
|
SetNoCheck
设置 SOL_SOCKET -> SO_NO_CHECK。
请求
| 名称 | 类型 |
|---|---|
value |
bool
|
响应
| 名称 | 类型 |
|---|---|
payload |
BaseSocket_SetNoCheck_Result
|
SetOutOfBandInline
设置 SOL_SOCKET -> SO_OOBINLINE。
请求
| 名称 | 类型 |
|---|---|
value |
bool
|
响应
| 名称 | 类型 |
|---|---|
payload |
BaseSocket_SetOutOfBandInline_Result
|
SetReceiveBuffer
设置 SOL_SOCKET -> SO_RCVBUF。
请求
| 名称 | 类型 |
|---|---|
value_bytes |
uint64
|
响应
| 名称 | 类型 |
|---|---|
payload |
BaseSocket_SetReceiveBuffer_Result
|
SetReuseAddress
设置 SOL_SOCKET -> SO_REUSEADDR。
请求
| 名称 | 类型 |
|---|---|
value |
bool
|
响应
| 名称 | 类型 |
|---|---|
payload |
BaseSocket_SetReuseAddress_Result
|
SetReusePort
设置 SOL_SOCKET -> SO_REUSEPORT。
请求
| 名称 | 类型 |
|---|---|
value |
ReusePortOption
|
响应
| 名称 | 类型 |
|---|---|
payload |
BaseSocket_SetReusePort_Result
|
SetReusePortDeprecated
请求
| 名称 | 类型 |
|---|---|
value |
bool
|
响应
| 名称 | 类型 |
|---|---|
payload |
BaseSocket_SetReusePortDeprecated_Result
|
SetSendBuffer
设置 SOL_SOCKET -> SO_SNDBUF。
请求
| 名称 | 类型 |
|---|---|
value_bytes |
uint64
|
响应
| 名称 | 类型 |
|---|---|
payload |
BaseSocket_SetSendBuffer_Result
|
SetTimestamp
依次点击SOL_SOCKET -> SO_TIMESTAMP 或 SO_TIMESTAMPNS。
请求
| 名称 | 类型 |
|---|---|
value |
TimestampOption
|
响应
| 名称 | 类型 |
|---|---|
payload |
BaseSocket_SetTimestamp_Result
|
关闭
关闭套接字的一部分。
请求
| 名称 | 类型 |
|---|---|
mode |
ShutdownMode
|
响应
| 名称 | 类型 |
|---|---|
payload |
BaseNetworkSocket_Shutdown_Result
|
提供商
在 fuchsia.posix.socket/socket.fidl 中定义
提供方实现了 POSIX 套接字 API。
警告:此协议尚未准备好供客户端直接使用。 相反,客户端应使用 BSD 套接字 API 与套接字进行交互。 我们计划大幅更改此协议,直接与此协议耦合的客户端将使这些更改更加困难。
DatagramSocket
请求具有指定参数的数据报套接字。
请求
| 名称 | 类型 |
|---|---|
domain |
Domain
|
proto |
DatagramSocketProtocol
|
响应
| 名称 | 类型 |
|---|---|
payload |
Provider_DatagramSocket_Result
|
DatagramSocketDeprecated
请求具有指定参数的数据报套接字。 TODO(https://fxbug.dev/42165881):在没有调用方依赖此方法后,将其移除。
请求
| 名称 | 类型 |
|---|---|
domain |
Domain
|
proto |
DatagramSocketProtocol
|
响应
| 名称 | 类型 |
|---|---|
payload |
Provider_DatagramSocketDeprecated_Result
|
DatagramSocketWithOptions
使用指定的参数和创建选项请求数据报套接字。
请求
| 名称 | 类型 |
|---|---|
domain |
Domain
|
proto |
DatagramSocketProtocol
|
opts |
SocketCreationOptions
|
响应
| 名称 | 类型 |
|---|---|
payload |
Provider_DatagramSocketWithOptions_Result
|
GetInterfaceAddresses
请求 fuchsia.posix.socket.InterfaceAddresses 列表,其中描述了系统上的网络接口。
请求
<EMPTY>
响应
| 名称 | 类型 |
|---|---|
interfaces |
vector<InterfaceAddresses>
|
InterfaceIndexToName
按索引查找接口并返回其名称。如果指定的索引不存在,则返回 ZX_ERR_NOT_FOUND。
请求
| 名称 | 类型 |
|---|---|
index |
uint64
|
响应
| 名称 | 类型 |
|---|---|
payload |
Provider_InterfaceIndexToName_Result
|
InterfaceNameToFlags
按名称查找接口并返回其标志。如果指定的名称不存在,则返回 ZX_ERR_NOT_FOUND。
请求
| 名称 | 类型 |
|---|---|
name |
fuchsia.net.interfaces/Name
|
响应
| 名称 | 类型 |
|---|---|
payload |
Provider_InterfaceNameToFlags_Result
|
InterfaceNameToIndex
按名称查找接口并返回其索引。如果指定的名称不存在,则返回 ZX_ERR_NOT_FOUND。
请求
| 名称 | 类型 |
|---|---|
name |
fuchsia.net.interfaces/Name
|
响应
| 名称 | 类型 |
|---|---|
payload |
Provider_InterfaceNameToIndex_Result
|
StreamSocket
请求具有指定参数的流套接字。
请求
| 名称 | 类型 |
|---|---|
domain |
Domain
|
proto |
StreamSocketProtocol
|
响应
| 名称 | 类型 |
|---|---|
payload |
Provider_StreamSocket_Result
|
StreamSocketWithOptions
使用指定的参数和创建选项请求流套接字。
请求
| 名称 | 类型 |
|---|---|
domain |
Domain
|
proto |
StreamSocketProtocol
|
opts |
SocketCreationOptions
|
响应
| 名称 | 类型 |
|---|---|
payload |
Provider_StreamSocketWithOptions_Result
|
StreamSocket
在 fuchsia.posix.socket/socket.fidl 中定义
流套接字。
此类型的所有方法都是非阻塞的;其确切行为与 Linux 对应方法一致。
警告:此协议尚未准备好供客户端直接使用。 相反,客户端应使用 BSD 套接字 API 与套接字进行交互。 我们计划大幅更改此协议,直接与此协议耦合的客户端将使这些更改更加困难。
接受
接受缓冲的传入连接。
请求
| 名称 | 类型 |
|---|---|
want_addr |
bool
|
响应
| 名称 | 类型 |
|---|---|
payload |
StreamSocket_Accept_Result
|
AddIpMembership
设置 SOL_IP -> IP_ADD_MEMBERSHIP
请求
| 名称 | 类型 |
|---|---|
membership |
IpMulticastMembership
|
响应
| 名称 | 类型 |
|---|---|
payload |
BaseNetworkSocket_AddIpMembership_Result
|
AddIpv6Membership
设置 SOL_IPV6 -> IPV6_ADD_MEMBERSHIP。
请求
| 名称 | 类型 |
|---|---|
membership |
Ipv6MulticastMembership
|
响应
| 名称 | 类型 |
|---|---|
payload |
BaseNetworkSocket_AddIpv6Membership_Result
|
装订
设置用于套接字的本地地址。
请求
| 名称 | 类型 |
|---|---|
addr |
fuchsia.net/SocketAddress
|
响应
| 名称 | 类型 |
|---|---|
payload |
BaseNetworkSocket_Bind_Result
|
克隆
请求
| 名称 | 类型 |
|---|---|
request |
server_end:fuchsia.unknown/Cloneable
|
关闭
终止连接。
调用 Close 后,客户端不得发送任何其他请求。
服务器在发送状态响应后,应关闭连接,无论状态如何,且不发送 epitaph。
关闭通道的客户端在语义上应等同于调用 Close,而无需知道关闭何时完成或其状态。
请求
<EMPTY>
响应
| 名称 | 类型 |
|---|---|
payload |
fuchsia.unknown/Closeable_Close_Result
|
关联
发起与远程地址的连接。
请求
| 名称 | 类型 |
|---|---|
addr |
fuchsia.net/SocketAddress
|
响应
| 名称 | 类型 |
|---|---|
payload |
BaseNetworkSocket_Connect_Result
|
描述
请求
<EMPTY>
响应
| 名称 | 类型 |
|---|---|
payload |
StreamSocketDescribeResponse
|
断开连接
清除此套接字中的连接信息。
请求
<EMPTY>
响应
| 名称 | 类型 |
|---|---|
payload |
BaseNetworkSocket_Disconnect_Result
|
DropIpMembership
设置 SOL_IP -> IP_DROP_MEMBERSHIP
请求
| 名称 | 类型 |
|---|---|
membership |
IpMulticastMembership
|
响应
| 名称 | 类型 |
|---|---|
payload |
BaseNetworkSocket_DropIpMembership_Result
|
DropIpv6Membership
设置 SOL_IPV6 -> IPV6_DROP_MEMBERSHIP。
请求
| 名称 | 类型 |
|---|---|
membership |
Ipv6MulticastMembership
|
响应
| 名称 | 类型 |
|---|---|
payload |
BaseNetworkSocket_DropIpv6Membership_Result
|
GetAcceptConn
获取 SOL_SOCKET -> SO_ACCEPTCONN。
请求
<EMPTY>
响应
| 名称 | 类型 |
|---|---|
payload |
BaseSocket_GetAcceptConn_Result
|
GetBindToDevice
获取 SOL_SOCKET -> SO_BINDTODEVICE。
请求
<EMPTY>
响应
| 名称 | 类型 |
|---|---|
payload |
BaseSocket_GetBindToDevice_Result
|
GetBindToInterfaceIndex
获取 SOL_SOCKET -> SO_BINDTOIFINDEX。
请求
<EMPTY>
响应
| 名称 | 类型 |
|---|---|
payload |
BaseSocket_GetBindToInterfaceIndex_Result
|
GetBroadcast
获取 SOL_SOCKET -> SO_BROADCAST。
请求
<EMPTY>
响应
| 名称 | 类型 |
|---|---|
payload |
BaseSocket_GetBroadcast_Result
|
GetCookie
获取 SOL_SOCKET -> SO_COOKIE。
请求
<EMPTY>
响应
| 名称 | 类型 |
|---|---|
payload |
BaseSocket_GetCookie_Result
|
GetError
获取 SOL_SOCKET -> SO_ERROR。
如果套接字上设置了错误,则返回最后一个错误。
请求
<EMPTY>
响应
| 名称 | 类型 |
|---|---|
payload |
BaseSocket_GetError_Result
|
GetInfo
从套接字检索创建信息。
请求
<EMPTY>
响应
| 名称 | 类型 |
|---|---|
payload |
StreamSocket_GetInfo_Result
|
GetIpMulticastInterface
获取 SOL_IP -> IP_MULTICAST_IF。
请求
<EMPTY>
响应
| 名称 | 类型 |
|---|---|
payload |
BaseNetworkSocket_GetIpMulticastInterface_Result
|
GetIpMulticastLoopback
获取 SOL_IP -> IP_MULTICAST_LOOP。
请求
<EMPTY>
响应
| 名称 | 类型 |
|---|---|
payload |
BaseNetworkSocket_GetIpMulticastLoopback_Result
|
GetIpMulticastTtl
获取 SOL_IP -> IP_MULTICAST_TTL。
请求
<EMPTY>
响应
| 名称 | 类型 |
|---|---|
payload |
BaseNetworkSocket_GetIpMulticastTtl_Result
|
GetIpPacketInfo
获取 SOL_IP -> IP_PKTINFO。
请求
<EMPTY>
响应
| 名称 | 类型 |
|---|---|
payload |
BaseNetworkSocket_GetIpPacketInfo_Result
|
GetIpReceiveOriginalDestinationAddress
获取 SOL_IP -> IP_RECVORIGDSTADDR
请求
<EMPTY>
响应
| 名称 | 类型 |
|---|---|
payload |
BaseNetworkSocket_GetIpReceiveOriginalDestinationAddress_Result
|
GetIpReceiveTtl
获取 SOL_IP -> IP_RECVTTL。
请求
<EMPTY>
响应
| 名称 | 类型 |
|---|---|
payload |
BaseNetworkSocket_GetIpReceiveTtl_Result
|
GetIpReceiveTypeOfService
获取 SOL_IP -> IP_RECVTOS。
请求
<EMPTY>
响应
| 名称 | 类型 |
|---|---|
payload |
BaseNetworkSocket_GetIpReceiveTypeOfService_Result
|
GetIpTransparent
获取 SOL_IP -> IP_TRANSPARENT
请求
<EMPTY>
响应
| 名称 | 类型 |
|---|---|
payload |
BaseNetworkSocket_GetIpTransparent_Result
|
GetIpTtl
获取 SOL_IP -> IP_TTL。
请求
<EMPTY>
响应
| 名称 | 类型 |
|---|---|
payload |
BaseNetworkSocket_GetIpTtl_Result
|
GetIpTypeOfService
获取 SOL_IP -> IP_TOS。
请求
<EMPTY>
响应
| 名称 | 类型 |
|---|---|
payload |
BaseNetworkSocket_GetIpTypeOfService_Result
|
GetIpv6MulticastHops
获取 SOL_IPV6 -> IPV6_MULTICAST_HOPS。
请求
<EMPTY>
响应
| 名称 | 类型 |
|---|---|
payload |
BaseNetworkSocket_GetIpv6MulticastHops_Result
|
GetIpv6MulticastInterface
获取 SOL_IPV6 -> IPV6_MULTICAST_IF。
请求
<EMPTY>
响应
| 名称 | 类型 |
|---|---|
payload |
BaseNetworkSocket_GetIpv6MulticastInterface_Result
|
GetIpv6MulticastLoopback
获取 SOL_IPV6 -> IPV6_MULTICAST_LOOP。
请求
<EMPTY>
响应
| 名称 | 类型 |
|---|---|
payload |
BaseNetworkSocket_GetIpv6MulticastLoopback_Result
|
GetIpv6Only
获取 SOL_IPV6 -> IPV6_V6ONLY。
请求
<EMPTY>
响应
| 名称 | 类型 |
|---|---|
payload |
BaseNetworkSocket_GetIpv6Only_Result
|
GetIpv6ReceiveHopLimit
获取 SOL_IPV6 -> IPV6_RECVHOPLIMIT。
请求
<EMPTY>
响应
| 名称 | 类型 |
|---|---|
payload |
BaseNetworkSocket_GetIpv6ReceiveHopLimit_Result
|
GetIpv6ReceivePacketInfo
获取 SOL_IPV6 -> IPV6_RECVPKTINFO。
请求
<EMPTY>
响应
| 名称 | 类型 |
|---|---|
payload |
BaseNetworkSocket_GetIpv6ReceivePacketInfo_Result
|
GetIpv6ReceiveTrafficClass
获取 SOL_IPV6 -> IPV6_RECVTCLASS。
请求
<EMPTY>
响应
| 名称 | 类型 |
|---|---|
payload |
BaseNetworkSocket_GetIpv6ReceiveTrafficClass_Result
|
GetIpv6TrafficClass
获取 SOL_IPV6 -> IPV6_TCLASS。
请求
<EMPTY>
响应
| 名称 | 类型 |
|---|---|
payload |
BaseNetworkSocket_GetIpv6TrafficClass_Result
|
GetIpv6UnicastHops
获取 SOL_IPV6 -> IPV6_UNICAST_HOPS。
请求
<EMPTY>
响应
| 名称 | 类型 |
|---|---|
payload |
BaseNetworkSocket_GetIpv6UnicastHops_Result
|
GetKeepAlive
获取 SOL_SOCKET -> SO_KEEPALIVE。
请求
<EMPTY>
响应
| 名称 | 类型 |
|---|---|
payload |
BaseSocket_GetKeepAlive_Result
|
GetLinger
获取 SOL_SOCKET -> SO_LINGER。
请求
<EMPTY>
响应
| 名称 | 类型 |
|---|---|
payload |
BaseSocket_GetLinger_Result
|
GetMark
例如,SOL_SOCKET -> SO_MARK。主要区别在于,与标准 SO_MARK 不同,此 API 具有多个标记网域,并且每个标记都可以在每个网域中独立检索。
请求
| 名称 | 类型 |
|---|---|
domain |
fuchsia.net/MarkDomain
|
响应
| 名称 | 类型 |
|---|---|
payload |
BaseSocket_GetMark_Result
|
GetNoCheck
获取 SOL_SOCKET -> SO_NO_CHECK。
请求
<EMPTY>
响应
| 名称 | 类型 |
|---|---|
payload |
BaseSocket_GetNoCheck_Result
|
GetOriginalDestination
获取 SOL_IP -> SO_ORIGINAL_DST。
请求
<EMPTY>
响应
| 名称 | 类型 |
|---|---|
payload |
BaseNetworkSocket_GetOriginalDestination_Result
|
GetOutOfBandInline
获取 SOL_SOCKET -> SO_OOBINLINE。
请求
<EMPTY>
响应
| 名称 | 类型 |
|---|---|
payload |
BaseSocket_GetOutOfBandInline_Result
|
GetPeerName
检索远程套接字地址。
请求
<EMPTY>
响应
| 名称 | 类型 |
|---|---|
payload |
BaseNetworkSocket_GetPeerName_Result
|
GetReceiveBuffer
获取 SOL_SOCKET -> SO_RCVBUF。
请求
<EMPTY>
响应
| 名称 | 类型 |
|---|---|
payload |
BaseSocket_GetReceiveBuffer_Result
|
GetReuseAddress
获取 SOL_SOCKET -> SO_REUSEADDR。
请求
<EMPTY>
响应
| 名称 | 类型 |
|---|---|
payload |
BaseSocket_GetReuseAddress_Result
|
GetReusePort
获取 SOL_SOCKET -> SO_REUSEPORT。
请求
<EMPTY>
响应
| 名称 | 类型 |
|---|---|
payload |
BaseSocket_GetReusePort_Result
|
GetSendBuffer
获取 SOL_SOCKET -> SO_SNDBUF。
请求
<EMPTY>
响应
| 名称 | 类型 |
|---|---|
payload |
BaseSocket_GetSendBuffer_Result
|
GetSockName
检索本地套接字地址。
请求
<EMPTY>
响应
| 名称 | 类型 |
|---|---|
payload |
BaseNetworkSocket_GetSockName_Result
|
GetTcpCongestion
获取 SOL_TCP -> TCP_CONGESTION。
请求
<EMPTY>
响应
| 名称 | 类型 |
|---|---|
payload |
StreamSocket_GetTcpCongestion_Result
|
GetTcpCork
获取 SOL_TCP -> TCP_CORK。
请求
<EMPTY>
响应
| 名称 | 类型 |
|---|---|
payload |
StreamSocket_GetTcpCork_Result
|
GetTcpDeferAccept
获取 SOL_TCP -> TCP_DEFER_ACCEPT。
请求
<EMPTY>
响应
| 名称 | 类型 |
|---|---|
payload |
StreamSocket_GetTcpDeferAccept_Result
|
GetTcpInfo
获取 SOL_TCP -> TCP_INFO。
请求
<EMPTY>
响应
| 名称 | 类型 |
|---|---|
payload |
StreamSocket_GetTcpInfo_Result
|
GetTcpKeepAliveCount
获取 SOL_TCP -> TCP_KEEPCNT。
请求
<EMPTY>
响应
| 名称 | 类型 |
|---|---|
payload |
StreamSocket_GetTcpKeepAliveCount_Result
|
GetTcpKeepAliveIdle
获取 SOL_TCP -> TCP_KEEPIDLE。
请求
<EMPTY>
响应
| 名称 | 类型 |
|---|---|
payload |
StreamSocket_GetTcpKeepAliveIdle_Result
|
GetTcpKeepAliveInterval
获取 SOL_TCP -> TCP_KEEPINTVL。
请求
<EMPTY>
响应
| 名称 | 类型 |
|---|---|
payload |
StreamSocket_GetTcpKeepAliveInterval_Result
|
GetTcpLinger
获取 SOL_TCP -> TCP_LINGER2。
请求
<EMPTY>
响应
| 名称 | 类型 |
|---|---|
payload |
StreamSocket_GetTcpLinger_Result
|
GetTcpMaxSegment
获取 SOL_TCP -> TCP_MAXSEG。
请求
<EMPTY>
响应
| 名称 | 类型 |
|---|---|
payload |
StreamSocket_GetTcpMaxSegment_Result
|
GetTcpNoDelay
获取 SOL_TCP -> TCP_NODELAY。
请求
<EMPTY>
响应
| 名称 | 类型 |
|---|---|
payload |
StreamSocket_GetTcpNoDelay_Result
|
GetTcpQuickAck
获取 SOL_TCP -> TCP_QUICKACK。
请求
<EMPTY>
响应
| 名称 | 类型 |
|---|---|
payload |
StreamSocket_GetTcpQuickAck_Result
|
GetTcpSynCount
获取 SOL_TCP -> TCP_SYNCNT。
请求
<EMPTY>
响应
| 名称 | 类型 |
|---|---|
payload |
StreamSocket_GetTcpSynCount_Result
|
GetTcpUserTimeout
获取 SOL_TCP -> TCP_USER_TIMEOUT。
请求
<EMPTY>
响应
| 名称 | 类型 |
|---|---|
payload |
StreamSocket_GetTcpUserTimeout_Result
|
GetTcpWindowClamp
获取 SOL_TCP -> TCP_WINDOW_CLAMP。
请求
<EMPTY>
响应
| 名称 | 类型 |
|---|---|
payload |
StreamSocket_GetTcpWindowClamp_Result
|
GetTimestamp
获取 SOL_SOCKET -> SO_TIMESTAMP 或 SO_TIMESTAMPNS。
请求
<EMPTY>
响应
| 名称 | 类型 |
|---|---|
payload |
BaseSocket_GetTimestamp_Result
|
聆听
开始监听新的传入连接。最多可缓冲 backlog 个连接。
请求
| 名称 | 类型 |
|---|---|
backlog |
int16
|
响应
| 名称 | 类型 |
|---|---|
payload |
StreamSocket_Listen_Result
|
查询
请求
<EMPTY>
响应
| 名称 | 类型 |
|---|---|
protocol |
vector<uint8>
|
SetBindToDevice
设置 SOL_SOCKET -> SO_BINDTODEVICE。
请求
| 名称 | 类型 |
|---|---|
value |
fuchsia.net.interfaces/Name
|
响应
| 名称 | 类型 |
|---|---|
payload |
BaseSocket_SetBindToDevice_Result
|
SetBindToInterfaceIndex
设置 SOL_SOCKET -> SO_BINDTOIFINDEX。
如果 value 为 0,则会清除绑定的接口。
请求
| 名称 | 类型 |
|---|---|
value |
fuchsia.net/InterfaceId
|
响应
| 名称 | 类型 |
|---|---|
payload |
BaseSocket_SetBindToInterfaceIndex_Result
|
SetBroadcast
设置 SOL_SOCKET -> SO_BROADCAST。
请求
| 名称 | 类型 |
|---|---|
value |
bool
|
响应
| 名称 | 类型 |
|---|---|
payload |
BaseSocket_SetBroadcast_Result
|
SetIpMulticastInterface
设置 SOL_IP -> IP_MULTICAST_IF。
请求
| 名称 | 类型 |
|---|---|
iface |
fuchsia.net/InterfaceId
|
address |
fuchsia.net/Ipv4Address
|
响应
| 名称 | 类型 |
|---|---|
payload |
BaseNetworkSocket_SetIpMulticastInterface_Result
|
SetIpMulticastLoopback
设置 SOL_IP -> IP_MULTICAST_LOOP。
请求
| 名称 | 类型 |
|---|---|
value |
bool
|
响应
| 名称 | 类型 |
|---|---|
payload |
BaseNetworkSocket_SetIpMulticastLoopback_Result
|
SetIpMulticastTtl
设置 SOL_IP -> IP_MULTICAST_TTL。
请求
| 名称 | 类型 |
|---|---|
value |
OptionalUint8
|
响应
| 名称 | 类型 |
|---|---|
payload |
BaseNetworkSocket_SetIpMulticastTtl_Result
|
SetIpPacketInfo
设置 SOL_IP -> IP_PKTINFO。
请求
| 名称 | 类型 |
|---|---|
value |
bool
|
响应
| 名称 | 类型 |
|---|---|
payload |
BaseNetworkSocket_SetIpPacketInfo_Result
|
SetIpReceiveOriginalDestinationAddress
设置 SOL_IP -> IP_RECVORIGDSTADDR
请求
| 名称 | 类型 |
|---|---|
value |
bool
|
响应
| 名称 | 类型 |
|---|---|
payload |
BaseNetworkSocket_SetIpReceiveOriginalDestinationAddress_Result
|
SetIpReceiveTtl
设置 SOL_IP -> IP_RECVTTL。
请求
| 名称 | 类型 |
|---|---|
value |
bool
|
响应
| 名称 | 类型 |
|---|---|
payload |
BaseNetworkSocket_SetIpReceiveTtl_Result
|
SetIpReceiveTypeOfService
设置 SOL_IP -> IP_RECVTOS。
请求
| 名称 | 类型 |
|---|---|
value |
bool
|
响应
| 名称 | 类型 |
|---|---|
payload |
BaseNetworkSocket_SetIpReceiveTypeOfService_Result
|
SetIpTransparent
设置 SOL_IP -> IP_TRANSPARENT
请求
| 名称 | 类型 |
|---|---|
value |
bool
|
响应
| 名称 | 类型 |
|---|---|
payload |
BaseNetworkSocket_SetIpTransparent_Result
|
SetIpTtl
设置 SOL_IP -> IP_TTL。
请求
| 名称 | 类型 |
|---|---|
value |
OptionalUint8
|
响应
| 名称 | 类型 |
|---|---|
payload |
BaseNetworkSocket_SetIpTtl_Result
|
SetIpTypeOfService
设置 SOL_IP -> IP_TOS。
请求
| 名称 | 类型 |
|---|---|
value |
uint8
|
响应
| 名称 | 类型 |
|---|---|
payload |
BaseNetworkSocket_SetIpTypeOfService_Result
|
SetIpv6MulticastHops
设置 SOL_IPV6 -> IPV6_MULTICAST_HOPS。
请求
| 名称 | 类型 |
|---|---|
value |
OptionalUint8
|
响应
| 名称 | 类型 |
|---|---|
payload |
BaseNetworkSocket_SetIpv6MulticastHops_Result
|
SetIpv6MulticastInterface
设置 SOL_IPV6 -> IPV6_MULTICAST_IF。
请求
| 名称 | 类型 |
|---|---|
value |
fuchsia.net/InterfaceId
|
响应
| 名称 | 类型 |
|---|---|
payload |
BaseNetworkSocket_SetIpv6MulticastInterface_Result
|
SetIpv6MulticastLoopback
设置 SOL_IPV6 -> IPV6_MULTICAST_LOOP。
请求
| 名称 | 类型 |
|---|---|
value |
bool
|
响应
| 名称 | 类型 |
|---|---|
payload |
BaseNetworkSocket_SetIpv6MulticastLoopback_Result
|
SetIpv6Only
设置 SOL_IPV6 -> IPV6_V6ONLY。
请求
| 名称 | 类型 |
|---|---|
value |
bool
|
响应
| 名称 | 类型 |
|---|---|
payload |
BaseNetworkSocket_SetIpv6Only_Result
|
SetIpv6ReceiveHopLimit
设置 SOL_IPV6 -> IPV6_RECVHOPLIMIT。
请求
| 名称 | 类型 |
|---|---|
value |
bool
|
响应
| 名称 | 类型 |
|---|---|
payload |
BaseNetworkSocket_SetIpv6ReceiveHopLimit_Result
|
SetIpv6ReceivePacketInfo
设置 SOL_IPV6 -> IPV6_RECVPKTINFO。
请求
| 名称 | 类型 |
|---|---|
value |
bool
|
响应
| 名称 | 类型 |
|---|---|
payload |
BaseNetworkSocket_SetIpv6ReceivePacketInfo_Result
|
SetIpv6ReceiveTrafficClass
设置 SOL_IPV6 -> IPV6_RECVTCLASS。
请求
| 名称 | 类型 |
|---|---|
value |
bool
|
响应
| 名称 | 类型 |
|---|---|
payload |
BaseNetworkSocket_SetIpv6ReceiveTrafficClass_Result
|
SetIpv6TrafficClass
设置 SOL_IPV6 -> IPV6_TCLASS
请求
| 名称 | 类型 |
|---|---|
value |
OptionalUint8
|
响应
| 名称 | 类型 |
|---|---|
payload |
BaseNetworkSocket_SetIpv6TrafficClass_Result
|
SetIpv6UnicastHops
设置 SOL_IPV6 -> IPV6_UNICAST_HOPS。
请求
| 名称 | 类型 |
|---|---|
value |
OptionalUint8
|
响应
| 名称 | 类型 |
|---|---|
payload |
BaseNetworkSocket_SetIpv6UnicastHops_Result
|
SetKeepAlive
设置 SOL_SOCKET -> SO_KEEPALIVE。
请求
| 名称 | 类型 |
|---|---|
value |
bool
|
响应
| 名称 | 类型 |
|---|---|
payload |
BaseSocket_SetKeepAlive_Result
|
SetLinger
设置 SOL_SOCKET -> SO_LINGER。
请求
| 名称 | 类型 |
|---|---|
linger |
bool
|
length_secs |
uint32
|
响应
| 名称 | 类型 |
|---|---|
payload |
BaseSocket_SetLinger_Result
|
SetMark
例如,设置 SOL_SOCKET -> SO_MARK。主要区别在于,与标准 SO_MARK 不同,此 API 具有多个标记网域,并且每个标记都可以在每个网域中独立设置。
请求
| 名称 | 类型 |
|---|---|
domain |
fuchsia.net/MarkDomain
|
mark |
OptionalUint32
|
响应
| 名称 | 类型 |
|---|---|
payload |
BaseSocket_SetMark_Result
|
SetNoCheck
设置 SOL_SOCKET -> SO_NO_CHECK。
请求
| 名称 | 类型 |
|---|---|
value |
bool
|
响应
| 名称 | 类型 |
|---|---|
payload |
BaseSocket_SetNoCheck_Result
|
SetOutOfBandInline
设置 SOL_SOCKET -> SO_OOBINLINE。
请求
| 名称 | 类型 |
|---|---|
value |
bool
|
响应
| 名称 | 类型 |
|---|---|
payload |
BaseSocket_SetOutOfBandInline_Result
|
SetReceiveBuffer
设置 SOL_SOCKET -> SO_RCVBUF。
请求
| 名称 | 类型 |
|---|---|
value_bytes |
uint64
|
响应
| 名称 | 类型 |
|---|---|
payload |
BaseSocket_SetReceiveBuffer_Result
|
SetReuseAddress
设置 SOL_SOCKET -> SO_REUSEADDR。
请求
| 名称 | 类型 |
|---|---|
value |
bool
|
响应
| 名称 | 类型 |
|---|---|
payload |
BaseSocket_SetReuseAddress_Result
|
SetReusePort
设置 SOL_SOCKET -> SO_REUSEPORT。
请求
| 名称 | 类型 |
|---|---|
value |
ReusePortOption
|
响应
| 名称 | 类型 |
|---|---|
payload |
BaseSocket_SetReusePort_Result
|
SetReusePortDeprecated
请求
| 名称 | 类型 |
|---|---|
value |
bool
|
响应
| 名称 | 类型 |
|---|---|
payload |
BaseSocket_SetReusePortDeprecated_Result
|
SetSendBuffer
设置 SOL_SOCKET -> SO_SNDBUF。
请求
| 名称 | 类型 |
|---|---|
value_bytes |
uint64
|
响应
| 名称 | 类型 |
|---|---|
payload |
BaseSocket_SetSendBuffer_Result
|
SetTcpCongestion
设置 SOL_TCP -> TCP_CONGESTION。
请求
| 名称 | 类型 |
|---|---|
value |
TcpCongestionControl
|
响应
| 名称 | 类型 |
|---|---|
payload |
StreamSocket_SetTcpCongestion_Result
|
SetTcpCork
设置 SOL_TCP -> TCP_CORK。
请求
| 名称 | 类型 |
|---|---|
value |
bool
|
响应
| 名称 | 类型 |
|---|---|
payload |
StreamSocket_SetTcpCork_Result
|
SetTcpDeferAccept
设置 SOL_TCP -> TCP_DEFER_ACCEPT。
请求
| 名称 | 类型 |
|---|---|
value_secs |
uint32
|
响应
| 名称 | 类型 |
|---|---|
payload |
StreamSocket_SetTcpDeferAccept_Result
|
SetTcpKeepAliveCount
设置 SOL_TCP -> TCP_KEEPCNT。
请求
| 名称 | 类型 |
|---|---|
value |
uint32
|
响应
| 名称 | 类型 |
|---|---|
payload |
StreamSocket_SetTcpKeepAliveCount_Result
|
SetTcpKeepAliveIdle
设置 SOL_TCP -> TCP_KEEPIDLE。
请求
| 名称 | 类型 |
|---|---|
value_secs |
uint32
|
响应
| 名称 | 类型 |
|---|---|
payload |
StreamSocket_SetTcpKeepAliveIdle_Result
|
SetTcpKeepAliveInterval
设置 SOL_TCP -> TCP_KEEPINTVL。
请求
| 名称 | 类型 |
|---|---|
value_secs |
uint32
|
响应
| 名称 | 类型 |
|---|---|
payload |
StreamSocket_SetTcpKeepAliveInterval_Result
|
SetTcpLinger
设置 SOL_TCP -> TCP_LINGER2。
请求
| 名称 | 类型 |
|---|---|
value_secs |
OptionalUint32
|
响应
| 名称 | 类型 |
|---|---|
payload |
StreamSocket_SetTcpLinger_Result
|
SetTcpMaxSegment
设置 SOL_TCP -> TCP_MAXSEG。
请求
| 名称 | 类型 |
|---|---|
value_bytes |
uint32
|
响应
| 名称 | 类型 |
|---|---|
payload |
StreamSocket_SetTcpMaxSegment_Result
|
SetTcpNoDelay
设置 SOL_TCP -> TCP_NODELAY。
请求
| 名称 | 类型 |
|---|---|
value |
bool
|
响应
| 名称 | 类型 |
|---|---|
payload |
StreamSocket_SetTcpNoDelay_Result
|
SetTcpQuickAck
设置 SOL_TCP -> TCP_QUICKACK。
请求
| 名称 | 类型 |
|---|---|
value |
bool
|
响应
| 名称 | 类型 |
|---|---|
payload |
StreamSocket_SetTcpQuickAck_Result
|
SetTcpSynCount
设置 SOL_TCP -> TCP_SYNCNT。
请求
| 名称 | 类型 |
|---|---|
value |
uint32
|
响应
| 名称 | 类型 |
|---|---|
payload |
StreamSocket_SetTcpSynCount_Result
|
SetTcpUserTimeout
设置 SOL_TCP -> TCP_USER_TIMEOUT。
请求
| 名称 | 类型 |
|---|---|
value_millis |
uint32
|
响应
| 名称 | 类型 |
|---|---|
payload |
StreamSocket_SetTcpUserTimeout_Result
|
SetTcpWindowClamp
设置 SOL_TCP -> TCP_WINDOW_CLAMP。
请求
| 名称 | 类型 |
|---|---|
value |
uint32
|
响应
| 名称 | 类型 |
|---|---|
payload |
StreamSocket_SetTcpWindowClamp_Result
|
SetTimestamp
依次点击SOL_SOCKET -> SO_TIMESTAMP 或 SO_TIMESTAMPNS。
请求
| 名称 | 类型 |
|---|---|
value |
TimestampOption
|
响应
| 名称 | 类型 |
|---|---|
payload |
BaseSocket_SetTimestamp_Result
|
关闭
关闭套接字的一部分。
请求
| 名称 | 类型 |
|---|---|
mode |
ShutdownMode
|
响应
| 名称 | 类型 |
|---|---|
payload |
BaseNetworkSocket_Shutdown_Result
|
SynchronousDatagramSocket
在 fuchsia.posix.socket/socket.fidl 中定义
同步数据报套接字。
此协议定义了用于通过通道发送和接收数据报载荷的同步方法。所有方法都是非阻塞的;其行为与 Linux 对应方法大致相同。
警告:此协议尚未准备好供客户端直接使用。 相反,客户端应使用 BSD 套接字 API 与套接字进行交互。 我们计划大幅更改此协议,直接与此协议耦合的客户端将使这些更改更加困难。
AddIpMembership
设置 SOL_IP -> IP_ADD_MEMBERSHIP
请求
| 名称 | 类型 |
|---|---|
membership |
IpMulticastMembership
|
响应
| 名称 | 类型 |
|---|---|
payload |
BaseNetworkSocket_AddIpMembership_Result
|
AddIpv6Membership
设置 SOL_IPV6 -> IPV6_ADD_MEMBERSHIP。
请求
| 名称 | 类型 |
|---|---|
membership |
Ipv6MulticastMembership
|
响应
| 名称 | 类型 |
|---|---|
payload |
BaseNetworkSocket_AddIpv6Membership_Result
|
装订
设置用于套接字的本地地址。
请求
| 名称 | 类型 |
|---|---|
addr |
fuchsia.net/SocketAddress
|
响应
| 名称 | 类型 |
|---|---|
payload |
BaseNetworkSocket_Bind_Result
|
克隆
请求
| 名称 | 类型 |
|---|---|
request |
server_end:fuchsia.unknown/Cloneable
|
关闭
终止连接。
调用 Close 后,客户端不得发送任何其他请求。
服务器在发送状态响应后,应关闭连接,无论状态如何,且不发送 epitaph。
关闭通道的客户端在语义上应等同于调用 Close,而无需知道关闭何时完成或其状态。
请求
<EMPTY>
响应
| 名称 | 类型 |
|---|---|
payload |
fuchsia.unknown/Closeable_Close_Result
|
关联
发起与远程地址的连接。
请求
| 名称 | 类型 |
|---|---|
addr |
fuchsia.net/SocketAddress
|
响应
| 名称 | 类型 |
|---|---|
payload |
BaseNetworkSocket_Connect_Result
|
描述
请求
<EMPTY>
响应
| 名称 | 类型 |
|---|---|
payload |
SynchronousDatagramSocketDescribeResponse
|
断开连接
清除此套接字中的连接信息。
请求
<EMPTY>
响应
| 名称 | 类型 |
|---|---|
payload |
BaseNetworkSocket_Disconnect_Result
|
DropIpMembership
设置 SOL_IP -> IP_DROP_MEMBERSHIP
请求
| 名称 | 类型 |
|---|---|
membership |
IpMulticastMembership
|
响应
| 名称 | 类型 |
|---|---|
payload |
BaseNetworkSocket_DropIpMembership_Result
|
DropIpv6Membership
设置 SOL_IPV6 -> IPV6_DROP_MEMBERSHIP。
请求
| 名称 | 类型 |
|---|---|
membership |
Ipv6MulticastMembership
|
响应
| 名称 | 类型 |
|---|---|
payload |
BaseNetworkSocket_DropIpv6Membership_Result
|
GetAcceptConn
获取 SOL_SOCKET -> SO_ACCEPTCONN。
请求
<EMPTY>
响应
| 名称 | 类型 |
|---|---|
payload |
BaseSocket_GetAcceptConn_Result
|
GetBindToDevice
获取 SOL_SOCKET -> SO_BINDTODEVICE。
请求
<EMPTY>
响应
| 名称 | 类型 |
|---|---|
payload |
BaseSocket_GetBindToDevice_Result
|
GetBindToInterfaceIndex
获取 SOL_SOCKET -> SO_BINDTOIFINDEX。
请求
<EMPTY>
响应
| 名称 | 类型 |
|---|---|
payload |
BaseSocket_GetBindToInterfaceIndex_Result
|
GetBroadcast
获取 SOL_SOCKET -> SO_BROADCAST。
请求
<EMPTY>
响应
| 名称 | 类型 |
|---|---|
payload |
BaseSocket_GetBroadcast_Result
|
GetCookie
获取 SOL_SOCKET -> SO_COOKIE。
请求
<EMPTY>
响应
| 名称 | 类型 |
|---|---|
payload |
BaseSocket_GetCookie_Result
|
GetError
获取 SOL_SOCKET -> SO_ERROR。
如果套接字上设置了错误,则返回最后一个错误。
请求
<EMPTY>
响应
| 名称 | 类型 |
|---|---|
payload |
BaseSocket_GetError_Result
|
GetInfo
从套接字检索创建信息。
- 响应
domain套接字的关联网域。 - 响应
proto套接字的关联协议。
请求
<EMPTY>
响应
| 名称 | 类型 |
|---|---|
payload |
BaseDatagramSocket_GetInfo_Result
|
GetIpMulticastInterface
获取 SOL_IP -> IP_MULTICAST_IF。
请求
<EMPTY>
响应
| 名称 | 类型 |
|---|---|
payload |
BaseNetworkSocket_GetIpMulticastInterface_Result
|
GetIpMulticastLoopback
获取 SOL_IP -> IP_MULTICAST_LOOP。
请求
<EMPTY>
响应
| 名称 | 类型 |
|---|---|
payload |
BaseNetworkSocket_GetIpMulticastLoopback_Result
|
GetIpMulticastTtl
获取 SOL_IP -> IP_MULTICAST_TTL。
请求
<EMPTY>
响应
| 名称 | 类型 |
|---|---|
payload |
BaseNetworkSocket_GetIpMulticastTtl_Result
|
GetIpPacketInfo
获取 SOL_IP -> IP_PKTINFO。
请求
<EMPTY>
响应
| 名称 | 类型 |
|---|---|
payload |
BaseNetworkSocket_GetIpPacketInfo_Result
|
GetIpReceiveOriginalDestinationAddress
获取 SOL_IP -> IP_RECVORIGDSTADDR
请求
<EMPTY>
响应
| 名称 | 类型 |
|---|---|
payload |
BaseNetworkSocket_GetIpReceiveOriginalDestinationAddress_Result
|
GetIpReceiveTtl
获取 SOL_IP -> IP_RECVTTL。
请求
<EMPTY>
响应
| 名称 | 类型 |
|---|---|
payload |
BaseNetworkSocket_GetIpReceiveTtl_Result
|
GetIpReceiveTypeOfService
获取 SOL_IP -> IP_RECVTOS。
请求
<EMPTY>
响应
| 名称 | 类型 |
|---|---|
payload |
BaseNetworkSocket_GetIpReceiveTypeOfService_Result
|
GetIpTransparent
获取 SOL_IP -> IP_TRANSPARENT
请求
<EMPTY>
响应
| 名称 | 类型 |
|---|---|
payload |
BaseNetworkSocket_GetIpTransparent_Result
|
GetIpTtl
获取 SOL_IP -> IP_TTL。
请求
<EMPTY>
响应
| 名称 | 类型 |
|---|---|
payload |
BaseNetworkSocket_GetIpTtl_Result
|
GetIpTypeOfService
获取 SOL_IP -> IP_TOS。
请求
<EMPTY>
响应
| 名称 | 类型 |
|---|---|
payload |
BaseNetworkSocket_GetIpTypeOfService_Result
|
GetIpv6MulticastHops
获取 SOL_IPV6 -> IPV6_MULTICAST_HOPS。
请求
<EMPTY>
响应
| 名称 | 类型 |
|---|---|
payload |
BaseNetworkSocket_GetIpv6MulticastHops_Result
|
GetIpv6MulticastInterface
获取 SOL_IPV6 -> IPV6_MULTICAST_IF。
请求
<EMPTY>
响应
| 名称 | 类型 |
|---|---|
payload |
BaseNetworkSocket_GetIpv6MulticastInterface_Result
|
GetIpv6MulticastLoopback
获取 SOL_IPV6 -> IPV6_MULTICAST_LOOP。
请求
<EMPTY>
响应
| 名称 | 类型 |
|---|---|
payload |
BaseNetworkSocket_GetIpv6MulticastLoopback_Result
|
GetIpv6Only
获取 SOL_IPV6 -> IPV6_V6ONLY。
请求
<EMPTY>
响应
| 名称 | 类型 |
|---|---|
payload |
BaseNetworkSocket_GetIpv6Only_Result
|
GetIpv6ReceiveHopLimit
获取 SOL_IPV6 -> IPV6_RECVHOPLIMIT。
请求
<EMPTY>
响应
| 名称 | 类型 |
|---|---|
payload |
BaseNetworkSocket_GetIpv6ReceiveHopLimit_Result
|
GetIpv6ReceivePacketInfo
获取 SOL_IPV6 -> IPV6_RECVPKTINFO。
请求
<EMPTY>
响应
| 名称 | 类型 |
|---|---|
payload |
BaseNetworkSocket_GetIpv6ReceivePacketInfo_Result
|
GetIpv6ReceiveTrafficClass
获取 SOL_IPV6 -> IPV6_RECVTCLASS。
请求
<EMPTY>
响应
| 名称 | 类型 |
|---|---|
payload |
BaseNetworkSocket_GetIpv6ReceiveTrafficClass_Result
|
GetIpv6TrafficClass
获取 SOL_IPV6 -> IPV6_TCLASS。
请求
<EMPTY>
响应
| 名称 | 类型 |
|---|---|
payload |
BaseNetworkSocket_GetIpv6TrafficClass_Result
|
GetIpv6UnicastHops
获取 SOL_IPV6 -> IPV6_UNICAST_HOPS。
请求
<EMPTY>
响应
| 名称 | 类型 |
|---|---|
payload |
BaseNetworkSocket_GetIpv6UnicastHops_Result
|
GetKeepAlive
获取 SOL_SOCKET -> SO_KEEPALIVE。
请求
<EMPTY>
响应
| 名称 | 类型 |
|---|---|
payload |
BaseSocket_GetKeepAlive_Result
|
GetLinger
获取 SOL_SOCKET -> SO_LINGER。
请求
<EMPTY>
响应
| 名称 | 类型 |
|---|---|
payload |
BaseSocket_GetLinger_Result
|
GetMark
例如,SOL_SOCKET -> SO_MARK。主要区别在于,与标准 SO_MARK 不同,此 API 具有多个标记网域,并且每个标记都可以在每个网域中独立检索。
请求
| 名称 | 类型 |
|---|---|
domain |
fuchsia.net/MarkDomain
|
响应
| 名称 | 类型 |
|---|---|
payload |
BaseSocket_GetMark_Result
|
GetNoCheck
获取 SOL_SOCKET -> SO_NO_CHECK。
请求
<EMPTY>
响应
| 名称 | 类型 |
|---|---|
payload |
BaseSocket_GetNoCheck_Result
|
GetOriginalDestination
获取 SOL_IP -> SO_ORIGINAL_DST。
请求
<EMPTY>
响应
| 名称 | 类型 |
|---|---|
payload |
BaseNetworkSocket_GetOriginalDestination_Result
|
GetOutOfBandInline
获取 SOL_SOCKET -> SO_OOBINLINE。
请求
<EMPTY>
响应
| 名称 | 类型 |
|---|---|
payload |
BaseSocket_GetOutOfBandInline_Result
|
GetPeerName
检索远程套接字地址。
请求
<EMPTY>
响应
| 名称 | 类型 |
|---|---|
payload |
BaseNetworkSocket_GetPeerName_Result
|
GetReceiveBuffer
获取 SOL_SOCKET -> SO_RCVBUF。
请求
<EMPTY>
响应
| 名称 | 类型 |
|---|---|
payload |
BaseSocket_GetReceiveBuffer_Result
|
GetReuseAddress
获取 SOL_SOCKET -> SO_REUSEADDR。
请求
<EMPTY>
响应
| 名称 | 类型 |
|---|---|
payload |
BaseSocket_GetReuseAddress_Result
|
GetReusePort
获取 SOL_SOCKET -> SO_REUSEPORT。
请求
<EMPTY>
响应
| 名称 | 类型 |
|---|---|
payload |
BaseSocket_GetReusePort_Result
|
GetSendBuffer
获取 SOL_SOCKET -> SO_SNDBUF。
请求
<EMPTY>
响应
| 名称 | 类型 |
|---|---|
payload |
BaseSocket_GetSendBuffer_Result
|
GetSockName
检索本地套接字地址。
请求
<EMPTY>
响应
| 名称 | 类型 |
|---|---|
payload |
BaseNetworkSocket_GetSockName_Result
|
GetTimestamp
获取 SOL_SOCKET -> SO_TIMESTAMP 或 SO_TIMESTAMPNS。
请求
<EMPTY>
响应
| 名称 | 类型 |
|---|---|
payload |
BaseSocket_GetTimestamp_Result
|
查询
请求
<EMPTY>
响应
| 名称 | 类型 |
|---|---|
protocol |
vector<uint8>
|
RecvMsg
从套接字接收消息。
- 请求
want_addr请求消息的来源地址信息。 - 请求
data_len响应数据缓冲区的最大允许长度。 - request
want_control请求返回辅助数据。 - 请求
flags标志,用于接收请求。
- 响应
addr消息的来源地址信息(如果请求)。 - 回复
data消息。 - 响应
control控制消息(如果请求)。 - 响应
truncated指示返回的消息是否被截断。
请求
| 名称 | 类型 |
|---|---|
want_addr |
bool
|
data_len |
uint32
|
want_control |
bool
|
flags |
RecvMsgFlags
|
响应
| 名称 | 类型 |
|---|---|
payload |
SynchronousDatagramSocket_RecvMsg_Result
|
SendMsg
通过套接字发送消息。
- 请求
addr消息发送地址。如果未设置,则会发送到已连接的对等方。 - 请求
data消息。 - 请求
control辅助数据。 - 发送请求的
flags标志。
- response
len发送的字节数。
请求
| 名称 | 类型 |
|---|---|
addr |
fuchsia.net/SocketAddress?
|
data |
vector<uint8>
|
control |
DatagramSocketSendControlData
|
flags |
SendMsgFlags
|
响应
| 名称 | 类型 |
|---|---|
payload |
SynchronousDatagramSocket_SendMsg_Result
|
SetBindToDevice
设置 SOL_SOCKET -> SO_BINDTODEVICE。
请求
| 名称 | 类型 |
|---|---|
value |
fuchsia.net.interfaces/Name
|
响应
| 名称 | 类型 |
|---|---|
payload |
BaseSocket_SetBindToDevice_Result
|
SetBindToInterfaceIndex
设置 SOL_SOCKET -> SO_BINDTOIFINDEX。
如果 value 为 0,则会清除绑定的接口。
请求
| 名称 | 类型 |
|---|---|
value |
fuchsia.net/InterfaceId
|
响应
| 名称 | 类型 |
|---|---|
payload |
BaseSocket_SetBindToInterfaceIndex_Result
|
SetBroadcast
设置 SOL_SOCKET -> SO_BROADCAST。
请求
| 名称 | 类型 |
|---|---|
value |
bool
|
响应
| 名称 | 类型 |
|---|---|
payload |
BaseSocket_SetBroadcast_Result
|
SetIpMulticastInterface
设置 SOL_IP -> IP_MULTICAST_IF。
请求
| 名称 | 类型 |
|---|---|
iface |
fuchsia.net/InterfaceId
|
address |
fuchsia.net/Ipv4Address
|
响应
| 名称 | 类型 |
|---|---|
payload |
BaseNetworkSocket_SetIpMulticastInterface_Result
|
SetIpMulticastLoopback
设置 SOL_IP -> IP_MULTICAST_LOOP。
请求
| 名称 | 类型 |
|---|---|
value |
bool
|
响应
| 名称 | 类型 |
|---|---|
payload |
BaseNetworkSocket_SetIpMulticastLoopback_Result
|
SetIpMulticastTtl
设置 SOL_IP -> IP_MULTICAST_TTL。
请求
| 名称 | 类型 |
|---|---|
value |
OptionalUint8
|
响应
| 名称 | 类型 |
|---|---|
payload |
BaseNetworkSocket_SetIpMulticastTtl_Result
|
SetIpPacketInfo
设置 SOL_IP -> IP_PKTINFO。
请求
| 名称 | 类型 |
|---|---|
value |
bool
|
响应
| 名称 | 类型 |
|---|---|
payload |
BaseNetworkSocket_SetIpPacketInfo_Result
|
SetIpReceiveOriginalDestinationAddress
设置 SOL_IP -> IP_RECVORIGDSTADDR
请求
| 名称 | 类型 |
|---|---|
value |
bool
|
响应
| 名称 | 类型 |
|---|---|
payload |
BaseNetworkSocket_SetIpReceiveOriginalDestinationAddress_Result
|
SetIpReceiveTtl
设置 SOL_IP -> IP_RECVTTL。
请求
| 名称 | 类型 |
|---|---|
value |
bool
|
响应
| 名称 | 类型 |
|---|---|
payload |
BaseNetworkSocket_SetIpReceiveTtl_Result
|
SetIpReceiveTypeOfService
设置 SOL_IP -> IP_RECVTOS。
请求
| 名称 | 类型 |
|---|---|
value |
bool
|
响应
| 名称 | 类型 |
|---|---|
payload |
BaseNetworkSocket_SetIpReceiveTypeOfService_Result
|
SetIpTransparent
设置 SOL_IP -> IP_TRANSPARENT
请求
| 名称 | 类型 |
|---|---|
value |
bool
|
响应
| 名称 | 类型 |
|---|---|
payload |
BaseNetworkSocket_SetIpTransparent_Result
|
SetIpTtl
设置 SOL_IP -> IP_TTL。
请求
| 名称 | 类型 |
|---|---|
value |
OptionalUint8
|
响应
| 名称 | 类型 |
|---|---|
payload |
BaseNetworkSocket_SetIpTtl_Result
|
SetIpTypeOfService
设置 SOL_IP -> IP_TOS。
请求
| 名称 | 类型 |
|---|---|
value |
uint8
|
响应
| 名称 | 类型 |
|---|---|
payload |
BaseNetworkSocket_SetIpTypeOfService_Result
|
SetIpv6MulticastHops
设置 SOL_IPV6 -> IPV6_MULTICAST_HOPS。
请求
| 名称 | 类型 |
|---|---|
value |
OptionalUint8
|
响应
| 名称 | 类型 |
|---|---|
payload |
BaseNetworkSocket_SetIpv6MulticastHops_Result
|
SetIpv6MulticastInterface
设置 SOL_IPV6 -> IPV6_MULTICAST_IF。
请求
| 名称 | 类型 |
|---|---|
value |
fuchsia.net/InterfaceId
|
响应
| 名称 | 类型 |
|---|---|
payload |
BaseNetworkSocket_SetIpv6MulticastInterface_Result
|
SetIpv6MulticastLoopback
设置 SOL_IPV6 -> IPV6_MULTICAST_LOOP。
请求
| 名称 | 类型 |
|---|---|
value |
bool
|
响应
| 名称 | 类型 |
|---|---|
payload |
BaseNetworkSocket_SetIpv6MulticastLoopback_Result
|
SetIpv6Only
设置 SOL_IPV6 -> IPV6_V6ONLY。
请求
| 名称 | 类型 |
|---|---|
value |
bool
|
响应
| 名称 | 类型 |
|---|---|
payload |
BaseNetworkSocket_SetIpv6Only_Result
|
SetIpv6ReceiveHopLimit
设置 SOL_IPV6 -> IPV6_RECVHOPLIMIT。
请求
| 名称 | 类型 |
|---|---|
value |
bool
|
响应
| 名称 | 类型 |
|---|---|
payload |
BaseNetworkSocket_SetIpv6ReceiveHopLimit_Result
|
SetIpv6ReceivePacketInfo
设置 SOL_IPV6 -> IPV6_RECVPKTINFO。
请求
| 名称 | 类型 |
|---|---|
value |
bool
|
响应
| 名称 | 类型 |
|---|---|
payload |
BaseNetworkSocket_SetIpv6ReceivePacketInfo_Result
|
SetIpv6ReceiveTrafficClass
设置 SOL_IPV6 -> IPV6_RECVTCLASS。
请求
| 名称 | 类型 |
|---|---|
value |
bool
|
响应
| 名称 | 类型 |
|---|---|
payload |
BaseNetworkSocket_SetIpv6ReceiveTrafficClass_Result
|
SetIpv6TrafficClass
设置 SOL_IPV6 -> IPV6_TCLASS
请求
| 名称 | 类型 |
|---|---|
value |
OptionalUint8
|
响应
| 名称 | 类型 |
|---|---|
payload |
BaseNetworkSocket_SetIpv6TrafficClass_Result
|
SetIpv6UnicastHops
设置 SOL_IPV6 -> IPV6_UNICAST_HOPS。
请求
| 名称 | 类型 |
|---|---|
value |
OptionalUint8
|
响应
| 名称 | 类型 |
|---|---|
payload |
BaseNetworkSocket_SetIpv6UnicastHops_Result
|
SetKeepAlive
设置 SOL_SOCKET -> SO_KEEPALIVE。
请求
| 名称 | 类型 |
|---|---|
value |
bool
|
响应
| 名称 | 类型 |
|---|---|
payload |
BaseSocket_SetKeepAlive_Result
|
SetLinger
设置 SOL_SOCKET -> SO_LINGER。
请求
| 名称 | 类型 |
|---|---|
linger |
bool
|
length_secs |
uint32
|
响应
| 名称 | 类型 |
|---|---|
payload |
BaseSocket_SetLinger_Result
|
SetMark
例如,设置 SOL_SOCKET -> SO_MARK。主要区别在于,与标准 SO_MARK 不同,此 API 具有多个标记网域,并且每个标记都可以在每个网域中独立设置。
请求
| 名称 | 类型 |
|---|---|
domain |
fuchsia.net/MarkDomain
|
mark |
OptionalUint32
|
响应
| 名称 | 类型 |
|---|---|
payload |
BaseSocket_SetMark_Result
|
SetNoCheck
设置 SOL_SOCKET -> SO_NO_CHECK。
请求
| 名称 | 类型 |
|---|---|
value |
bool
|
响应
| 名称 | 类型 |
|---|---|
payload |
BaseSocket_SetNoCheck_Result
|
SetOutOfBandInline
设置 SOL_SOCKET -> SO_OOBINLINE。
请求
| 名称 | 类型 |
|---|---|
value |
bool
|
响应
| 名称 | 类型 |
|---|---|
payload |
BaseSocket_SetOutOfBandInline_Result
|
SetReceiveBuffer
设置 SOL_SOCKET -> SO_RCVBUF。
请求
| 名称 | 类型 |
|---|---|
value_bytes |
uint64
|
响应
| 名称 | 类型 |
|---|---|
payload |
BaseSocket_SetReceiveBuffer_Result
|
SetReuseAddress
设置 SOL_SOCKET -> SO_REUSEADDR。
请求
| 名称 | 类型 |
|---|---|
value |
bool
|
响应
| 名称 | 类型 |
|---|---|
payload |
BaseSocket_SetReuseAddress_Result
|
SetReusePort
设置 SOL_SOCKET -> SO_REUSEPORT。
请求
| 名称 | 类型 |
|---|---|
value |
ReusePortOption
|
响应
| 名称 | 类型 |
|---|---|
payload |
BaseSocket_SetReusePort_Result
|
SetReusePortDeprecated
请求
| 名称 | 类型 |
|---|---|
value |
bool
|
响应
| 名称 | 类型 |
|---|---|
payload |
BaseSocket_SetReusePortDeprecated_Result
|
SetSendBuffer
设置 SOL_SOCKET -> SO_SNDBUF。
请求
| 名称 | 类型 |
|---|---|
value_bytes |
uint64
|
响应
| 名称 | 类型 |
|---|---|
payload |
BaseSocket_SetSendBuffer_Result
|
SetTimestamp
依次点击SOL_SOCKET -> SO_TIMESTAMP 或 SO_TIMESTAMPNS。
请求
| 名称 | 类型 |
|---|---|
value |
TimestampOption
|
响应
| 名称 | 类型 |
|---|---|
payload |
BaseSocket_SetTimestamp_Result
|
关闭
关闭套接字的一部分。
请求
| 名称 | 类型 |
|---|---|
mode |
ShutdownMode
|
响应
| 名称 | 类型 |
|---|---|
payload |
BaseNetworkSocket_Shutdown_Result
|
STRUCTS
BaseDatagramSocket_GetInfo_Response
在 fuchsia.posix.socket/socket.fidl 中定义
| 字段 | 类型 | 说明 | 默认 |
|---|---|---|---|
domain |
Domain
|
无默认应用 | |
proto |
DatagramSocketProtocol
|
无默认应用 |
BaseNetworkSocket_AddIpMembership_Response
在 fuchsia.posix.socket/socket.fidl 中定义
<EMPTY>
BaseNetworkSocket_AddIpv6Membership_Response
在 fuchsia.posix.socket/socket.fidl 中定义
<EMPTY>
BaseNetworkSocket_Bind_Response
在 fuchsia.posix.socket/socket.fidl 中定义
<EMPTY>
BaseNetworkSocket_Connect_Response
在 fuchsia.posix.socket/socket.fidl 中定义
<EMPTY>
BaseNetworkSocket_Disconnect_Response
在 fuchsia.posix.socket/socket.fidl 中定义
<EMPTY>
BaseNetworkSocket_DropIpMembership_Response
在 fuchsia.posix.socket/socket.fidl 中定义
<EMPTY>
BaseNetworkSocket_DropIpv6Membership_Response
在 fuchsia.posix.socket/socket.fidl 中定义
<EMPTY>
BaseNetworkSocket_GetIpMulticastInterface_Response
在 fuchsia.posix.socket/socket.fidl 中定义
| 字段 | 类型 | 说明 | 默认 |
|---|---|---|---|
value |
fuchsia.net/Ipv4Address
|
无默认应用 |
BaseNetworkSocket_GetIpMulticastLoopback_Response
在 fuchsia.posix.socket/socket.fidl 中定义
| 字段 | 类型 | 说明 | 默认 |
|---|---|---|---|
value |
bool
|
无默认应用 |
BaseNetworkSocket_GetIpMulticastTtl_Response
在 fuchsia.posix.socket/socket.fidl 中定义
| 字段 | 类型 | 说明 | 默认 |
|---|---|---|---|
value |
uint8
|
无默认应用 |
BaseNetworkSocket_GetIpPacketInfo_Response
在 fuchsia.posix.socket/socket.fidl 中定义
| 字段 | 类型 | 说明 | 默认 |
|---|---|---|---|
value |
bool
|
无默认应用 |
BaseNetworkSocket_GetIpReceiveOriginalDestinationAddress_Response
在 fuchsia.posix.socket/socket.fidl 中定义
| 字段 | 类型 | 说明 | 默认 |
|---|---|---|---|
value |
bool
|
无默认应用 |
BaseNetworkSocket_GetIpReceiveTtl_Response
在 fuchsia.posix.socket/socket.fidl 中定义
| 字段 | 类型 | 说明 | 默认 |
|---|---|---|---|
value |
bool
|
无默认应用 |
BaseNetworkSocket_GetIpReceiveTypeOfService_Response
在 fuchsia.posix.socket/socket.fidl 中定义
| 字段 | 类型 | 说明 | 默认 |
|---|---|---|---|
value |
bool
|
无默认应用 |
BaseNetworkSocket_GetIpTransparent_Response
在 fuchsia.posix.socket/socket.fidl 中定义
| 字段 | 类型 | 说明 | 默认 |
|---|---|---|---|
value |
bool
|
无默认应用 |
BaseNetworkSocket_GetIpTtl_Response
在 fuchsia.posix.socket/socket.fidl 中定义
| 字段 | 类型 | 说明 | 默认 |
|---|---|---|---|
value |
uint8
|
无默认应用 |
BaseNetworkSocket_GetIpTypeOfService_Response
在 fuchsia.posix.socket/socket.fidl 中定义
| 字段 | 类型 | 说明 | 默认 |
|---|---|---|---|
value |
uint8
|
无默认应用 |
BaseNetworkSocket_GetIpv6MulticastHops_Response
在 fuchsia.posix.socket/socket.fidl 中定义
| 字段 | 类型 | 说明 | 默认 |
|---|---|---|---|
value |
uint8
|
无默认应用 |
BaseNetworkSocket_GetIpv6MulticastInterface_Response
在 fuchsia.posix.socket/socket.fidl 中定义
| 字段 | 类型 | 说明 | 默认 |
|---|---|---|---|
value |
fuchsia.net/InterfaceId
|
无默认应用 |
BaseNetworkSocket_GetIpv6MulticastLoopback_Response
在 fuchsia.posix.socket/socket.fidl 中定义
| 字段 | 类型 | 说明 | 默认 |
|---|---|---|---|
value |
bool
|
无默认应用 |
BaseNetworkSocket_GetIpv6Only_Response
在 fuchsia.posix.socket/socket.fidl 中定义
| 字段 | 类型 | 说明 | 默认 |
|---|---|---|---|
value |
bool
|
无默认应用 |
BaseNetworkSocket_GetIpv6ReceiveHopLimit_Response
在 fuchsia.posix.socket/socket.fidl 中定义
| 字段 | 类型 | 说明 | 默认 |
|---|---|---|---|
value |
bool
|
无默认应用 |
BaseNetworkSocket_GetIpv6ReceivePacketInfo_Response
在 fuchsia.posix.socket/socket.fidl 中定义
| 字段 | 类型 | 说明 | 默认 |
|---|---|---|---|
value |
bool
|
无默认应用 |
BaseNetworkSocket_GetIpv6ReceiveTrafficClass_Response
在 fuchsia.posix.socket/socket.fidl 中定义
| 字段 | 类型 | 说明 | 默认 |
|---|---|---|---|
value |
bool
|
无默认应用 |
BaseNetworkSocket_GetIpv6TrafficClass_Response
在 fuchsia.posix.socket/socket.fidl 中定义
| 字段 | 类型 | 说明 | 默认 |
|---|---|---|---|
value |
uint8
|
无默认应用 |
BaseNetworkSocket_GetIpv6UnicastHops_Response
在 fuchsia.posix.socket/socket.fidl 中定义
| 字段 | 类型 | 说明 | 默认 |
|---|---|---|---|
value |
uint8
|
无默认应用 |
BaseNetworkSocket_GetOriginalDestination_Response
在 fuchsia.posix.socket/socket.fidl 中定义
| 字段 | 类型 | 说明 | 默认 |
|---|---|---|---|
value |
fuchsia.net/SocketAddress
|
无默认应用 |
BaseNetworkSocket_GetPeerName_Response
在 fuchsia.posix.socket/socket.fidl 中定义
| 字段 | 类型 | 说明 | 默认 |
|---|---|---|---|
addr |
fuchsia.net/SocketAddress
|
无默认应用 |
BaseNetworkSocket_GetSockName_Response
在 fuchsia.posix.socket/socket.fidl 中定义
| 字段 | 类型 | 说明 | 默认 |
|---|---|---|---|
addr |
fuchsia.net/SocketAddress
|
无默认应用 |
BaseNetworkSocket_SetIpMulticastInterface_Response
在 fuchsia.posix.socket/socket.fidl 中定义
<EMPTY>
BaseNetworkSocket_SetIpMulticastLoopback_Response
在 fuchsia.posix.socket/socket.fidl 中定义
<EMPTY>
BaseNetworkSocket_SetIpMulticastTtl_Response
在 fuchsia.posix.socket/socket.fidl 中定义
<EMPTY>
BaseNetworkSocket_SetIpPacketInfo_Response
在 fuchsia.posix.socket/socket.fidl 中定义
<EMPTY>
BaseNetworkSocket_SetIpReceiveOriginalDestinationAddress_Response
在 fuchsia.posix.socket/socket.fidl 中定义
<EMPTY>
BaseNetworkSocket_SetIpReceiveTtl_Response
在 fuchsia.posix.socket/socket.fidl 中定义
<EMPTY>
BaseNetworkSocket_SetIpReceiveTypeOfService_Response
在 fuchsia.posix.socket/socket.fidl 中定义
<EMPTY>
BaseNetworkSocket_SetIpTransparent_Response
在 fuchsia.posix.socket/socket.fidl 中定义
<EMPTY>
BaseNetworkSocket_SetIpTtl_Response
在 fuchsia.posix.socket/socket.fidl 中定义
<EMPTY>
BaseNetworkSocket_SetIpTypeOfService_Response
在 fuchsia.posix.socket/socket.fidl 中定义
<EMPTY>
BaseNetworkSocket_SetIpv6MulticastHops_Response
在 fuchsia.posix.socket/socket.fidl 中定义
<EMPTY>
BaseNetworkSocket_SetIpv6MulticastInterface_Response
在 fuchsia.posix.socket/socket.fidl 中定义
<EMPTY>
BaseNetworkSocket_SetIpv6MulticastLoopback_Response
在 fuchsia.posix.socket/socket.fidl 中定义
<EMPTY>
BaseNetworkSocket_SetIpv6Only_Response
在 fuchsia.posix.socket/socket.fidl 中定义
<EMPTY>
BaseNetworkSocket_SetIpv6ReceiveHopLimit_Response
在 fuchsia.posix.socket/socket.fidl 中定义
<EMPTY>
BaseNetworkSocket_SetIpv6ReceivePacketInfo_Response
在 fuchsia.posix.socket/socket.fidl 中定义
<EMPTY>
BaseNetworkSocket_SetIpv6ReceiveTrafficClass_Response
在 fuchsia.posix.socket/socket.fidl 中定义
<EMPTY>
BaseNetworkSocket_SetIpv6TrafficClass_Response
在 fuchsia.posix.socket/socket.fidl 中定义
<EMPTY>
BaseNetworkSocket_SetIpv6UnicastHops_Response
在 fuchsia.posix.socket/socket.fidl 中定义
<EMPTY>
BaseNetworkSocket_Shutdown_Response
在 fuchsia.posix.socket/socket.fidl 中定义
<EMPTY>
BaseSocket_GetAcceptConn_Response
在 fuchsia.posix.socket/socket.fidl 中定义
| 字段 | 类型 | 说明 | 默认 |
|---|---|---|---|
value |
bool
|
无默认应用 |
BaseSocket_GetBindToDevice_Response
在 fuchsia.posix.socket/socket.fidl 中定义
| 字段 | 类型 | 说明 | 默认 |
|---|---|---|---|
value |
fuchsia.net.interfaces/Name
|
无默认应用 |
BaseSocket_GetBindToInterfaceIndex_Response
在 fuchsia.posix.socket/socket.fidl 中定义
| 字段 | 类型 | 说明 | 默认 |
|---|---|---|---|
value |
fuchsia.net/InterfaceId
|
无默认应用 |
BaseSocket_GetBroadcast_Response
在 fuchsia.posix.socket/socket.fidl 中定义
| 字段 | 类型 | 说明 | 默认 |
|---|---|---|---|
value |
bool
|
无默认应用 |
BaseSocket_GetCookie_Response
在 fuchsia.posix.socket/socket.fidl 中定义
| 字段 | 类型 | 说明 | 默认 |
|---|---|---|---|
value |
uint64
|
无默认应用 |
BaseSocket_GetError_Response
在 fuchsia.posix.socket/socket.fidl 中定义
<EMPTY>
BaseSocket_GetKeepAlive_Response
在 fuchsia.posix.socket/socket.fidl 中定义
| 字段 | 类型 | 说明 | 默认 |
|---|---|---|---|
value |
bool
|
无默认应用 |
BaseSocket_GetLinger_Response
在 fuchsia.posix.socket/socket.fidl 中定义
| 字段 | 类型 | 说明 | 默认 |
|---|---|---|---|
linger |
bool
|
无默认应用 | |
length_secs |
uint32
|
无默认应用 |
BaseSocket_GetMark_Response
在 fuchsia.posix.socket/socket.fidl 中定义
| 字段 | 类型 | 说明 | 默认 |
|---|---|---|---|
mark |
OptionalUint32
|
无默认应用 |
BaseSocket_GetNoCheck_Response
在 fuchsia.posix.socket/socket.fidl 中定义
| 字段 | 类型 | 说明 | 默认 |
|---|---|---|---|
value |
bool
|
无默认应用 |
BaseSocket_GetOutOfBandInline_Response
在 fuchsia.posix.socket/socket.fidl 中定义
| 字段 | 类型 | 说明 | 默认 |
|---|---|---|---|
value |
bool
|
无默认应用 |
BaseSocket_GetReceiveBuffer_Response
在 fuchsia.posix.socket/socket.fidl 中定义
| 字段 | 类型 | 说明 | 默认 |
|---|---|---|---|
value_bytes |
uint64
|
无默认应用 |
BaseSocket_GetReuseAddress_Response
在 fuchsia.posix.socket/socket.fidl 中定义
| 字段 | 类型 | 说明 | 默认 |
|---|---|---|---|
value |
bool
|
无默认应用 |
BaseSocket_GetReusePort_Response
在 fuchsia.posix.socket/socket.fidl 中定义
| 字段 | 类型 | 说明 | 默认 |
|---|---|---|---|
value |
bool
|
无默认应用 |
BaseSocket_GetSendBuffer_Response
在 fuchsia.posix.socket/socket.fidl 中定义
| 字段 | 类型 | 说明 | 默认 |
|---|---|---|---|
value_bytes |
uint64
|
无默认应用 |
BaseSocket_GetTimestamp_Response
在 fuchsia.posix.socket/socket.fidl 中定义
| 字段 | 类型 | 说明 | 默认 |
|---|---|---|---|
value |
TimestampOption
|
无默认应用 |
BaseSocket_SetBindToDevice_Response
在 fuchsia.posix.socket/socket.fidl 中定义
<EMPTY>
BaseSocket_SetBindToInterfaceIndex_Response
在 fuchsia.posix.socket/socket.fidl 中定义
<EMPTY>
BaseSocket_SetBroadcast_Response
在 fuchsia.posix.socket/socket.fidl 中定义
<EMPTY>
BaseSocket_SetKeepAlive_Response
在 fuchsia.posix.socket/socket.fidl 中定义
<EMPTY>
BaseSocket_SetLinger_Response
在 fuchsia.posix.socket/socket.fidl 中定义
<EMPTY>
BaseSocket_SetMark_Response
在 fuchsia.posix.socket/socket.fidl 中定义
<EMPTY>
BaseSocket_SetNoCheck_Response
在 fuchsia.posix.socket/socket.fidl 中定义
<EMPTY>
BaseSocket_SetOutOfBandInline_Response
在 fuchsia.posix.socket/socket.fidl 中定义
<EMPTY>
BaseSocket_SetReceiveBuffer_Response
在 fuchsia.posix.socket/socket.fidl 中定义
<EMPTY>
BaseSocket_SetReuseAddress_Response
在 fuchsia.posix.socket/socket.fidl 中定义
<EMPTY>
BaseSocket_SetReusePortDeprecated_Response
在 fuchsia.posix.socket/socket.fidl 中定义
<EMPTY>
BaseSocket_SetReusePort_Response
在 fuchsia.posix.socket/socket.fidl 中定义
<EMPTY>
BaseSocket_SetSendBuffer_Response
在 fuchsia.posix.socket/socket.fidl 中定义
<EMPTY>
BaseSocket_SetTimestamp_Response
在 fuchsia.posix.socket/socket.fidl 中定义
<EMPTY>
空白
在 fuchsia.posix.socket/socket.fidl 中定义
<EMPTY>
IpMulticastMembership
在 fuchsia.posix.socket/socket.fidl 中定义
IPv4 多播成员资格选项。
| 字段 | 类型 | 说明 | 默认 |
|---|---|---|---|
iface |
fuchsia.net/InterfaceId
|
成员资格的接口索引。 |
无默认应用 |
local_addr |
fuchsia.net/Ipv4Address
|
请求或放弃所有权的本地接口地址。 |
无默认应用 |
mcast_addr |
fuchsia.net/Ipv4Address
|
成员资格所指的多播群组的地址。 |
无默认应用 |
Ipv4PktInfoRecvControlData
在 fuchsia.posix.socket/socket.fidl 中定义
| 字段 | 类型 | 说明 | 默认 |
|---|---|---|---|
iface |
fuchsia.net/InterfaceId
|
接收 IP 数据包的接口的索引。 |
无默认应用 |
local_addr |
fuchsia.net/Ipv4Address
|
接收数据包的接口的本地地址。 |
无默认应用 |
header_destination_addr |
fuchsia.net/Ipv4Address
|
收到的数据包的 IP 标头中指定的目标地址。 |
无默认应用 |
Ipv6MulticastMembership
在 fuchsia.posix.socket/socket.fidl 中定义
IPv6 多播成员资格选项。
| 字段 | 类型 | 说明 | 默认 |
|---|---|---|---|
iface |
fuchsia.net/InterfaceId
|
成员资格的接口索引。 |
无默认应用 |
mcast_addr |
fuchsia.net/Ipv6Address
|
成员资格所指的多播群组的地址。 |
无默认应用 |
Ipv6PktInfoRecvControlData
在 fuchsia.posix.socket/socket.fidl 中定义
| 字段 | 类型 | 说明 | 默认 |
|---|---|---|---|
iface |
fuchsia.net/InterfaceId
|
接收 IP 数据包的接口的索引。 |
无默认应用 |
header_destination_addr |
fuchsia.net/Ipv6Address
|
收到的数据包的 IP 标头中指定的目标地址。 |
无默认应用 |
Ipv6PktInfoSendControlData
在 fuchsia.posix.socket/socket.fidl 中定义
已发送数据的 IPv6 专用处置方式。
目前,这是一个结构体而不是表,因为它旨在匹配 in6_pktinfo,而后者预计不会增长。
| 字段 | 类型 | 说明 | 默认 |
|---|---|---|---|
iface |
uint64
|
应从中发送 IPv6 数据包的接口索引。 0 表示未指定本地接口,堆栈可以选择适当的接口。 |
无默认应用 |
local_addr |
fuchsia.net/Ipv6Address
|
应从中发送 IPv6 数据包的来源地址。 全零表示未指定本地地址,堆栈可以选择适当的地址(即套接字绑定到的本地地址)。 |
无默认应用 |
Provider_DatagramSocketDeprecated_Response 资源
在 fuchsia.posix.socket/socket.fidl 中定义
| 字段 | 类型 | 说明 | 默认 |
|---|---|---|---|
s |
client_end:SynchronousDatagramSocket
|
无默认应用 |
Provider_InterfaceIndexToName_Response
在 fuchsia.posix.socket/socket.fidl 中定义
| 字段 | 类型 | 说明 | 默认 |
|---|---|---|---|
name |
fuchsia.net.interfaces/Name
|
无默认应用 |
Provider_InterfaceNameToFlags_Response
在 fuchsia.posix.socket/socket.fidl 中定义
| 字段 | 类型 | 说明 | 默认 |
|---|---|---|---|
flags |
InterfaceFlags
|
无默认应用 |
Provider_InterfaceNameToIndex_Response
在 fuchsia.posix.socket/socket.fidl 中定义
| 字段 | 类型 | 说明 | 默认 |
|---|---|---|---|
index |
uint64
|
无默认应用 |
Provider_StreamSocketWithOptions_Response 资源
在 fuchsia.posix.socket/socket.fidl 中定义
| 字段 | 类型 | 说明 | 默认 |
|---|---|---|---|
s |
client_end:StreamSocket
|
无默认应用 |
Provider_StreamSocket_Response 资源
在 fuchsia.posix.socket/socket.fidl 中定义
| 字段 | 类型 | 说明 | 默认 |
|---|---|---|---|
s |
client_end:StreamSocket
|
无默认应用 |
StreamSocket_Accept_Response 资源
在 fuchsia.posix.socket/socket.fidl 中定义
| 字段 | 类型 | 说明 | 默认 |
|---|---|---|---|
addr |
fuchsia.net/SocketAddress?
|
无默认应用 | |
s |
client_end:StreamSocket
|
无默认应用 |
StreamSocket_GetInfo_Response
在 fuchsia.posix.socket/socket.fidl 中定义
| 字段 | 类型 | 说明 | 默认 |
|---|---|---|---|
domain |
Domain
|
无默认应用 | |
proto |
StreamSocketProtocol
|
无默认应用 |
StreamSocket_GetTcpCongestion_Response
在 fuchsia.posix.socket/socket.fidl 中定义
| 字段 | 类型 | 说明 | 默认 |
|---|---|---|---|
value |
TcpCongestionControl
|
无默认应用 |
StreamSocket_GetTcpCork_Response
在 fuchsia.posix.socket/socket.fidl 中定义
| 字段 | 类型 | 说明 | 默认 |
|---|---|---|---|
value |
bool
|
无默认应用 |
StreamSocket_GetTcpDeferAccept_Response
在 fuchsia.posix.socket/socket.fidl 中定义
| 字段 | 类型 | 说明 | 默认 |
|---|---|---|---|
value_secs |
uint32
|
无默认应用 |
StreamSocket_GetTcpInfo_Response
在 fuchsia.posix.socket/socket.fidl 中定义
| 字段 | 类型 | 说明 | 默认 |
|---|---|---|---|
info |
TcpInfo
|
无默认应用 |
StreamSocket_GetTcpKeepAliveCount_Response
在 fuchsia.posix.socket/socket.fidl 中定义
| 字段 | 类型 | 说明 | 默认 |
|---|---|---|---|
value |
uint32
|
无默认应用 |
StreamSocket_GetTcpKeepAliveIdle_Response
在 fuchsia.posix.socket/socket.fidl 中定义
| 字段 | 类型 | 说明 | 默认 |
|---|---|---|---|
value_secs |
uint32
|
无默认应用 |
StreamSocket_GetTcpKeepAliveInterval_Response
在 fuchsia.posix.socket/socket.fidl 中定义
| 字段 | 类型 | 说明 | 默认 |
|---|---|---|---|
value_secs |
uint32
|
无默认应用 |
StreamSocket_GetTcpLinger_Response
在 fuchsia.posix.socket/socket.fidl 中定义
| 字段 | 类型 | 说明 | 默认 |
|---|---|---|---|
value_secs |
OptionalUint32
|
无默认应用 |
StreamSocket_GetTcpMaxSegment_Response
在 fuchsia.posix.socket/socket.fidl 中定义
| 字段 | 类型 | 说明 | 默认 |
|---|---|---|---|
value_bytes |
uint32
|
无默认应用 |
StreamSocket_GetTcpNoDelay_Response
在 fuchsia.posix.socket/socket.fidl 中定义
| 字段 | 类型 | 说明 | 默认 |
|---|---|---|---|
value |
bool
|
无默认应用 |
StreamSocket_GetTcpQuickAck_Response
在 fuchsia.posix.socket/socket.fidl 中定义
| 字段 | 类型 | 说明 | 默认 |
|---|---|---|---|
value |
bool
|
无默认应用 |
StreamSocket_GetTcpSynCount_Response
在 fuchsia.posix.socket/socket.fidl 中定义
| 字段 | 类型 | 说明 | 默认 |
|---|---|---|---|
value |
uint32
|
无默认应用 |
StreamSocket_GetTcpUserTimeout_Response
在 fuchsia.posix.socket/socket.fidl 中定义
| 字段 | 类型 | 说明 | 默认 |
|---|---|---|---|
value_millis |
uint32
|
无默认应用 |
StreamSocket_GetTcpWindowClamp_Response
在 fuchsia.posix.socket/socket.fidl 中定义
| 字段 | 类型 | 说明 | 默认 |
|---|---|---|---|
value |
uint32
|
无默认应用 |
StreamSocket_Listen_Response
在 fuchsia.posix.socket/socket.fidl 中定义
<EMPTY>
StreamSocket_SetTcpCongestion_Response
在 fuchsia.posix.socket/socket.fidl 中定义
<EMPTY>
StreamSocket_SetTcpCork_Response
在 fuchsia.posix.socket/socket.fidl 中定义
<EMPTY>
StreamSocket_SetTcpDeferAccept_Response
在 fuchsia.posix.socket/socket.fidl 中定义
<EMPTY>
StreamSocket_SetTcpKeepAliveCount_Response
在 fuchsia.posix.socket/socket.fidl 中定义
<EMPTY>
StreamSocket_SetTcpKeepAliveIdle_Response
在 fuchsia.posix.socket/socket.fidl 中定义
<EMPTY>
StreamSocket_SetTcpKeepAliveInterval_Response
在 fuchsia.posix.socket/socket.fidl 中定义
<EMPTY>
StreamSocket_SetTcpLinger_Response
在 fuchsia.posix.socket/socket.fidl 中定义
<EMPTY>
StreamSocket_SetTcpMaxSegment_Response
在 fuchsia.posix.socket/socket.fidl 中定义
<EMPTY>
StreamSocket_SetTcpNoDelay_Response
在 fuchsia.posix.socket/socket.fidl 中定义
<EMPTY>
StreamSocket_SetTcpQuickAck_Response
在 fuchsia.posix.socket/socket.fidl 中定义
<EMPTY>
StreamSocket_SetTcpSynCount_Response
在 fuchsia.posix.socket/socket.fidl 中定义
<EMPTY>
StreamSocket_SetTcpUserTimeout_Response
在 fuchsia.posix.socket/socket.fidl 中定义
<EMPTY>
StreamSocket_SetTcpWindowClamp_Response
在 fuchsia.posix.socket/socket.fidl 中定义
<EMPTY>
SynchronousDatagramSocket_RecvMsg_Response
在 fuchsia.posix.socket/socket.fidl 中定义
| 字段 | 类型 | 说明 | 默认 |
|---|---|---|---|
addr |
fuchsia.net/SocketAddress?
|
无默认应用 | |
data |
vector<uint8>
|
无默认应用 | |
control |
DatagramSocketRecvControlData
|
无默认应用 | |
truncated |
uint32
|
无默认应用 |
SynchronousDatagramSocket_SendMsg_Response
在 fuchsia.posix.socket/socket.fidl 中定义
| 字段 | 类型 | 说明 | 默认 |
|---|---|---|---|
len |
int64
|
无默认应用 |
时间戳
在 fuchsia.posix.socket/socket.fidl 中定义
| 字段 | 类型 | 说明 | 默认 |
|---|---|---|---|
nanoseconds |
int64
|
自纪元(1970 年 1 月 1 日 GMT)以来的时间(以纳秒为单位)。 |
无默认应用 |
requested |
TimestampOption
|
指明是否应向用户返回时间戳以及如何返回。 在 DatagramSocket 协议中会被忽略。 |
无默认应用 |
枚举
DatagramSocketProtocol strict
类型:uint32
在 fuchsia.posix.socket/socket.fidl 中定义
fuchsia.posix.socket/DatagramSocket 支持的协议。
DatagramSocketProtocol 枚举了网络栈通过数据报套接字支持的协议。
| 名称 | 值 | 说明 |
|---|---|---|
UDP |
1 |
UDP(用户数据报协议)。 UDP 套接字等效于协议为 0 或 |
ICMP_ECHO |
2 |
ICMP(互联网控制消息协议)回显。 ICMP 回显套接字等效于 通过 ICMP 回显套接字发送的数据报必须具有有效的 ICMP 或 ICMPv6 回显标头。 |
网域严格
类型:int16
在 fuchsia.posix.socket/socket.fidl 中定义
套接字的网域。
确定套接字的寻址域。
| 名称 | 值 | 说明 |
|---|---|---|
IPV4 |
0 |
IPv4 套接字。等同于 |
IPV6 |
1 |
IPv6 套接字。等同于 |
StreamSocketProtocol strict
类型:uint32
在 fuchsia.posix.socket/socket.fidl 中定义
fuchsia.posix.socket/StreamSocket 支持的协议。
StreamSocketProtocol 枚举了网络栈通过流套接字支持的协议。
| 名称 | 值 | 说明 |
|---|---|---|
TCP |
0 |
TCP(传输控制协议)。 TCP 套接字等效于协议为 0 或 |
TcpCongestionControl strict
类型:uint32
在 fuchsia.posix.socket/socket.fidl 中定义
TCP 拥塞控制模式。
| 名称 | 值 | 说明 |
|---|---|---|
RENO |
1 |
|
CUBIC |
2 |
TimestampOption strict
类型:uint32
在 fuchsia.posix.socket/socket.fidl 中定义
数据包时间戳报告精度选项。
| 名称 | 值 | 说明 |
|---|---|---|
已停用 |
0 |
不报告时间戳。 |
NANOSECOND |
1 |
报告时间戳,精确到纳秒。 |
MICROSECOND |
2 |
报告时间戳,精确到微秒。 |
UdpMetadataEncodingProtocolVersion 灵活
类型:uint16
在 fuchsia.posix.socket/socket.fidl 中定义
| 名称 | 值 | 说明 |
|---|---|---|
ZERO |
0 |
TABLES
DatagramSocketDescribeResponse 资源
在 fuchsia.posix.socket/socket.fidl 中定义
| 序数 | 字段 | 类型 | 说明 |
|---|---|---|---|
1 |
socket |
handle<socket>
|
|
2 |
tx_meta_buf_size |
uint64
|
用于接收 Tx 元数据的缓冲区的大小。 |
3 |
rx_meta_buf_size |
uint64
|
用于接收 Rx 元数据的缓冲区的大小。 |
4 |
metadata_encoding_protocol_version |
UdpMetadataEncodingProtocolVersion
|
标识用于对通过套接字与载荷一起发送的元数据进行编码和解码的协议版本。 |
DatagramSocketRecvControlData
在 fuchsia.posix.socket/socket.fidl 中定义
| 序数 | 字段 | 类型 | 说明 |
|---|---|---|---|
1 |
network |
NetworkSocketRecvControlData
|
网络套接字辅助数据。 |
DatagramSocketSendControlData
在 fuchsia.posix.socket/socket.fidl 中定义
| 序数 | 字段 | 类型 | 说明 |
|---|---|---|---|
1 |
network |
NetworkSocketSendControlData
|
网络套接字辅助数据。 |
DatagramSocketSendMsgPreflightRequest
在 fuchsia.posix.socket/socket.fidl 中定义
| 序数 | 字段 | 类型 | 说明 |
|---|---|---|---|
1 |
to |
fuchsia.net/SocketAddress
|
目标地址。 如果不存在,则会被解读为方法接收器的连接地址,并导致返回连接地址。 如果方法接收器未连接,则必须指定此项。 |
2 |
ipv6_pktinfo |
Ipv6PktInfoSendControlData
|
控制发送 IPv6 数据包时使用的本地接口和/或地址的信息。 如果不存在,则表示堆栈可以自由选择适当的出站路由。 |
DatagramSocket_RecvMsgPostflight_Response 资源
在 fuchsia.posix.socket/socket.fidl 中定义
| 序数 | 字段 | 类型 | 说明 |
|---|---|---|---|
1 |
validity |
handle<eventpair>
|
表示此结构的有效性。 如果对等方已关闭,则结构无效。 |
2 |
timestamp |
TimestampOption
|
标识是否请求了 |
3 |
requests |
CmsgRequests
|
标识最多 32 条控制消息的状态(是否已请求)。此集合大小应足够大,以便能够指示截至 2022 年 POSIX 系统支持的所有 cmsg 的状态。如果情况发生变化,可以通过添加额外的位字段来扩展该集合。 |
DatagramSocket_SendMsgPreflight_Response 资源
在 fuchsia.posix.socket/socket.fidl 中定义
| 序数 | 字段 | 类型 | 说明 |
|---|---|---|---|
1 |
to |
fuchsia.net/SocketAddress
|
经过验证的目的地地址。 仅在响应未设置的 |
2 |
validity |
vector<handle<eventpair>>:63
|
表示此结构的有效性。 如果任何元素的对等元素已关闭,则结构无效。 失效后,系统会静默丢弃与关联元数据一起发送的数据报。 |
3 |
maximum_size |
uint32
|
可发送的数据报大小上限。 超出此限制的数据报将被静默丢弃。 |
InterfaceAddresses
在 fuchsia.posix.socket/socket.fidl 中定义
包含有关接口及其地址的信息。
| 序数 | 字段 | 类型 | 说明 |
|---|---|---|---|
1 |
id |
uint64
|
接口的 ID。 |
2 |
name |
fuchsia.net.interfaces/Name
|
接口的名称。 |
4 |
addresses |
vector<fuchsia.net/Subnet>
|
当前分配给接口的所有地址。 |
5 |
interface_flags |
InterfaceFlags
|
包含 SIOCGIFFLAGS ioctl 操作返回的接口标志。 |
IpRecvControlData
在 fuchsia.posix.socket/socket.fidl 中定义
| 序数 | 字段 | 类型 | 说明 |
|---|---|---|---|
1 |
tos |
uint8
|
在收到的数据包的 IPv4 标头中找到的服务类型值。 如果启用了 |
2 |
ttl |
uint8
|
在收到的数据包的 IPv4 标头中找到的存留时间值。 如果启用了 |
3 |
original_destination_address |
fuchsia.net/SocketAddress
|
原始目标地址。 如果启用了 新增:15
|
4 |
pktinfo |
Ipv4PktInfoRecvControlData
|
已接收数据包的数据包信息。 如果启用了 添加:HEAD
|
IpSendControlData
在 fuchsia.posix.socket/socket.fidl 中定义
| 序数 | 字段 | 类型 | 说明 |
|---|---|---|---|
2 |
ttl |
uint8
|
要在传出数据包的 IPv4 标头中设置的存留时间值。 |
Ipv6RecvControlData
在 fuchsia.posix.socket/socket.fidl 中定义
| 序数 | 字段 | 类型 | 说明 |
|---|---|---|---|
1 |
tclass |
uint8
|
所接收数据包的流量类别。 如果启用了 |
2 |
hoplimit |
uint8
|
所接收数据包的跳数限制。 如果启用了 |
3 |
pktinfo |
Ipv6PktInfoRecvControlData
|
已接收数据包的数据包信息。 如果启用了 |
Ipv6SendControlData
在 fuchsia.posix.socket/socket.fidl 中定义
| 序数 | 字段 | 类型 | 说明 |
|---|---|---|---|
2 |
hoplimit |
uint8
|
要在传出数据包的 IPv6 标头中设置的跃点限制值。 |
3 |
pktinfo |
Ipv6PktInfoSendControlData
|
控制发送 IPv6 数据包时使用的本地接口和/或地址的信息。 |
NetworkSocketRecvControlData
在 fuchsia.posix.socket/socket.fidl 中定义
可接收的网络套接字 (L3) 辅助数据。
| 序数 | 字段 | 类型 | 说明 |
|---|---|---|---|
1 |
socket |
SocketRecvControlData
|
套接字级辅助数据。 |
2 |
ip |
IpRecvControlData
|
IPv4 级辅助数据。 这些消息与 POSIX |
3 |
ipv6 |
Ipv6RecvControlData
|
IPv6 级辅助数据。 这些消息与 POSIX |
NetworkSocketSendControlData
在 fuchsia.posix.socket/socket.fidl 中定义
可发送的网络套接字 (L3) 辅助数据。
| 序数 | 字段 | 类型 | 说明 |
|---|---|---|---|
1 |
socket |
SocketSendControlData
|
套接字级辅助数据。 |
2 |
ip |
IpSendControlData
|
IPv4 级辅助数据。 这些消息与 POSIX |
3 |
ipv6 |
Ipv6SendControlData
|
IPv6 级辅助数据。 这些消息与 POSIX |
RecvMsgMeta
在 fuchsia.posix.socket/socket.fidl 中定义
收到的数据报的元数据。
| 序数 | 字段 | 类型 | 说明 |
|---|---|---|---|
1 |
from |
fuchsia.net/SocketAddress
|
数据报的来源地址。 |
2 |
control |
DatagramSocketRecvControlData
|
描述数据报的辅助控制消息数据。 |
3 |
payload_len |
uint16
|
载荷的长度(以字节为单位)。 |
SendMsgMeta
在 fuchsia.posix.socket/socket.fidl 中定义
已发送数据报的元数据。
| 序数 | 字段 | 类型 | 说明 |
|---|---|---|---|
1 |
to |
fuchsia.net/SocketAddress
|
目的地地址(如果已指定)。 |
2 |
control |
DatagramSocketSendControlData
|
用于发送载荷的辅助控制消息数据。 |
SocketCreationOptions 资源
在 fuchsia.posix.socket/socket.fidl 中定义
可在创建套接字时提供的选项。
| 序数 | 字段 | 类型 | 说明 |
|---|---|---|---|
1 |
marks |
fuchsia.net/Marks
|
所创建套接字的标记。如果表中缺少某个标记,则系统不会为创建的套接字设置该标记。 |
2 |
group |
fuchsia.net.resources/WakeGroupToken
|
创建时要将套接字添加到的唤醒组。 如果不存在,则套接字不会添加到任何唤醒组。如果提供的令牌与现有唤醒组不对应,则套接字创建成功,但套接字不会添加到任何唤醒组。这样,客户端可以更轻松地避免在关闭其唤醒组和创建新套接字之间发生竞态。 |
SocketRecvControlData
在 fuchsia.posix.socket/socket.fidl 中定义
可接收的套接字级辅助数据。
这些消息与级别为 SOL_SOCKET 的控制消息匹配。
| 序数 | 字段 | 类型 | 说明 |
|---|---|---|---|
3 |
timestamp |
Timestamp
|
有关数据包接收时间的数据。 |
SocketSendControlData
在 fuchsia.posix.socket/socket.fidl 中定义
可发送的套接字级辅助数据。
这些消息与 POSIX SOL_SOCKET 控制消息相匹配。
| 序数 | 字段 | 类型 | 说明 |
|---|
StreamSocketDescribeResponse 资源
在 fuchsia.posix.socket/socket.fidl 中定义
| 序数 | 字段 | 类型 | 说明 |
|---|---|---|---|
1 |
socket |
handle<socket>
|
|
SynchronousDatagramSocketDescribeResponse 资源
在 fuchsia.posix.socket/socket.fidl 中定义
| 序数 | 字段 | 类型 | 说明 |
|---|---|---|---|
1 |
event |
handle<eventpair>
|
指示有关套接字状态的其他信息,例如就绪状态或关闭状态。 |
UNIONS
BaseDatagramSocket_GetInfo_Result strict
在 fuchsia.posix.socket/socket.fidl 中定义
| 序数 | 变体 | 类型 | 说明 |
|---|---|---|---|
1 |
response |
BaseDatagramSocket_GetInfo_Response
|
|
2 |
err |
fuchsia.posix/Errno
|
BaseNetworkSocket_AddIpMembership_Result strict
在 fuchsia.posix.socket/socket.fidl 中定义
| 序数 | 变体 | 类型 | 说明 |
|---|---|---|---|
1 |
response |
BaseNetworkSocket_AddIpMembership_Response
|
|
2 |
err |
fuchsia.posix/Errno
|
BaseNetworkSocket_AddIpv6Membership_Result strict
在 fuchsia.posix.socket/socket.fidl 中定义
| 序数 | 变体 | 类型 | 说明 |
|---|---|---|---|
1 |
response |
BaseNetworkSocket_AddIpv6Membership_Response
|
|
2 |
err |
fuchsia.posix/Errno
|
BaseNetworkSocket_Bind_Result strict
在 fuchsia.posix.socket/socket.fidl 中定义
| 序数 | 变体 | 类型 | 说明 |
|---|---|---|---|
1 |
response |
BaseNetworkSocket_Bind_Response
|
|
2 |
err |
fuchsia.posix/Errno
|
BaseNetworkSocket_Connect_Result strict
在 fuchsia.posix.socket/socket.fidl 中定义
| 序数 | 变体 | 类型 | 说明 |
|---|---|---|---|
1 |
response |
BaseNetworkSocket_Connect_Response
|
|
2 |
err |
fuchsia.posix/Errno
|
BaseNetworkSocket_Disconnect_Result strict
在 fuchsia.posix.socket/socket.fidl 中定义
| 序数 | 变体 | 类型 | 说明 |
|---|---|---|---|
1 |
response |
BaseNetworkSocket_Disconnect_Response
|
|
2 |
err |
fuchsia.posix/Errno
|
BaseNetworkSocket_DropIpMembership_Result strict
在 fuchsia.posix.socket/socket.fidl 中定义
| 序数 | 变体 | 类型 | 说明 |
|---|---|---|---|
1 |
response |
BaseNetworkSocket_DropIpMembership_Response
|
|
2 |
err |
fuchsia.posix/Errno
|
BaseNetworkSocket_DropIpv6Membership_Result strict
在 fuchsia.posix.socket/socket.fidl 中定义
| 序数 | 变体 | 类型 | 说明 |
|---|---|---|---|
1 |
response |
BaseNetworkSocket_DropIpv6Membership_Response
|
|
2 |
err |
fuchsia.posix/Errno
|
BaseNetworkSocket_GetIpMulticastInterface_Result strict
在 fuchsia.posix.socket/socket.fidl 中定义
| 序数 | 变体 | 类型 | 说明 |
|---|---|---|---|
1 |
response |
BaseNetworkSocket_GetIpMulticastInterface_Response
|
|
2 |
err |
fuchsia.posix/Errno
|
BaseNetworkSocket_GetIpMulticastLoopback_Result strict
在 fuchsia.posix.socket/socket.fidl 中定义
| 序数 | 变体 | 类型 | 说明 |
|---|---|---|---|
1 |
response |
BaseNetworkSocket_GetIpMulticastLoopback_Response
|
|
2 |
err |
fuchsia.posix/Errno
|
BaseNetworkSocket_GetIpMulticastTtl_Result strict
在 fuchsia.posix.socket/socket.fidl 中定义
| 序数 | 变体 | 类型 | 说明 |
|---|---|---|---|
1 |
response |
BaseNetworkSocket_GetIpMulticastTtl_Response
|
|
2 |
err |
fuchsia.posix/Errno
|
BaseNetworkSocket_GetIpPacketInfo_Result strict
在 fuchsia.posix.socket/socket.fidl 中定义
| 序数 | 变体 | 类型 | 说明 |
|---|---|---|---|
1 |
response |
BaseNetworkSocket_GetIpPacketInfo_Response
|
|
2 |
err |
fuchsia.posix/Errno
|
BaseNetworkSocket_GetIpReceiveOriginalDestinationAddress_Result strict
在 fuchsia.posix.socket/socket.fidl 中定义
| 序数 | 变体 | 类型 | 说明 |
|---|---|---|---|
1 |
response |
BaseNetworkSocket_GetIpReceiveOriginalDestinationAddress_Response
|
|
2 |
err |
fuchsia.posix/Errno
|
BaseNetworkSocket_GetIpReceiveTtl_Result strict
在 fuchsia.posix.socket/socket.fidl 中定义
| 序数 | 变体 | 类型 | 说明 |
|---|---|---|---|
1 |
response |
BaseNetworkSocket_GetIpReceiveTtl_Response
|
|
2 |
err |
fuchsia.posix/Errno
|
BaseNetworkSocket_GetIpReceiveTypeOfService_Result strict
在 fuchsia.posix.socket/socket.fidl 中定义
| 序数 | 变体 | 类型 | 说明 |
|---|---|---|---|
1 |
response |
BaseNetworkSocket_GetIpReceiveTypeOfService_Response
|
|
2 |
err |
fuchsia.posix/Errno
|
BaseNetworkSocket_GetIpTransparent_Result strict
在 fuchsia.posix.socket/socket.fidl 中定义
| 序数 | 变体 | 类型 | 说明 |
|---|---|---|---|
1 |
response |
BaseNetworkSocket_GetIpTransparent_Response
|
|
2 |
err |
fuchsia.posix/Errno
|
BaseNetworkSocket_GetIpTtl_Result strict
在 fuchsia.posix.socket/socket.fidl 中定义
| 序数 | 变体 | 类型 | 说明 |
|---|---|---|---|
1 |
response |
BaseNetworkSocket_GetIpTtl_Response
|
|
2 |
err |
fuchsia.posix/Errno
|
BaseNetworkSocket_GetIpTypeOfService_Result strict
在 fuchsia.posix.socket/socket.fidl 中定义
| 序数 | 变体 | 类型 | 说明 |
|---|---|---|---|
1 |
response |
BaseNetworkSocket_GetIpTypeOfService_Response
|
|
2 |
err |
fuchsia.posix/Errno
|
BaseNetworkSocket_GetIpv6MulticastHops_Result strict
在 fuchsia.posix.socket/socket.fidl 中定义
| 序数 | 变体 | 类型 | 说明 |
|---|---|---|---|
1 |
response |
BaseNetworkSocket_GetIpv6MulticastHops_Response
|
|
2 |
err |
fuchsia.posix/Errno
|
BaseNetworkSocket_GetIpv6MulticastInterface_Result strict
在 fuchsia.posix.socket/socket.fidl 中定义
| 序数 | 变体 | 类型 | 说明 |
|---|---|---|---|
1 |
response |
BaseNetworkSocket_GetIpv6MulticastInterface_Response
|
|
2 |
err |
fuchsia.posix/Errno
|
BaseNetworkSocket_GetIpv6MulticastLoopback_Result strict
在 fuchsia.posix.socket/socket.fidl 中定义
| 序数 | 变体 | 类型 | 说明 |
|---|---|---|---|
1 |
response |
BaseNetworkSocket_GetIpv6MulticastLoopback_Response
|
|
2 |
err |
fuchsia.posix/Errno
|
BaseNetworkSocket_GetIpv6Only_Result strict
在 fuchsia.posix.socket/socket.fidl 中定义
| 序数 | 变体 | 类型 | 说明 |
|---|---|---|---|
1 |
response |
BaseNetworkSocket_GetIpv6Only_Response
|
|
2 |
err |
fuchsia.posix/Errno
|
BaseNetworkSocket_GetIpv6ReceiveHopLimit_Result strict
在 fuchsia.posix.socket/socket.fidl 中定义
| 序数 | 变体 | 类型 | 说明 |
|---|---|---|---|
1 |
response |
BaseNetworkSocket_GetIpv6ReceiveHopLimit_Response
|
|
2 |
err |
fuchsia.posix/Errno
|
BaseNetworkSocket_GetIpv6ReceivePacketInfo_Result strict
在 fuchsia.posix.socket/socket.fidl 中定义
| 序数 | 变体 | 类型 | 说明 |
|---|---|---|---|
1 |
response |
BaseNetworkSocket_GetIpv6ReceivePacketInfo_Response
|
|
2 |
err |
fuchsia.posix/Errno
|
BaseNetworkSocket_GetIpv6ReceiveTrafficClass_Result strict
在 fuchsia.posix.socket/socket.fidl 中定义
| 序数 | 变体 | 类型 | 说明 |
|---|---|---|---|
1 |
response |
BaseNetworkSocket_GetIpv6ReceiveTrafficClass_Response
|
|
2 |
err |
fuchsia.posix/Errno
|
BaseNetworkSocket_GetIpv6TrafficClass_Result strict
在 fuchsia.posix.socket/socket.fidl 中定义
| 序数 | 变体 | 类型 | 说明 |
|---|---|---|---|
1 |
response |
BaseNetworkSocket_GetIpv6TrafficClass_Response
|
|
2 |
err |
fuchsia.posix/Errno
|
BaseNetworkSocket_GetIpv6UnicastHops_Result strict
在 fuchsia.posix.socket/socket.fidl 中定义
| 序数 | 变体 | 类型 | 说明 |
|---|---|---|---|
1 |
response |
BaseNetworkSocket_GetIpv6UnicastHops_Response
|
|
2 |
err |
fuchsia.posix/Errno
|
BaseNetworkSocket_GetOriginalDestination_Result strict
在 fuchsia.posix.socket/socket.fidl 中定义
| 序数 | 变体 | 类型 | 说明 |
|---|---|---|---|
1 |
response |
BaseNetworkSocket_GetOriginalDestination_Response
|
|
2 |
err |
fuchsia.posix/Errno
|
BaseNetworkSocket_GetPeerName_Result strict
在 fuchsia.posix.socket/socket.fidl 中定义
| 序数 | 变体 | 类型 | 说明 |
|---|---|---|---|
1 |
response |
BaseNetworkSocket_GetPeerName_Response
|
|
2 |
err |
fuchsia.posix/Errno
|
BaseNetworkSocket_GetSockName_Result strict
在 fuchsia.posix.socket/socket.fidl 中定义
| 序数 | 变体 | 类型 | 说明 |
|---|---|---|---|
1 |
response |
BaseNetworkSocket_GetSockName_Response
|
|
2 |
err |
fuchsia.posix/Errno
|
BaseNetworkSocket_SetIpMulticastInterface_Result strict
在 fuchsia.posix.socket/socket.fidl 中定义
| 序数 | 变体 | 类型 | 说明 |
|---|---|---|---|
1 |
response |
BaseNetworkSocket_SetIpMulticastInterface_Response
|
|
2 |
err |
fuchsia.posix/Errno
|
BaseNetworkSocket_SetIpMulticastLoopback_Result strict
在 fuchsia.posix.socket/socket.fidl 中定义
| 序数 | 变体 | 类型 | 说明 |
|---|---|---|---|
1 |
response |
BaseNetworkSocket_SetIpMulticastLoopback_Response
|
|
2 |
err |
fuchsia.posix/Errno
|
BaseNetworkSocket_SetIpMulticastTtl_Result strict
在 fuchsia.posix.socket/socket.fidl 中定义
| 序数 | 变体 | 类型 | 说明 |
|---|---|---|---|
1 |
response |
BaseNetworkSocket_SetIpMulticastTtl_Response
|
|
2 |
err |
fuchsia.posix/Errno
|
BaseNetworkSocket_SetIpPacketInfo_Result strict
在 fuchsia.posix.socket/socket.fidl 中定义
| 序数 | 变体 | 类型 | 说明 |
|---|---|---|---|
1 |
response |
BaseNetworkSocket_SetIpPacketInfo_Response
|
|
2 |
err |
fuchsia.posix/Errno
|
BaseNetworkSocket_SetIpReceiveOriginalDestinationAddress_Result strict
在 fuchsia.posix.socket/socket.fidl 中定义
| 序数 | 变体 | 类型 | 说明 |
|---|---|---|---|
1 |
response |
BaseNetworkSocket_SetIpReceiveOriginalDestinationAddress_Response
|
|
2 |
err |
fuchsia.posix/Errno
|
BaseNetworkSocket_SetIpReceiveTtl_Result strict
在 fuchsia.posix.socket/socket.fidl 中定义
| 序数 | 变体 | 类型 | 说明 |
|---|---|---|---|
1 |
response |
BaseNetworkSocket_SetIpReceiveTtl_Response
|
|
2 |
err |
fuchsia.posix/Errno
|
BaseNetworkSocket_SetIpReceiveTypeOfService_Result strict
在 fuchsia.posix.socket/socket.fidl 中定义
| 序数 | 变体 | 类型 | 说明 |
|---|---|---|---|
1 |
response |
BaseNetworkSocket_SetIpReceiveTypeOfService_Response
|
|
2 |
err |
fuchsia.posix/Errno
|
BaseNetworkSocket_SetIpTransparent_Result strict
在 fuchsia.posix.socket/socket.fidl 中定义
| 序数 | 变体 | 类型 | 说明 |
|---|---|---|---|
1 |
response |
BaseNetworkSocket_SetIpTransparent_Response
|
|
2 |
err |
fuchsia.posix/Errno
|
BaseNetworkSocket_SetIpTtl_Result strict
在 fuchsia.posix.socket/socket.fidl 中定义
| 序数 | 变体 | 类型 | 说明 |
|---|---|---|---|
1 |
response |
BaseNetworkSocket_SetIpTtl_Response
|
|
2 |
err |
fuchsia.posix/Errno
|
BaseNetworkSocket_SetIpTypeOfService_Result strict
在 fuchsia.posix.socket/socket.fidl 中定义
| 序数 | 变体 | 类型 | 说明 |
|---|---|---|---|
1 |
response |
BaseNetworkSocket_SetIpTypeOfService_Response
|
|
2 |
err |
fuchsia.posix/Errno
|
BaseNetworkSocket_SetIpv6MulticastHops_Result strict
在 fuchsia.posix.socket/socket.fidl 中定义
| 序数 | 变体 | 类型 | 说明 |
|---|---|---|---|
1 |
response |
BaseNetworkSocket_SetIpv6MulticastHops_Response
|
|
2 |
err |
fuchsia.posix/Errno
|
BaseNetworkSocket_SetIpv6MulticastInterface_Result strict
在 fuchsia.posix.socket/socket.fidl 中定义
| 序数 | 变体 | 类型 | 说明 |
|---|---|---|---|
1 |
response |
BaseNetworkSocket_SetIpv6MulticastInterface_Response
|
|
2 |
err |
fuchsia.posix/Errno
|
BaseNetworkSocket_SetIpv6MulticastLoopback_Result strict
在 fuchsia.posix.socket/socket.fidl 中定义
| 序数 | 变体 | 类型 | 说明 |
|---|---|---|---|
1 |
response |
BaseNetworkSocket_SetIpv6MulticastLoopback_Response
|
|
2 |
err |
fuchsia.posix/Errno
|
BaseNetworkSocket_SetIpv6Only_Result strict
在 fuchsia.posix.socket/socket.fidl 中定义
| 序数 | 变体 | 类型 | 说明 |
|---|---|---|---|
1 |
response |
BaseNetworkSocket_SetIpv6Only_Response
|
|
2 |
err |
fuchsia.posix/Errno
|
BaseNetworkSocket_SetIpv6ReceiveHopLimit_Result strict
在 fuchsia.posix.socket/socket.fidl 中定义
| 序数 | 变体 | 类型 | 说明 |
|---|---|---|---|
1 |
response |
BaseNetworkSocket_SetIpv6ReceiveHopLimit_Response
|
|
2 |
err |
fuchsia.posix/Errno
|
BaseNetworkSocket_SetIpv6ReceivePacketInfo_Result strict
在 fuchsia.posix.socket/socket.fidl 中定义
| 序数 | 变体 | 类型 | 说明 |
|---|---|---|---|
1 |
response |
BaseNetworkSocket_SetIpv6ReceivePacketInfo_Response
|
|
2 |
err |
fuchsia.posix/Errno
|
BaseNetworkSocket_SetIpv6ReceiveTrafficClass_Result strict
在 fuchsia.posix.socket/socket.fidl 中定义
| 序数 | 变体 | 类型 | 说明 |
|---|---|---|---|
1 |
response |
BaseNetworkSocket_SetIpv6ReceiveTrafficClass_Response
|
|
2 |
err |
fuchsia.posix/Errno
|
BaseNetworkSocket_SetIpv6TrafficClass_Result strict
在 fuchsia.posix.socket/socket.fidl 中定义
| 序数 | 变体 | 类型 | 说明 |
|---|---|---|---|
1 |
response |
BaseNetworkSocket_SetIpv6TrafficClass_Response
|
|
2 |
err |
fuchsia.posix/Errno
|
BaseNetworkSocket_SetIpv6UnicastHops_Result strict
在 fuchsia.posix.socket/socket.fidl 中定义
| 序数 | 变体 | 类型 | 说明 |
|---|---|---|---|
1 |
response |
BaseNetworkSocket_SetIpv6UnicastHops_Response
|
|
2 |
err |
fuchsia.posix/Errno
|
BaseNetworkSocket_Shutdown_Result strict
在 fuchsia.posix.socket/socket.fidl 中定义
| 序数 | 变体 | 类型 | 说明 |
|---|---|---|---|
1 |
response |
BaseNetworkSocket_Shutdown_Response
|
|
2 |
err |
fuchsia.posix/Errno
|
BaseSocket_GetAcceptConn_Result strict
在 fuchsia.posix.socket/socket.fidl 中定义
| 序数 | 变体 | 类型 | 说明 |
|---|---|---|---|
1 |
response |
BaseSocket_GetAcceptConn_Response
|
|
2 |
err |
fuchsia.posix/Errno
|
BaseSocket_GetBindToDevice_Result strict
在 fuchsia.posix.socket/socket.fidl 中定义
| 序数 | 变体 | 类型 | 说明 |
|---|---|---|---|
1 |
response |
BaseSocket_GetBindToDevice_Response
|
|
2 |
err |
fuchsia.posix/Errno
|
BaseSocket_GetBindToInterfaceIndex_Result strict
在 fuchsia.posix.socket/socket.fidl 中定义
| 序数 | 变体 | 类型 | 说明 |
|---|---|---|---|
1 |
response |
BaseSocket_GetBindToInterfaceIndex_Response
|
|
2 |
err |
fuchsia.posix/Errno
|
BaseSocket_GetBroadcast_Result strict
在 fuchsia.posix.socket/socket.fidl 中定义
| 序数 | 变体 | 类型 | 说明 |
|---|---|---|---|
1 |
response |
BaseSocket_GetBroadcast_Response
|
|
2 |
err |
fuchsia.posix/Errno
|
BaseSocket_GetCookie_Result strict
在 fuchsia.posix.socket/socket.fidl 中定义
| 序数 | 变体 | 类型 | 说明 |
|---|---|---|---|
1 |
response |
BaseSocket_GetCookie_Response
|
|
2 |
err |
fuchsia.posix/Errno
|
BaseSocket_GetError_Result strict
在 fuchsia.posix.socket/socket.fidl 中定义
| 序数 | 变体 | 类型 | 说明 |
|---|---|---|---|
1 |
response |
BaseSocket_GetError_Response
|
|
2 |
err |
fuchsia.posix/Errno
|
BaseSocket_GetKeepAlive_Result strict
在 fuchsia.posix.socket/socket.fidl 中定义
| 序数 | 变体 | 类型 | 说明 |
|---|---|---|---|
1 |
response |
BaseSocket_GetKeepAlive_Response
|
|
2 |
err |
fuchsia.posix/Errno
|
BaseSocket_GetLinger_Result strict
在 fuchsia.posix.socket/socket.fidl 中定义
| 序数 | 变体 | 类型 | 说明 |
|---|---|---|---|
1 |
response |
BaseSocket_GetLinger_Response
|
|
2 |
err |
fuchsia.posix/Errno
|
BaseSocket_GetMark_Result strict
在 fuchsia.posix.socket/socket.fidl 中定义
| 序数 | 变体 | 类型 | 说明 |
|---|---|---|---|
1 |
response |
BaseSocket_GetMark_Response
|
|
2 |
err |
fuchsia.posix/Errno
|
BaseSocket_GetNoCheck_Result strict
在 fuchsia.posix.socket/socket.fidl 中定义
| 序数 | 变体 | 类型 | 说明 |
|---|---|---|---|
1 |
response |
BaseSocket_GetNoCheck_Response
|
|
2 |
err |
fuchsia.posix/Errno
|
BaseSocket_GetOutOfBandInline_Result strict
在 fuchsia.posix.socket/socket.fidl 中定义
| 序数 | 变体 | 类型 | 说明 |
|---|---|---|---|
1 |
response |
BaseSocket_GetOutOfBandInline_Response
|
|
2 |
err |
fuchsia.posix/Errno
|
BaseSocket_GetReceiveBuffer_Result strict
在 fuchsia.posix.socket/socket.fidl 中定义
| 序数 | 变体 | 类型 | 说明 |
|---|---|---|---|
1 |
response |
BaseSocket_GetReceiveBuffer_Response
|
|
2 |
err |
fuchsia.posix/Errno
|
BaseSocket_GetReuseAddress_Result strict
在 fuchsia.posix.socket/socket.fidl 中定义
| 序数 | 变体 | 类型 | 说明 |
|---|---|---|---|
1 |
response |
BaseSocket_GetReuseAddress_Response
|
|
2 |
err |
fuchsia.posix/Errno
|
BaseSocket_GetReusePort_Result strict
在 fuchsia.posix.socket/socket.fidl 中定义
| 序数 | 变体 | 类型 | 说明 |
|---|---|---|---|
1 |
response |
BaseSocket_GetReusePort_Response
|
|
2 |
err |
fuchsia.posix/Errno
|
BaseSocket_GetSendBuffer_Result strict
在 fuchsia.posix.socket/socket.fidl 中定义
| 序数 | 变体 | 类型 | 说明 |
|---|---|---|---|
1 |
response |
BaseSocket_GetSendBuffer_Response
|
|
2 |
err |
fuchsia.posix/Errno
|
BaseSocket_GetTimestamp_Result strict
在 fuchsia.posix.socket/socket.fidl 中定义
| 序数 | 变体 | 类型 | 说明 |
|---|---|---|---|
1 |
response |
BaseSocket_GetTimestamp_Response
|
|
2 |
err |
fuchsia.posix/Errno
|
BaseSocket_SetBindToDevice_Result strict
在 fuchsia.posix.socket/socket.fidl 中定义
| 序数 | 变体 | 类型 | 说明 |
|---|---|---|---|
1 |
response |
BaseSocket_SetBindToDevice_Response
|
|
2 |
err |
fuchsia.posix/Errno
|
BaseSocket_SetBindToInterfaceIndex_Result strict
在 fuchsia.posix.socket/socket.fidl 中定义
| 序数 | 变体 | 类型 | 说明 |
|---|---|---|---|
1 |
response |
BaseSocket_SetBindToInterfaceIndex_Response
|
|
2 |
err |
fuchsia.posix/Errno
|
BaseSocket_SetBroadcast_Result strict
在 fuchsia.posix.socket/socket.fidl 中定义
| 序数 | 变体 | 类型 | 说明 |
|---|---|---|---|
1 |
response |
BaseSocket_SetBroadcast_Response
|
|
2 |
err |
fuchsia.posix/Errno
|
BaseSocket_SetKeepAlive_Result strict
在 fuchsia.posix.socket/socket.fidl 中定义
| 序数 | 变体 | 类型 | 说明 |
|---|---|---|---|
1 |
response |
BaseSocket_SetKeepAlive_Response
|
|
2 |
err |
fuchsia.posix/Errno
|
BaseSocket_SetLinger_Result strict
在 fuchsia.posix.socket/socket.fidl 中定义
| 序数 | 变体 | 类型 | 说明 |
|---|---|---|---|
1 |
response |
BaseSocket_SetLinger_Response
|
|
2 |
err |
fuchsia.posix/Errno
|
BaseSocket_SetMark_Result strict
在 fuchsia.posix.socket/socket.fidl 中定义
| 序数 | 变体 | 类型 | 说明 |
|---|---|---|---|
1 |
response |
BaseSocket_SetMark_Response
|
|
2 |
err |
fuchsia.posix/Errno
|
BaseSocket_SetNoCheck_Result strict
在 fuchsia.posix.socket/socket.fidl 中定义
| 序数 | 变体 | 类型 | 说明 |
|---|---|---|---|
1 |
response |
BaseSocket_SetNoCheck_Response
|
|
2 |
err |
fuchsia.posix/Errno
|
BaseSocket_SetOutOfBandInline_Result strict
在 fuchsia.posix.socket/socket.fidl 中定义
| 序数 | 变体 | 类型 | 说明 |
|---|---|---|---|
1 |
response |
BaseSocket_SetOutOfBandInline_Response
|
|
2 |
err |
fuchsia.posix/Errno
|
BaseSocket_SetReceiveBuffer_Result strict
在 fuchsia.posix.socket/socket.fidl 中定义
| 序数 | 变体 | 类型 | 说明 |
|---|---|---|---|
1 |
response |
BaseSocket_SetReceiveBuffer_Response
|
|
2 |
err |
fuchsia.posix/Errno
|
BaseSocket_SetReuseAddress_Result strict
在 fuchsia.posix.socket/socket.fidl 中定义
| 序数 | 变体 | 类型 | 说明 |
|---|---|---|---|
1 |
response |
BaseSocket_SetReuseAddress_Response
|
|
2 |
err |
fuchsia.posix/Errno
|
BaseSocket_SetReusePortDeprecated_Result strict
在 fuchsia.posix.socket/socket.fidl 中定义
| 序数 | 变体 | 类型 | 说明 |
|---|---|---|---|
1 |
response |
BaseSocket_SetReusePortDeprecated_Response
|
|
2 |
err |
fuchsia.posix/Errno
|
BaseSocket_SetReusePort_Result strict
在 fuchsia.posix.socket/socket.fidl 中定义
| 序数 | 变体 | 类型 | 说明 |
|---|---|---|---|
1 |
response |
BaseSocket_SetReusePort_Response
|
|
2 |
err |
fuchsia.posix/Errno
|
BaseSocket_SetSendBuffer_Result strict
在 fuchsia.posix.socket/socket.fidl 中定义
| 序数 | 变体 | 类型 | 说明 |
|---|---|---|---|
1 |
response |
BaseSocket_SetSendBuffer_Response
|
|
2 |
err |
fuchsia.posix/Errno
|
BaseSocket_SetTimestamp_Result strict
在 fuchsia.posix.socket/socket.fidl 中定义
| 序数 | 变体 | 类型 | 说明 |
|---|---|---|---|
1 |
response |
BaseSocket_SetTimestamp_Response
|
|
2 |
err |
fuchsia.posix/Errno
|
DatagramSocket_RecvMsgPostflight_Result strict resource
在 fuchsia.posix.socket/socket.fidl 中定义
| 序数 | 变体 | 类型 | 说明 |
|---|---|---|---|
1 |
response |
DatagramSocket_RecvMsgPostflight_Response
|
|
2 |
err |
fuchsia.posix/Errno
|
DatagramSocket_SendMsgPreflight_Result strict resource
在 fuchsia.posix.socket/socket.fidl 中定义
| 序数 | 变体 | 类型 | 说明 |
|---|---|---|---|
1 |
response |
DatagramSocket_SendMsgPreflight_Response
|
|
2 |
err |
fuchsia.posix/Errno
|
OptionalUint32 strict
在 fuchsia.posix.socket/socket.fidl 中定义
可选的 uint32 值。
| 序数 | 变体 | 类型 | 说明 |
|---|---|---|---|
1 |
value |
uint32
|
|
2 |
unset |
Empty
|
OptionalUint8 strict
在 fuchsia.posix.socket/socket.fidl 中定义
可选字节值。
| 序数 | 变体 | 类型 | 说明 |
|---|---|---|---|
1 |
value |
uint8
|
|
2 |
unset |
Empty
|
Provider_DatagramSocketDeprecated_Result strict resource
在 fuchsia.posix.socket/socket.fidl 中定义
| 序数 | 变体 | 类型 | 说明 |
|---|---|---|---|
1 |
response |
Provider_DatagramSocketDeprecated_Response
|
|
2 |
err |
fuchsia.posix/Errno
|
Provider_DatagramSocketWithOptions_Response strict resource
在 fuchsia.posix.socket/socket.fidl 中定义
| 序数 | 变体 | 类型 | 说明 |
|---|---|---|---|
1 |
datagram_socket |
client_end:DatagramSocket
|
|
2 |
synchronous_datagram_socket |
client_end:SynchronousDatagramSocket
|
Provider_DatagramSocketWithOptions_Result strict resource
在 fuchsia.posix.socket/socket.fidl 中定义
| 序数 | 变体 | 类型 | 说明 |
|---|---|---|---|
1 |
response |
Provider_DatagramSocketWithOptions_Response
|
|
2 |
err |
fuchsia.posix/Errno
|
Provider_DatagramSocket_Response strict resource
在 fuchsia.posix.socket/socket.fidl 中定义
| 序数 | 变体 | 类型 | 说明 |
|---|---|---|---|
1 |
datagram_socket |
client_end:DatagramSocket
|
|
2 |
synchronous_datagram_socket |
client_end:SynchronousDatagramSocket
|
Provider_DatagramSocket_Result strict resource
在 fuchsia.posix.socket/socket.fidl 中定义
| 序数 | 变体 | 类型 | 说明 |
|---|---|---|---|
1 |
response |
Provider_DatagramSocket_Response
|
|
2 |
err |
fuchsia.posix/Errno
|
Provider_InterfaceIndexToName_Result strict
在 fuchsia.posix.socket/socket.fidl 中定义
| 序数 | 变体 | 类型 | 说明 |
|---|---|---|---|
1 |
response |
Provider_InterfaceIndexToName_Response
|
|
2 |
err |
zx/Status
|
Provider_InterfaceNameToFlags_Result strict
在 fuchsia.posix.socket/socket.fidl 中定义
| 序数 | 变体 | 类型 | 说明 |
|---|---|---|---|
1 |
response |
Provider_InterfaceNameToFlags_Response
|
|
2 |
err |
zx/Status
|
Provider_InterfaceNameToIndex_Result strict
在 fuchsia.posix.socket/socket.fidl 中定义
| 序数 | 变体 | 类型 | 说明 |
|---|---|---|---|
1 |
response |
Provider_InterfaceNameToIndex_Response
|
|
2 |
err |
zx/Status
|
Provider_StreamSocketWithOptions_Result strict resource
在 fuchsia.posix.socket/socket.fidl 中定义
| 序数 | 变体 | 类型 | 说明 |
|---|---|---|---|
1 |
response |
Provider_StreamSocketWithOptions_Response
|
|
2 |
err |
fuchsia.posix/Errno
|
Provider_StreamSocket_Result strict resource
在 fuchsia.posix.socket/socket.fidl 中定义
| 序数 | 变体 | 类型 | 说明 |
|---|---|---|---|
1 |
response |
Provider_StreamSocket_Response
|
|
2 |
err |
fuchsia.posix/Errno
|
ReusePortOption strict resource
在 fuchsia.posix.socket/socket.fidl 中定义
SO_REUSEPORT 选项。
| 序数 | 变体 | 类型 | 说明 |
|---|---|---|---|
1 |
disabled |
Empty
|
SO_REUSEPORT 已停用。 |
2 |
enabled |
SharingDomainToken
|
在令牌标识的共享网域中启用了 SO_REUSEPORT。 |
StreamSocket_Accept_Result strict resource
在 fuchsia.posix.socket/socket.fidl 中定义
| 序数 | 变体 | 类型 | 说明 |
|---|---|---|---|
1 |
response |
StreamSocket_Accept_Response
|
|
2 |
err |
fuchsia.posix/Errno
|
StreamSocket_GetInfo_Result strict
在 fuchsia.posix.socket/socket.fidl 中定义
| 序数 | 变体 | 类型 | 说明 |
|---|---|---|---|
1 |
response |
StreamSocket_GetInfo_Response
|
|
2 |
err |
fuchsia.posix/Errno
|
StreamSocket_GetTcpCongestion_Result strict
在 fuchsia.posix.socket/socket.fidl 中定义
| 序数 | 变体 | 类型 | 说明 |
|---|---|---|---|
1 |
response |
StreamSocket_GetTcpCongestion_Response
|
|
2 |
err |
fuchsia.posix/Errno
|
StreamSocket_GetTcpCork_Result strict
在 fuchsia.posix.socket/socket.fidl 中定义
| 序数 | 变体 | 类型 | 说明 |
|---|---|---|---|
1 |
response |
StreamSocket_GetTcpCork_Response
|
|
2 |
err |
fuchsia.posix/Errno
|
StreamSocket_GetTcpDeferAccept_Result strict
在 fuchsia.posix.socket/socket.fidl 中定义
| 序数 | 变体 | 类型 | 说明 |
|---|---|---|---|
1 |
response |
StreamSocket_GetTcpDeferAccept_Response
|
|
2 |
err |
fuchsia.posix/Errno
|
StreamSocket_GetTcpInfo_Result strict
在 fuchsia.posix.socket/socket.fidl 中定义
| 序数 | 变体 | 类型 | 说明 |
|---|---|---|---|
1 |
response |
StreamSocket_GetTcpInfo_Response
|
|
2 |
err |
fuchsia.posix/Errno
|
StreamSocket_GetTcpKeepAliveCount_Result strict
在 fuchsia.posix.socket/socket.fidl 中定义
| 序数 | 变体 | 类型 | 说明 |
|---|---|---|---|
1 |
response |
StreamSocket_GetTcpKeepAliveCount_Response
|
|
2 |
err |
fuchsia.posix/Errno
|
StreamSocket_GetTcpKeepAliveIdle_Result strict
在 fuchsia.posix.socket/socket.fidl 中定义
| 序数 | 变体 | 类型 | 说明 |
|---|---|---|---|
1 |
response |
StreamSocket_GetTcpKeepAliveIdle_Response
|
|
2 |
err |
fuchsia.posix/Errno
|
StreamSocket_GetTcpKeepAliveInterval_Result strict
在 fuchsia.posix.socket/socket.fidl 中定义
| 序数 | 变体 | 类型 | 说明 |
|---|---|---|---|
1 |
response |
StreamSocket_GetTcpKeepAliveInterval_Response
|
|
2 |
err |
fuchsia.posix/Errno
|
StreamSocket_GetTcpLinger_Result strict
在 fuchsia.posix.socket/socket.fidl 中定义
| 序数 | 变体 | 类型 | 说明 |
|---|---|---|---|
1 |
response |
StreamSocket_GetTcpLinger_Response
|
|
2 |
err |
fuchsia.posix/Errno
|
StreamSocket_GetTcpMaxSegment_Result strict
在 fuchsia.posix.socket/socket.fidl 中定义
| 序数 | 变体 | 类型 | 说明 |
|---|---|---|---|
1 |
response |
StreamSocket_GetTcpMaxSegment_Response
|
|
2 |
err |
fuchsia.posix/Errno
|
StreamSocket_GetTcpNoDelay_Result strict
在 fuchsia.posix.socket/socket.fidl 中定义
| 序数 | 变体 | 类型 | 说明 |
|---|---|---|---|
1 |
response |
StreamSocket_GetTcpNoDelay_Response
|
|
2 |
err |
fuchsia.posix/Errno
|
StreamSocket_GetTcpQuickAck_Result strict
在 fuchsia.posix.socket/socket.fidl 中定义
| 序数 | 变体 | 类型 | 说明 |
|---|---|---|---|
1 |
response |
StreamSocket_GetTcpQuickAck_Response
|
|
2 |
err |
fuchsia.posix/Errno
|
StreamSocket_GetTcpSynCount_Result strict
在 fuchsia.posix.socket/socket.fidl 中定义
| 序数 | 变体 | 类型 | 说明 |
|---|---|---|---|
1 |
response |
StreamSocket_GetTcpSynCount_Response
|
|
2 |
err |
fuchsia.posix/Errno
|
StreamSocket_GetTcpUserTimeout_Result strict
在 fuchsia.posix.socket/socket.fidl 中定义
| 序数 | 变体 | 类型 | 说明 |
|---|---|---|---|
1 |
response |
StreamSocket_GetTcpUserTimeout_Response
|
|
2 |
err |
fuchsia.posix/Errno
|
StreamSocket_GetTcpWindowClamp_Result strict
在 fuchsia.posix.socket/socket.fidl 中定义
| 序数 | 变体 | 类型 | 说明 |
|---|---|---|---|
1 |
response |
StreamSocket_GetTcpWindowClamp_Response
|
|
2 |
err |
fuchsia.posix/Errno
|
StreamSocket_Listen_Result strict
在 fuchsia.posix.socket/socket.fidl 中定义
| 序数 | 变体 | 类型 | 说明 |
|---|---|---|---|
1 |
response |
StreamSocket_Listen_Response
|
|
2 |
err |
fuchsia.posix/Errno
|
StreamSocket_SetTcpCongestion_Result strict
在 fuchsia.posix.socket/socket.fidl 中定义
| 序数 | 变体 | 类型 | 说明 |
|---|---|---|---|
1 |
response |
StreamSocket_SetTcpCongestion_Response
|
|
2 |
err |
fuchsia.posix/Errno
|
StreamSocket_SetTcpCork_Result strict
在 fuchsia.posix.socket/socket.fidl 中定义
| 序数 | 变体 | 类型 | 说明 |
|---|---|---|---|
1 |
response |
StreamSocket_SetTcpCork_Response
|
|
2 |
err |
fuchsia.posix/Errno
|
StreamSocket_SetTcpDeferAccept_Result strict
在 fuchsia.posix.socket/socket.fidl 中定义
| 序数 | 变体 | 类型 | 说明 |
|---|---|---|---|
1 |
response |
StreamSocket_SetTcpDeferAccept_Response
|
|
2 |
err |
fuchsia.posix/Errno
|
StreamSocket_SetTcpKeepAliveCount_Result strict
在 fuchsia.posix.socket/socket.fidl 中定义
| 序数 | 变体 | 类型 | 说明 |
|---|---|---|---|
1 |
response |
StreamSocket_SetTcpKeepAliveCount_Response
|
|
2 |
err |
fuchsia.posix/Errno
|
StreamSocket_SetTcpKeepAliveIdle_Result strict
在 fuchsia.posix.socket/socket.fidl 中定义
| 序数 | 变体 | 类型 | 说明 |
|---|---|---|---|
1 |
response |
StreamSocket_SetTcpKeepAliveIdle_Response
|
|
2 |
err |
fuchsia.posix/Errno
|
StreamSocket_SetTcpKeepAliveInterval_Result strict
在 fuchsia.posix.socket/socket.fidl 中定义
| 序数 | 变体 | 类型 | 说明 |
|---|---|---|---|
1 |
response |
StreamSocket_SetTcpKeepAliveInterval_Response
|
|
2 |
err |
fuchsia.posix/Errno
|
StreamSocket_SetTcpLinger_Result strict
在 fuchsia.posix.socket/socket.fidl 中定义
| 序数 | 变体 | 类型 | 说明 |
|---|---|---|---|
1 |
response |
StreamSocket_SetTcpLinger_Response
|
|
2 |
err |
fuchsia.posix/Errno
|
StreamSocket_SetTcpMaxSegment_Result strict
在 fuchsia.posix.socket/socket.fidl 中定义
| 序数 | 变体 | 类型 | 说明 |
|---|---|---|---|
1 |
response |
StreamSocket_SetTcpMaxSegment_Response
|
|
2 |
err |
fuchsia.posix/Errno
|
StreamSocket_SetTcpNoDelay_Result strict
在 fuchsia.posix.socket/socket.fidl 中定义
| 序数 | 变体 | 类型 | 说明 |
|---|---|---|---|
1 |
response |
StreamSocket_SetTcpNoDelay_Response
|
|
2 |
err |
fuchsia.posix/Errno
|
StreamSocket_SetTcpQuickAck_Result strict
在 fuchsia.posix.socket/socket.fidl 中定义
| 序数 | 变体 | 类型 | 说明 |
|---|---|---|---|
1 |
response |
StreamSocket_SetTcpQuickAck_Response
|
|
2 |
err |
fuchsia.posix/Errno
|
StreamSocket_SetTcpSynCount_Result strict
在 fuchsia.posix.socket/socket.fidl 中定义
| 序数 | 变体 | 类型 | 说明 |
|---|---|---|---|
1 |
response |
StreamSocket_SetTcpSynCount_Response
|
|
2 |
err |
fuchsia.posix/Errno
|
StreamSocket_SetTcpUserTimeout_Result strict
在 fuchsia.posix.socket/socket.fidl 中定义
| 序数 | 变体 | 类型 | 说明 |
|---|---|---|---|
1 |
response |
StreamSocket_SetTcpUserTimeout_Response
|
|
2 |
err |
fuchsia.posix/Errno
|
StreamSocket_SetTcpWindowClamp_Result strict
在 fuchsia.posix.socket/socket.fidl 中定义
| 序数 | 变体 | 类型 | 说明 |
|---|---|---|---|
1 |
response |
StreamSocket_SetTcpWindowClamp_Response
|
|
2 |
err |
fuchsia.posix/Errno
|
SynchronousDatagramSocket_RecvMsg_Result strict
在 fuchsia.posix.socket/socket.fidl 中定义
| 序数 | 变体 | 类型 | 说明 |
|---|---|---|---|
1 |
response |
SynchronousDatagramSocket_RecvMsg_Response
|
|
2 |
err |
fuchsia.posix/Errno
|
SynchronousDatagramSocket_SendMsg_Result strict
在 fuchsia.posix.socket/socket.fidl 中定义
| 序数 | 变体 | 类型 | 说明 |
|---|---|---|---|
1 |
response |
SynchronousDatagramSocket_SendMsg_Response
|
|
2 |
err |
fuchsia.posix/Errno
|
BITS
CmsgRequests 灵活
类型:uint32
在 fuchsia.posix.socket/socket.fidl 中定义
| 名称 | 值 | 说明 |
|---|---|---|
IP_TOS |
1 | 标识是否请求了 |
IP_TTL |
2 | 标识是否请求了 |
IPV6_TCLASS |
4 | 标识是否请求了 |
IPV6_HOPLIMIT |
8 | 标识是否请求了 |
IPV6_PKTINFO |
16 | 标识是否请求了 |
IP_RECVORIGDSTADDR |
32 | 标识是否请求了 新增:15
|
IP_PKTINFO |
64 | 标识是否请求了 添加:HEAD
|
InterfaceFlags 严格
类型:uint16
在 fuchsia.posix.socket/socket.fidl 中定义
表示 SIOCGIFFLAGS ioctl 操作返回的接口标志的位。这些位掩码旨在跟踪 C API 定义。例如,InterfaceFlags.UP 对应于 IFF_UP,依此类推。
| 名称 | 值 | 说明 |
|---|---|---|
UP |
1 | |
广播 |
2 | |
DEBUG |
4 | |
LOOPBACK |
8 | |
POINTTOPOINT |
16 | |
NOTRAILERS |
32 | |
正在运行 |
64 | |
NOARP |
128 | |
PROMISC |
256 | |
ALLMULTI |
512 | |
LEADER |
1024 | |
关注者 |
2048 | |
MULTICAST |
4096 | |
PORTSEL |
8192 | |
AUTOMEDIA |
16384 | |
动态 |
32768 |
RecvMsgFlags 严格执行
类型:uint16
在 fuchsia.posix.socket/socket.fidl 中定义
控制 RecvMsg 行为的标志。
| 名称 | 值 | 说明 |
|---|---|---|
PEEK |
2 | 从接收队列返回数据,而不从队列中移除数据。 等同于 |
SendMsgFlags strict
类型:uint16
在 fuchsia.posix.socket/socket.fidl 中定义
| 名称 | 值 | 说明 |
|---|---|---|
RESERVED |
32768 |
strict 关停模式
类型:uint16
在 fuchsia.posix.socket/socket.fidl 中定义
套接字关闭模式。
| 名称 | 值 | 说明 |
|---|---|---|
读取 |
1 | 关闭套接字读取端点。 |
写入 |
2 | 关闭套接字写入端点。 |
常量
| 名称 | 值 | 类型 | 说明 |
|---|---|---|---|
| FAST_UDP_WAIT_MANY_MAXIMUM_ITEMS |
63
|
uint32 |
限制 Netstack 向快速协议客户端返回的事件对数量的常量。 设置为 |
| 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 |
|
| 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 |
别名
| 名称 | 值 | 说明 |
|---|---|---|
| SharingDomainToken |
zx/Handle |
用于标识 SO_REUSEPORT 所用共享网域的令牌。 新增:30
|
| TcpCongestionControlState |
fuchsia.net.tcp/CongestionControlState |
TCP 拥塞控制状态机状态。 新增:31
|
| TcpInfo |
fuchsia.net.tcp/Info |
TCP 协议状态。 新增:31
|
| TcpState |
fuchsia.net.tcp/State |
TCP 状态机状态。 新增:29
|