[fidl] Regenerate Go bindings for fxbug.dev/81574
IsUnknown method semantic was reversed.
Bug: 81574
Change-Id: I5167b844b78c81c4aa6571bee7cdc77a3dbddc83
Reviewed-on: https://fuchsia-review.googlesource.com/c/third_party/go/+/566401
Reviewed-by: Tamir Duberstein <tamird@google.com>
Reviewed-by: Benjamin Prosnitz <bprosnitz@google.com>
Commit-Queue: Yifei Teng <yifeit@google.com>
Fuchsia-Auto-Submit: Yifei Teng <yifeit@google.com>
diff --git a/api/fuchsia.txt b/api/fuchsia.txt
index 5c0610b..455cb86 100644
--- a/api/fuchsia.txt
+++ b/api/fuchsia.txt
@@ -2236,10 +2236,10 @@
pkg syscall/zx/io, const OpenFlagNotDirectory uint32
pkg syscall/zx/io, const OpenFlagPosix = 16777216
pkg syscall/zx/io, const OpenFlagPosix uint32
-pkg syscall/zx/io, const OpenFlagPosixWritable = 134217728
-pkg syscall/zx/io, const OpenFlagPosixWritable uint32
pkg syscall/zx/io, const OpenFlagPosixExecutable = 268435456
pkg syscall/zx/io, const OpenFlagPosixExecutable uint32
+pkg syscall/zx/io, const OpenFlagPosixWritable = 134217728
+pkg syscall/zx/io, const OpenFlagPosixWritable uint32
pkg syscall/zx/io, const OpenFlagTruncate = 262144
pkg syscall/zx/io, const OpenFlagTruncate uint32
pkg syscall/zx/io, const OpenFlagsAllowedWithNodeReference = 46661632
@@ -5884,6 +5884,12 @@
pkg syscall/zx/posix/socket, const BaseSocketShutdown2ResultErr ideal-int
pkg syscall/zx/posix/socket, const BaseSocketShutdown2ResultResponse = 1
pkg syscall/zx/posix/socket, const BaseSocketShutdown2ResultResponse ideal-int
+pkg syscall/zx/posix/socket, const BaseSocketShutdownOrdinal = 4044373897869205777
+pkg syscall/zx/posix/socket, const BaseSocketShutdownOrdinal uint64
+pkg syscall/zx/posix/socket, const BaseSocketShutdownResultErr = 2
+pkg syscall/zx/posix/socket, const BaseSocketShutdownResultErr ideal-int
+pkg syscall/zx/posix/socket, const BaseSocketShutdownResultResponse = 1
+pkg syscall/zx/posix/socket, const BaseSocketShutdownResultResponse ideal-int
pkg syscall/zx/posix/socket, const BaseSocketSyncOrdinal = 1773723578397144345
pkg syscall/zx/posix/socket, const BaseSocketSyncOrdinal uint64
pkg syscall/zx/posix/socket, const DatagramSocketAddIpMembershipOrdinal = 4153706055039272864
@@ -6044,12 +6050,8 @@
pkg syscall/zx/posix/socket, const DatagramSocketSetTimestampOrdinal uint64
pkg syscall/zx/posix/socket, const DatagramSocketShutdown2Ordinal = 6328478384407213627
pkg syscall/zx/posix/socket, const DatagramSocketShutdown2Ordinal uint64
-pkg syscall/zx/posix/socket, const DatagramSocketShutdownOrdinal = 4350574647411923264
+pkg syscall/zx/posix/socket, const DatagramSocketShutdownOrdinal = 4044373897869205777
pkg syscall/zx/posix/socket, const DatagramSocketShutdownOrdinal uint64
-pkg syscall/zx/posix/socket, const DatagramSocketShutdownResultErr = 2
-pkg syscall/zx/posix/socket, const DatagramSocketShutdownResultErr ideal-int
-pkg syscall/zx/posix/socket, const DatagramSocketShutdownResultResponse = 1
-pkg syscall/zx/posix/socket, const DatagramSocketShutdownResultResponse ideal-int
pkg syscall/zx/posix/socket, const DatagramSocketSyncOrdinal = 1773723578397144345
pkg syscall/zx/posix/socket, const DatagramSocketSyncOrdinal uint64
pkg syscall/zx/posix/socket, const DomainIpv4 = 0
@@ -6464,6 +6466,8 @@
pkg syscall/zx/posix/socket, const StreamSocketSetTimestampOrdinal uint64
pkg syscall/zx/posix/socket, const StreamSocketShutdown2Ordinal = 6328478384407213627
pkg syscall/zx/posix/socket, const StreamSocketShutdown2Ordinal uint64
+pkg syscall/zx/posix/socket, const StreamSocketShutdownOrdinal = 4044373897869205777
+pkg syscall/zx/posix/socket, const StreamSocketShutdownOrdinal uint64
pkg syscall/zx/posix/socket, const StreamSocketSyncOrdinal = 1773723578397144345
pkg syscall/zx/posix/socket, const StreamSocketSyncOrdinal uint64
pkg syscall/zx/posix/socket, const TcpCongestionControlCubic = 2
@@ -6622,14 +6626,14 @@
pkg syscall/zx/posix/socket, func BaseSocketSetTimestampResultWithResponse(BaseSocketSetTimestampResponse) BaseSocketSetTimestampResult
pkg syscall/zx/posix/socket, func BaseSocketShutdown2ResultWithErr(posix.Errno) BaseSocketShutdown2Result
pkg syscall/zx/posix/socket, func BaseSocketShutdown2ResultWithResponse(BaseSocketShutdown2Response) BaseSocketShutdown2Result
+pkg syscall/zx/posix/socket, func BaseSocketShutdownResultWithErr(posix.Errno) BaseSocketShutdownResult
+pkg syscall/zx/posix/socket, func BaseSocketShutdownResultWithResponse(BaseSocketShutdownResponse) BaseSocketShutdownResult
pkg syscall/zx/posix/socket, func DatagramSocketGetInfoResultWithErr(posix.Errno) DatagramSocketGetInfoResult
pkg syscall/zx/posix/socket, func DatagramSocketGetInfoResultWithResponse(DatagramSocketGetInfoResponse) DatagramSocketGetInfoResult
pkg syscall/zx/posix/socket, func DatagramSocketRecvMsgResultWithErr(posix.Errno) DatagramSocketRecvMsgResult
pkg syscall/zx/posix/socket, func DatagramSocketRecvMsgResultWithResponse(DatagramSocketRecvMsgResponse) DatagramSocketRecvMsgResult
pkg syscall/zx/posix/socket, func DatagramSocketSendMsgResultWithErr(posix.Errno) DatagramSocketSendMsgResult
pkg syscall/zx/posix/socket, func DatagramSocketSendMsgResultWithResponse(DatagramSocketSendMsgResponse) DatagramSocketSendMsgResult
-pkg syscall/zx/posix/socket, func DatagramSocketShutdownResultWithErr(posix.Errno) DatagramSocketShutdownResult
-pkg syscall/zx/posix/socket, func DatagramSocketShutdownResultWithResponse(DatagramSocketShutdownResponse) DatagramSocketShutdownResult
pkg syscall/zx/posix/socket, func NewBaseSocketWithCtxInterfaceRequest() (BaseSocketWithCtxInterfaceRequest, *BaseSocketWithCtxInterface, error)
pkg syscall/zx/posix/socket, func NewDatagramSocketWithCtxInterfaceRequest() (DatagramSocketWithCtxInterfaceRequest, *DatagramSocketWithCtxInterface, error)
pkg syscall/zx/posix/socket, func NewProviderWithCtxInterfaceRequest() (ProviderWithCtxInterfaceRequest, *ProviderWithCtxInterface, error)
@@ -7010,6 +7014,11 @@
pkg syscall/zx/posix/socket, method (*BaseSocketShutdown2Result) SetErr(posix.Errno)
pkg syscall/zx/posix/socket, method (*BaseSocketShutdown2Result) SetResponse(BaseSocketShutdown2Response)
pkg syscall/zx/posix/socket, method (*BaseSocketShutdown2Result) Which() I_baseSocketShutdown2ResultTag
+pkg syscall/zx/posix/socket, method (*BaseSocketShutdownResponse) Marshaler() fidl.Marshaler
+pkg syscall/zx/posix/socket, method (*BaseSocketShutdownResult) Ordinal() uint64
+pkg syscall/zx/posix/socket, method (*BaseSocketShutdownResult) SetErr(posix.Errno)
+pkg syscall/zx/posix/socket, method (*BaseSocketShutdownResult) SetResponse(BaseSocketShutdownResponse)
+pkg syscall/zx/posix/socket, method (*BaseSocketShutdownResult) Which() I_baseSocketShutdownResultTag
pkg syscall/zx/posix/socket, method (*BaseSocketWithCtxInterface) AddIpMembership(context.Context, IpMulticastMembership) (BaseSocketAddIpMembershipResult, error)
pkg syscall/zx/posix/socket, method (*BaseSocketWithCtxInterface) AddIpv6Membership(context.Context, Ipv6MulticastMembership) (BaseSocketAddIpv6MembershipResult, error)
pkg syscall/zx/posix/socket, method (*BaseSocketWithCtxInterface) Bind(context.Context, net.SocketAddress) (BaseSocketBindResult, error)
@@ -7078,6 +7087,7 @@
pkg syscall/zx/posix/socket, method (*BaseSocketWithCtxInterface) SetReusePort(context.Context, bool) (BaseSocketSetReusePortResult, error)
pkg syscall/zx/posix/socket, method (*BaseSocketWithCtxInterface) SetSendBuffer(context.Context, uint64) (BaseSocketSetSendBufferResult, error)
pkg syscall/zx/posix/socket, method (*BaseSocketWithCtxInterface) SetTimestamp(context.Context, bool) (BaseSocketSetTimestampResult, error)
+pkg syscall/zx/posix/socket, method (*BaseSocketWithCtxInterface) Shutdown(context.Context, ShutdownMode) (BaseSocketShutdownResult, error)
pkg syscall/zx/posix/socket, method (*BaseSocketWithCtxInterface) Shutdown2(context.Context, ShutdownMode) (BaseSocketShutdown2Result, error)
pkg syscall/zx/posix/socket, method (*BaseSocketWithCtxInterface) Sync(context.Context) (int32, error)
pkg syscall/zx/posix/socket, method (*BaseSocketWithCtxInterfaceRequest) Handle() *zx.Handle
@@ -7101,11 +7111,6 @@
pkg syscall/zx/posix/socket, method (*DatagramSocketSendMsgResult) SetErr(posix.Errno)
pkg syscall/zx/posix/socket, method (*DatagramSocketSendMsgResult) SetResponse(DatagramSocketSendMsgResponse)
pkg syscall/zx/posix/socket, method (*DatagramSocketSendMsgResult) Which() I_datagramSocketSendMsgResultTag
-pkg syscall/zx/posix/socket, method (*DatagramSocketShutdownResponse) Marshaler() fidl.Marshaler
-pkg syscall/zx/posix/socket, method (*DatagramSocketShutdownResult) Ordinal() uint64
-pkg syscall/zx/posix/socket, method (*DatagramSocketShutdownResult) SetErr(posix.Errno)
-pkg syscall/zx/posix/socket, method (*DatagramSocketShutdownResult) SetResponse(DatagramSocketShutdownResponse)
-pkg syscall/zx/posix/socket, method (*DatagramSocketShutdownResult) Which() I_datagramSocketShutdownResultTag
pkg syscall/zx/posix/socket, method (*DatagramSocketWithCtxInterface) AddIpMembership(context.Context, IpMulticastMembership) (BaseSocketAddIpMembershipResult, error)
pkg syscall/zx/posix/socket, method (*DatagramSocketWithCtxInterface) AddIpv6Membership(context.Context, Ipv6MulticastMembership) (BaseSocketAddIpv6MembershipResult, error)
pkg syscall/zx/posix/socket, method (*DatagramSocketWithCtxInterface) Bind(context.Context, net.SocketAddress) (BaseSocketBindResult, error)
@@ -7177,7 +7182,7 @@
pkg syscall/zx/posix/socket, method (*DatagramSocketWithCtxInterface) SetReusePort(context.Context, bool) (BaseSocketSetReusePortResult, error)
pkg syscall/zx/posix/socket, method (*DatagramSocketWithCtxInterface) SetSendBuffer(context.Context, uint64) (BaseSocketSetSendBufferResult, error)
pkg syscall/zx/posix/socket, method (*DatagramSocketWithCtxInterface) SetTimestamp(context.Context, bool) (BaseSocketSetTimestampResult, error)
-pkg syscall/zx/posix/socket, method (*DatagramSocketWithCtxInterface) Shutdown(context.Context, ShutdownMode) (DatagramSocketShutdownResult, error)
+pkg syscall/zx/posix/socket, method (*DatagramSocketWithCtxInterface) Shutdown(context.Context, ShutdownMode) (BaseSocketShutdownResult, error)
pkg syscall/zx/posix/socket, method (*DatagramSocketWithCtxInterface) Shutdown2(context.Context, ShutdownMode) (BaseSocketShutdown2Result, error)
pkg syscall/zx/posix/socket, method (*DatagramSocketWithCtxInterface) Sync(context.Context) (int32, error)
pkg syscall/zx/posix/socket, method (*DatagramSocketWithCtxInterfaceRequest) Handle() *zx.Handle
@@ -7511,6 +7516,7 @@
pkg syscall/zx/posix/socket, method (*StreamSocketWithCtxInterface) SetTcpUserTimeout(context.Context, uint32) (StreamSocketSetTcpUserTimeoutResult, error)
pkg syscall/zx/posix/socket, method (*StreamSocketWithCtxInterface) SetTcpWindowClamp(context.Context, uint32) (StreamSocketSetTcpWindowClampResult, error)
pkg syscall/zx/posix/socket, method (*StreamSocketWithCtxInterface) SetTimestamp(context.Context, bool) (BaseSocketSetTimestampResult, error)
+pkg syscall/zx/posix/socket, method (*StreamSocketWithCtxInterface) Shutdown(context.Context, ShutdownMode) (BaseSocketShutdownResult, error)
pkg syscall/zx/posix/socket, method (*StreamSocketWithCtxInterface) Shutdown2(context.Context, ShutdownMode) (BaseSocketShutdown2Result, error)
pkg syscall/zx/posix/socket, method (*StreamSocketWithCtxInterface) Sync(context.Context) (int32, error)
pkg syscall/zx/posix/socket, method (*StreamSocketWithCtxInterfaceRequest) Handle() *zx.Handle
@@ -7947,7 +7953,12 @@
pkg syscall/zx/posix/socket, type BaseSocketShutdown2Result struct, Err posix.Errno
pkg syscall/zx/posix/socket, type BaseSocketShutdown2Result struct, Response BaseSocketShutdown2Response
pkg syscall/zx/posix/socket, type BaseSocketShutdown2Result struct, embedded I_baseSocketShutdown2ResultTag
-pkg syscall/zx/posix/socket, type BaseSocketWithCtx interface { AddIpMembership, AddIpv6Membership, Bind, Clone, Close, Connect, Describe, Disconnect, DropIpMembership, DropIpv6Membership, GetAcceptConn, GetAttr, GetBindToDevice, GetBroadcast, GetError, GetIpMulticastInterface, GetIpMulticastLoopback, GetIpMulticastTtl, GetIpPacketInfo, GetIpReceiveTypeOfService, GetIpTtl, GetIpTypeOfService, GetIpv6MulticastHops, GetIpv6MulticastInterface, GetIpv6MulticastLoopback, GetIpv6Only, GetIpv6ReceiveTrafficClass, GetIpv6TrafficClass, GetKeepAlive, GetLinger, GetNoCheck, GetOutOfBandInline, GetPeerName, GetReceiveBuffer, GetReuseAddress, GetReusePort, GetSendBuffer, GetSockName, GetTimestamp, NodeGetFlags, NodeSetFlags, SetAttr, SetBindToDevice, SetBroadcast, SetIpMulticastInterface, SetIpMulticastLoopback, SetIpMulticastTtl, SetIpPacketInfo, SetIpReceiveTypeOfService, SetIpTtl, SetIpTypeOfService, SetIpv6MulticastHops, SetIpv6MulticastInterface, SetIpv6MulticastLoopback, SetIpv6Only, SetIpv6ReceiveTrafficClass, SetIpv6TrafficClass, SetKeepAlive, SetLinger, SetNoCheck, SetOutOfBandInline, SetReceiveBuffer, SetReuseAddress, SetReusePort, SetSendBuffer, SetTimestamp, Shutdown2, Sync }
+pkg syscall/zx/posix/socket, type BaseSocketShutdownResponse struct
+pkg syscall/zx/posix/socket, type BaseSocketShutdownResult struct
+pkg syscall/zx/posix/socket, type BaseSocketShutdownResult struct, Err posix.Errno
+pkg syscall/zx/posix/socket, type BaseSocketShutdownResult struct, Response BaseSocketShutdownResponse
+pkg syscall/zx/posix/socket, type BaseSocketShutdownResult struct, embedded I_baseSocketShutdownResultTag
+pkg syscall/zx/posix/socket, type BaseSocketWithCtx interface { AddIpMembership, AddIpv6Membership, Bind, Clone, Close, Connect, Describe, Disconnect, DropIpMembership, DropIpv6Membership, GetAcceptConn, GetAttr, GetBindToDevice, GetBroadcast, GetError, GetIpMulticastInterface, GetIpMulticastLoopback, GetIpMulticastTtl, GetIpPacketInfo, GetIpReceiveTypeOfService, GetIpTtl, GetIpTypeOfService, GetIpv6MulticastHops, GetIpv6MulticastInterface, GetIpv6MulticastLoopback, GetIpv6Only, GetIpv6ReceiveTrafficClass, GetIpv6TrafficClass, GetKeepAlive, GetLinger, GetNoCheck, GetOutOfBandInline, GetPeerName, GetReceiveBuffer, GetReuseAddress, GetReusePort, GetSendBuffer, GetSockName, GetTimestamp, NodeGetFlags, NodeSetFlags, SetAttr, SetBindToDevice, SetBroadcast, SetIpMulticastInterface, SetIpMulticastLoopback, SetIpMulticastTtl, SetIpPacketInfo, SetIpReceiveTypeOfService, SetIpTtl, SetIpTypeOfService, SetIpv6MulticastHops, SetIpv6MulticastInterface, SetIpv6MulticastLoopback, SetIpv6Only, SetIpv6ReceiveTrafficClass, SetIpv6TrafficClass, SetKeepAlive, SetLinger, SetNoCheck, SetOutOfBandInline, SetReceiveBuffer, SetReuseAddress, SetReusePort, SetSendBuffer, SetTimestamp, Shutdown, Shutdown2, Sync }
pkg syscall/zx/posix/socket, type BaseSocketWithCtx interface, AddIpMembership(context.Context, IpMulticastMembership) (BaseSocketAddIpMembershipResult, error)
pkg syscall/zx/posix/socket, type BaseSocketWithCtx interface, AddIpv6Membership(context.Context, Ipv6MulticastMembership) (BaseSocketAddIpv6MembershipResult, error)
pkg syscall/zx/posix/socket, type BaseSocketWithCtx interface, Bind(context.Context, net.SocketAddress) (BaseSocketBindResult, error)
@@ -8014,6 +8025,7 @@
pkg syscall/zx/posix/socket, type BaseSocketWithCtx interface, SetReusePort(context.Context, bool) (BaseSocketSetReusePortResult, error)
pkg syscall/zx/posix/socket, type BaseSocketWithCtx interface, SetSendBuffer(context.Context, uint64) (BaseSocketSetSendBufferResult, error)
pkg syscall/zx/posix/socket, type BaseSocketWithCtx interface, SetTimestamp(context.Context, bool) (BaseSocketSetTimestampResult, error)
+pkg syscall/zx/posix/socket, type BaseSocketWithCtx interface, Shutdown(context.Context, ShutdownMode) (BaseSocketShutdownResult, error)
pkg syscall/zx/posix/socket, type BaseSocketWithCtx interface, Shutdown2(context.Context, ShutdownMode) (BaseSocketShutdown2Result, error)
pkg syscall/zx/posix/socket, type BaseSocketWithCtx interface, Sync(context.Context) (int32, error)
pkg syscall/zx/posix/socket, type BaseSocketWithCtxInterface struct
@@ -8048,11 +8060,6 @@
pkg syscall/zx/posix/socket, type DatagramSocketSendMsgResult struct, Err posix.Errno
pkg syscall/zx/posix/socket, type DatagramSocketSendMsgResult struct, Response DatagramSocketSendMsgResponse
pkg syscall/zx/posix/socket, type DatagramSocketSendMsgResult struct, embedded I_datagramSocketSendMsgResultTag
-pkg syscall/zx/posix/socket, type DatagramSocketShutdownResponse struct
-pkg syscall/zx/posix/socket, type DatagramSocketShutdownResult struct
-pkg syscall/zx/posix/socket, type DatagramSocketShutdownResult struct, Err posix.Errno
-pkg syscall/zx/posix/socket, type DatagramSocketShutdownResult struct, Response DatagramSocketShutdownResponse
-pkg syscall/zx/posix/socket, type DatagramSocketShutdownResult struct, embedded I_datagramSocketShutdownResultTag
pkg syscall/zx/posix/socket, type DatagramSocketWithCtx interface { AddIpMembership, AddIpv6Membership, Bind, Clone, Close, Connect, Describe, Disconnect, DropIpMembership, DropIpv6Membership, GetAcceptConn, GetAttr, GetBindToDevice, GetBroadcast, GetError, GetInfo, GetIpMulticastInterface, GetIpMulticastLoopback, GetIpMulticastTtl, GetIpPacketInfo, GetIpReceiveTypeOfService, GetIpTtl, GetIpTypeOfService, GetIpv6MulticastHops, GetIpv6MulticastInterface, GetIpv6MulticastLoopback, GetIpv6Only, GetIpv6ReceiveTrafficClass, GetIpv6TrafficClass, GetKeepAlive, GetLinger, GetNoCheck, GetOutOfBandInline, GetPeerName, GetReceiveBuffer, GetReuseAddress, GetReusePort, GetSendBuffer, GetSockName, GetTimestamp, NodeGetFlags, NodeSetFlags, RecvMsg, SendMsg, SetAttr, SetBindToDevice, SetBroadcast, SetIpMulticastInterface, SetIpMulticastLoopback, SetIpMulticastTtl, SetIpPacketInfo, SetIpReceiveTypeOfService, SetIpTtl, SetIpTypeOfService, SetIpv6MulticastHops, SetIpv6MulticastInterface, SetIpv6MulticastLoopback, SetIpv6Only, SetIpv6ReceiveTrafficClass, SetIpv6TrafficClass, SetKeepAlive, SetLinger, SetNoCheck, SetOutOfBandInline, SetReceiveBuffer, SetReuseAddress, SetReusePort, SetSendBuffer, SetTimestamp, Shutdown, Shutdown2, Sync }
pkg syscall/zx/posix/socket, type DatagramSocketWithCtx interface, AddIpMembership(context.Context, IpMulticastMembership) (BaseSocketAddIpMembershipResult, error)
pkg syscall/zx/posix/socket, type DatagramSocketWithCtx interface, AddIpv6Membership(context.Context, Ipv6MulticastMembership) (BaseSocketAddIpv6MembershipResult, error)
@@ -8123,7 +8130,7 @@
pkg syscall/zx/posix/socket, type DatagramSocketWithCtx interface, SetReusePort(context.Context, bool) (BaseSocketSetReusePortResult, error)
pkg syscall/zx/posix/socket, type DatagramSocketWithCtx interface, SetSendBuffer(context.Context, uint64) (BaseSocketSetSendBufferResult, error)
pkg syscall/zx/posix/socket, type DatagramSocketWithCtx interface, SetTimestamp(context.Context, bool) (BaseSocketSetTimestampResult, error)
-pkg syscall/zx/posix/socket, type DatagramSocketWithCtx interface, Shutdown(context.Context, ShutdownMode) (DatagramSocketShutdownResult, error)
+pkg syscall/zx/posix/socket, type DatagramSocketWithCtx interface, Shutdown(context.Context, ShutdownMode) (BaseSocketShutdownResult, error)
pkg syscall/zx/posix/socket, type DatagramSocketWithCtx interface, Shutdown2(context.Context, ShutdownMode) (BaseSocketShutdown2Result, error)
pkg syscall/zx/posix/socket, type DatagramSocketWithCtx interface, Sync(context.Context) (int32, error)
pkg syscall/zx/posix/socket, type DatagramSocketWithCtxInterface struct
@@ -8195,10 +8202,10 @@
pkg syscall/zx/posix/socket, type I_baseSocketSetSendBufferResultTag uint64
pkg syscall/zx/posix/socket, type I_baseSocketSetTimestampResultTag uint64
pkg syscall/zx/posix/socket, type I_baseSocketShutdown2ResultTag uint64
+pkg syscall/zx/posix/socket, type I_baseSocketShutdownResultTag uint64
pkg syscall/zx/posix/socket, type I_datagramSocketGetInfoResultTag uint64
pkg syscall/zx/posix/socket, type I_datagramSocketRecvMsgResultTag uint64
pkg syscall/zx/posix/socket, type I_datagramSocketSendMsgResultTag uint64
-pkg syscall/zx/posix/socket, type I_datagramSocketShutdownResultTag uint64
pkg syscall/zx/posix/socket, type I_optionalUint32Tag uint64
pkg syscall/zx/posix/socket, type I_optionalUint8Tag uint64
pkg syscall/zx/posix/socket, type I_providerDatagramSocketResultTag uint64
@@ -8488,7 +8495,7 @@
pkg syscall/zx/posix/socket, type StreamSocketSetTcpWindowClampResult struct, Err posix.Errno
pkg syscall/zx/posix/socket, type StreamSocketSetTcpWindowClampResult struct, Response StreamSocketSetTcpWindowClampResponse
pkg syscall/zx/posix/socket, type StreamSocketSetTcpWindowClampResult struct, embedded I_streamSocketSetTcpWindowClampResultTag
-pkg syscall/zx/posix/socket, type StreamSocketWithCtx interface { Accept, AddIpMembership, AddIpv6Membership, Bind, Clone, Close, Connect, Describe, Disconnect, DropIpMembership, DropIpv6Membership, GetAcceptConn, GetAttr, GetBindToDevice, GetBroadcast, GetError, GetInfo, GetIpMulticastInterface, GetIpMulticastLoopback, GetIpMulticastTtl, GetIpPacketInfo, GetIpReceiveTypeOfService, GetIpTtl, GetIpTypeOfService, GetIpv6MulticastHops, GetIpv6MulticastInterface, GetIpv6MulticastLoopback, GetIpv6Only, GetIpv6ReceiveTrafficClass, GetIpv6TrafficClass, GetKeepAlive, GetLinger, GetNoCheck, GetOutOfBandInline, GetPeerName, GetReceiveBuffer, GetReuseAddress, GetReusePort, GetSendBuffer, GetSockName, GetTcpCongestion, GetTcpCork, GetTcpDeferAccept, GetTcpInfo, GetTcpKeepAliveCount, GetTcpKeepAliveIdle, GetTcpKeepAliveInterval, GetTcpLinger, GetTcpMaxSegment, GetTcpNoDelay, GetTcpQuickAck, GetTcpSynCount, GetTcpUserTimeout, GetTcpWindowClamp, GetTimestamp, Listen, NodeGetFlags, NodeSetFlags, SetAttr, SetBindToDevice, SetBroadcast, SetIpMulticastInterface, SetIpMulticastLoopback, SetIpMulticastTtl, SetIpPacketInfo, SetIpReceiveTypeOfService, SetIpTtl, SetIpTypeOfService, SetIpv6MulticastHops, SetIpv6MulticastInterface, SetIpv6MulticastLoopback, SetIpv6Only, SetIpv6ReceiveTrafficClass, SetIpv6TrafficClass, SetKeepAlive, SetLinger, SetNoCheck, SetOutOfBandInline, SetReceiveBuffer, SetReuseAddress, SetReusePort, SetSendBuffer, SetTcpCongestion, SetTcpCork, SetTcpDeferAccept, SetTcpKeepAliveCount, SetTcpKeepAliveIdle, SetTcpKeepAliveInterval, SetTcpLinger, SetTcpMaxSegment, SetTcpNoDelay, SetTcpQuickAck, SetTcpSynCount, SetTcpUserTimeout, SetTcpWindowClamp, SetTimestamp, Shutdown2, Sync }
+pkg syscall/zx/posix/socket, type StreamSocketWithCtx interface { Accept, AddIpMembership, AddIpv6Membership, Bind, Clone, Close, Connect, Describe, Disconnect, DropIpMembership, DropIpv6Membership, GetAcceptConn, GetAttr, GetBindToDevice, GetBroadcast, GetError, GetInfo, GetIpMulticastInterface, GetIpMulticastLoopback, GetIpMulticastTtl, GetIpPacketInfo, GetIpReceiveTypeOfService, GetIpTtl, GetIpTypeOfService, GetIpv6MulticastHops, GetIpv6MulticastInterface, GetIpv6MulticastLoopback, GetIpv6Only, GetIpv6ReceiveTrafficClass, GetIpv6TrafficClass, GetKeepAlive, GetLinger, GetNoCheck, GetOutOfBandInline, GetPeerName, GetReceiveBuffer, GetReuseAddress, GetReusePort, GetSendBuffer, GetSockName, GetTcpCongestion, GetTcpCork, GetTcpDeferAccept, GetTcpInfo, GetTcpKeepAliveCount, GetTcpKeepAliveIdle, GetTcpKeepAliveInterval, GetTcpLinger, GetTcpMaxSegment, GetTcpNoDelay, GetTcpQuickAck, GetTcpSynCount, GetTcpUserTimeout, GetTcpWindowClamp, GetTimestamp, Listen, NodeGetFlags, NodeSetFlags, SetAttr, SetBindToDevice, SetBroadcast, SetIpMulticastInterface, SetIpMulticastLoopback, SetIpMulticastTtl, SetIpPacketInfo, SetIpReceiveTypeOfService, SetIpTtl, SetIpTypeOfService, SetIpv6MulticastHops, SetIpv6MulticastInterface, SetIpv6MulticastLoopback, SetIpv6Only, SetIpv6ReceiveTrafficClass, SetIpv6TrafficClass, SetKeepAlive, SetLinger, SetNoCheck, SetOutOfBandInline, SetReceiveBuffer, SetReuseAddress, SetReusePort, SetSendBuffer, SetTcpCongestion, SetTcpCork, SetTcpDeferAccept, SetTcpKeepAliveCount, SetTcpKeepAliveIdle, SetTcpKeepAliveInterval, SetTcpLinger, SetTcpMaxSegment, SetTcpNoDelay, SetTcpQuickAck, SetTcpSynCount, SetTcpUserTimeout, SetTcpWindowClamp, SetTimestamp, Shutdown, Shutdown2, Sync }
pkg syscall/zx/posix/socket, type StreamSocketWithCtx interface, Accept(context.Context, bool) (StreamSocketAcceptResult, error)
pkg syscall/zx/posix/socket, type StreamSocketWithCtx interface, AddIpMembership(context.Context, IpMulticastMembership) (BaseSocketAddIpMembershipResult, error)
pkg syscall/zx/posix/socket, type StreamSocketWithCtx interface, AddIpv6Membership(context.Context, Ipv6MulticastMembership) (BaseSocketAddIpv6MembershipResult, error)
@@ -8585,6 +8592,7 @@
pkg syscall/zx/posix/socket, type StreamSocketWithCtx interface, SetTcpUserTimeout(context.Context, uint32) (StreamSocketSetTcpUserTimeoutResult, error)
pkg syscall/zx/posix/socket, type StreamSocketWithCtx interface, SetTcpWindowClamp(context.Context, uint32) (StreamSocketSetTcpWindowClampResult, error)
pkg syscall/zx/posix/socket, type StreamSocketWithCtx interface, SetTimestamp(context.Context, bool) (BaseSocketSetTimestampResult, error)
+pkg syscall/zx/posix/socket, type StreamSocketWithCtx interface, Shutdown(context.Context, ShutdownMode) (BaseSocketShutdownResult, error)
pkg syscall/zx/posix/socket, type StreamSocketWithCtx interface, Shutdown2(context.Context, ShutdownMode) (BaseSocketShutdown2Result, error)
pkg syscall/zx/posix/socket, type StreamSocketWithCtx interface, Sync(context.Context) (int32, error)
pkg syscall/zx/posix/socket, type StreamSocketWithCtxInterface struct
diff --git a/src/syscall/zx/diagnostics/impl.go b/src/syscall/zx/diagnostics/impl.go
index 41e7894..f78df577d 100644
--- a/src/syscall/zx/diagnostics/impl.go
+++ b/src/syscall/zx/diagnostics/impl.go
@@ -54,11 +54,11 @@
func (x Format) IsUnknown() bool {
switch x {
case 1:
- return true
- case 2:
- return true
- default:
return false
+ case 2:
+ return false
+ default:
+ return true
}
}
@@ -95,9 +95,9 @@
func (x ReaderError) IsUnknown() bool {
switch x {
case 1:
- return true
- default:
return false
+ default:
+ return true
}
}
@@ -145,13 +145,13 @@
func (x StreamMode) IsUnknown() bool {
switch x {
case 1:
- return true
- case 2:
- return true
- case 3:
- return true
- default:
return false
+ case 2:
+ return false
+ case 3:
+ return false
+ default:
+ return true
}
}
@@ -198,13 +198,13 @@
func (x DataType) IsUnknown() bool {
switch x {
case 1:
- return true
- case 2:
- return true
- case 3:
- return true
- default:
return false
+ case 2:
+ return false
+ case 3:
+ return false
+ default:
+ return true
}
}
@@ -264,19 +264,19 @@
func (x Severity) IsUnknown() bool {
switch x {
case 16:
- return true
- case 32:
- return true
- case 48:
- return true
- case 64:
- return true
- case 80:
- return true
- case 96:
- return true
- default:
return false
+ case 32:
+ return false
+ case 48:
+ return false
+ case 64:
+ return false
+ case 80:
+ return false
+ case 96:
+ return false
+ default:
+ return true
}
}
diff --git a/src/syscall/zx/fidl/internal/bindingstest/impl.go b/src/syscall/zx/fidl/internal/bindingstest/impl.go
index 4e04d58..501e6ed 100644
--- a/src/syscall/zx/fidl/internal/bindingstest/impl.go
+++ b/src/syscall/zx/fidl/internal/bindingstest/impl.go
@@ -38,11 +38,11 @@
func (x TestUcharEnum) IsUnknown() bool {
switch x {
case 1:
- return true
- case 2:
- return true
- default:
return false
+ case 2:
+ return false
+ default:
+ return true
}
}
diff --git a/src/syscall/zx/hardware/network/impl.go b/src/syscall/zx/hardware/network/impl.go
index e7f333e..5bff554 100644
--- a/src/syscall/zx/hardware/network/impl.go
+++ b/src/syscall/zx/hardware/network/impl.go
@@ -64,13 +64,13 @@
func (x FrameType) IsUnknown() bool {
switch x {
case 1:
- return true
- case 2:
- return true
- case 3:
- return true
- default:
return false
+ case 2:
+ return false
+ case 3:
+ return false
+ default:
+ return true
}
}
@@ -110,9 +110,9 @@
func (x InfoType) IsUnknown() bool {
switch x {
case 0:
- return true
- default:
return false
+ default:
+ return true
}
}
@@ -163,15 +163,15 @@
func (x RxAcceleration) IsUnknown() bool {
switch x {
case 0:
- return true
- case 1:
- return true
- case 2:
- return true
- case 3:
- return true
- default:
return false
+ case 1:
+ return false
+ case 2:
+ return false
+ case 3:
+ return false
+ default:
+ return true
}
}
@@ -228,15 +228,15 @@
func (x TxAcceleration) IsUnknown() bool {
switch x {
case 0:
- return true
- case 1:
- return true
- case 2:
- return true
- case 3:
- return true
- default:
return false
+ case 1:
+ return false
+ case 2:
+ return false
+ case 3:
+ return false
+ default:
+ return true
}
}
@@ -287,13 +287,13 @@
func (x MacFilterMode) IsUnknown() bool {
switch x {
case 0:
- return true
- case 1:
- return true
- case 2:
- return true
- default:
return false
+ case 1:
+ return false
+ case 2:
+ return false
+ default:
+ return true
}
}
@@ -339,17 +339,17 @@
func (x DeviceClass) IsUnknown() bool {
switch x {
case 0:
- return true
- case 1:
- return true
- case 2:
- return true
- case 3:
- return true
- case 4:
- return true
- default:
return false
+ case 1:
+ return false
+ case 2:
+ return false
+ case 3:
+ return false
+ case 4:
+ return false
+ default:
+ return true
}
}
diff --git a/src/syscall/zx/io/impl.go b/src/syscall/zx/io/impl.go
index 65f37f0..b56113e 100644
--- a/src/syscall/zx/io/impl.go
+++ b/src/syscall/zx/io/impl.go
@@ -223,13 +223,13 @@
func (x SeekOrigin) IsUnknown() bool {
switch x {
case 0:
- return true
- case 1:
- return true
- case 2:
- return true
- default:
return false
+ case 1:
+ return false
+ case 2:
+ return false
+ default:
+ return true
}
}
diff --git a/src/syscall/zx/io2/impl.go b/src/syscall/zx/io2/impl.go
index 27a45d4..c6f5b7e 100644
--- a/src/syscall/zx/io2/impl.go
+++ b/src/syscall/zx/io2/impl.go
@@ -82,11 +82,11 @@
func (x RightsResolution) IsUnknown() bool {
switch x {
case 1:
- return true
- case 2:
- return true
- default:
return false
+ case 2:
+ return false
+ default:
+ return true
}
}
@@ -141,15 +141,15 @@
func (x OpenMode) IsUnknown() bool {
switch x {
case 1:
- return true
- case 2:
- return true
- case 3:
- return true
- case 268435456:
- return true
- default:
return false
+ case 2:
+ return false
+ case 3:
+ return false
+ case 268435456:
+ return false
+ default:
+ return true
}
}
@@ -205,13 +205,13 @@
func (x SeekOrigin) IsUnknown() bool {
switch x {
case 0:
- return true
- case 1:
- return true
- case 2:
- return true
- default:
return false
+ case 1:
+ return false
+ case 2:
+ return false
+ default:
+ return true
}
}
@@ -263,13 +263,13 @@
func (x AdvisoryLockType) IsUnknown() bool {
switch x {
case 1:
- return true
- case 2:
- return true
- case 3:
- return true
- default:
return false
+ case 2:
+ return false
+ case 3:
+ return false
+ default:
+ return true
}
}
diff --git a/src/syscall/zx/logger/impl.go b/src/syscall/zx/logger/impl.go
index 7c01615..43a9ed3 100644
--- a/src/syscall/zx/logger/impl.go
+++ b/src/syscall/zx/logger/impl.go
@@ -89,33 +89,33 @@
func (x LogLevelFilter) IsUnknown() bool {
switch x {
case -1:
- return true
- case 0:
- return true
- case 1:
- return true
- case 2:
- return true
- case 3:
- return true
- case -127:
- return true
- case 16:
- return true
- case 32:
- return true
- case 48:
- return true
- case 64:
- return true
- case 80:
- return true
- case 96:
- return true
- case 127:
- return true
- default:
return false
+ case 0:
+ return false
+ case 1:
+ return false
+ case 2:
+ return false
+ case 3:
+ return false
+ case -127:
+ return false
+ case 16:
+ return false
+ case 32:
+ return false
+ case 48:
+ return false
+ case 64:
+ return false
+ case 80:
+ return false
+ case 96:
+ return false
+ case 127:
+ return false
+ default:
+ return true
}
}
diff --git a/src/syscall/zx/net/impl.go b/src/syscall/zx/net/impl.go
index d1732c8..87c5f22 100644
--- a/src/syscall/zx/net/impl.go
+++ b/src/syscall/zx/net/impl.go
@@ -53,15 +53,15 @@
func (x LookupError) IsUnknown() bool {
switch x {
case 1:
- return true
- case 2:
- return true
- case 3:
- return true
- case 4:
- return true
- default:
return false
+ case 2:
+ return false
+ case 3:
+ return false
+ case 4:
+ return false
+ default:
+ return true
}
}
@@ -103,11 +103,11 @@
func (x IpVersion) IsUnknown() bool {
switch x {
case 1:
- return true
- case 2:
- return true
- default:
return false
+ case 2:
+ return false
+ default:
+ return true
}
}
diff --git a/src/syscall/zx/net/name/impl.go b/src/syscall/zx/net/name/impl.go
index 0d44bde..4f8ac12 100644
--- a/src/syscall/zx/net/name/impl.go
+++ b/src/syscall/zx/net/name/impl.go
@@ -55,15 +55,15 @@
func (x LookupError) IsUnknown() bool {
switch x {
case 1:
- return true
- case 2:
- return true
- case 3:
- return true
- case 4:
- return true
- default:
return false
+ case 2:
+ return false
+ case 3:
+ return false
+ case 4:
+ return false
+ default:
+ return true
}
}
@@ -678,12 +678,12 @@
I_unknownData interface{}
// Include IPv4 results.
//
- // If absent, interpreted as false.
+ // If not set, interpreted as false.
Ipv4Lookup bool `fidl_ordinal:"1"`
Ipv4LookupPresent bool
// Include IPv6 results.
//
- // If absent, interpreted as false.
+ // If not set, interpreted as false.
Ipv6Lookup bool `fidl_ordinal:"2"`
Ipv6LookupPresent bool
// Sort addresses in order of preference.
@@ -691,7 +691,7 @@
// It true, Addresses are sorted according to destination address selection described in [RFC
// 6724 Section 6](https://tools.ietf.org/html/rfc6724#section-6).
//
- // If absent, interpreted as false.
+ // If not set, interpreted as false.
SortAddresses bool `fidl_ordinal:"3"`
SortAddressesPresent bool
}
diff --git a/src/syscall/zx/net/stack/impl.go b/src/syscall/zx/net/stack/impl.go
index 796d4a2..08a6214 100644
--- a/src/syscall/zx/net/stack/impl.go
+++ b/src/syscall/zx/net/stack/impl.go
@@ -42,11 +42,11 @@
func (x PhysicalStatus) IsUnknown() bool {
switch x {
case 1:
- return true
- case 2:
- return true
- default:
return false
+ case 2:
+ return false
+ default:
+ return true
}
}
@@ -87,11 +87,11 @@
func (x AdministrativeStatus) IsUnknown() bool {
switch x {
case 1:
- return true
- case 2:
- return true
- default:
return false
+ case 2:
+ return false
+ default:
+ return true
}
}
@@ -140,23 +140,23 @@
func (x Error) IsUnknown() bool {
switch x {
case 1:
- return true
- case 2:
- return true
- case 3:
- return true
- case 4:
- return true
- case 5:
- return true
- case 6:
- return true
- case 7:
- return true
- case 8:
- return true
- default:
return false
+ case 2:
+ return false
+ case 3:
+ return false
+ case 4:
+ return false
+ case 5:
+ return false
+ case 6:
+ return false
+ case 7:
+ return false
+ case 8:
+ return false
+ default:
+ return true
}
}
diff --git a/src/syscall/zx/posix/impl.go b/src/syscall/zx/posix/impl.go
index 0126297..c04dfd7 100644
--- a/src/syscall/zx/posix/impl.go
+++ b/src/syscall/zx/posix/impl.go
@@ -303,269 +303,269 @@
func (x Errno) IsUnknown() bool {
switch x {
case 1:
- return true
- case 2:
- return true
- case 3:
- return true
- case 4:
- return true
- case 5:
- return true
- case 6:
- return true
- case 7:
- return true
- case 8:
- return true
- case 9:
- return true
- case 10:
- return true
- case 11:
- return true
- case 12:
- return true
- case 13:
- return true
- case 14:
- return true
- case 15:
- return true
- case 16:
- return true
- case 17:
- return true
- case 18:
- return true
- case 19:
- return true
- case 20:
- return true
- case 21:
- return true
- case 22:
- return true
- case 23:
- return true
- case 24:
- return true
- case 25:
- return true
- case 26:
- return true
- case 27:
- return true
- case 28:
- return true
- case 29:
- return true
- case 30:
- return true
- case 31:
- return true
- case 32:
- return true
- case 33:
- return true
- case 34:
- return true
- case 35:
- return true
- case 36:
- return true
- case 37:
- return true
- case 38:
- return true
- case 39:
- return true
- case 40:
- return true
- case 42:
- return true
- case 43:
- return true
- case 44:
- return true
- case 45:
- return true
- case 46:
- return true
- case 47:
- return true
- case 48:
- return true
- case 49:
- return true
- case 50:
- return true
- case 51:
- return true
- case 52:
- return true
- case 53:
- return true
- case 54:
- return true
- case 55:
- return true
- case 56:
- return true
- case 57:
- return true
- case 59:
- return true
- case 60:
- return true
- case 61:
- return true
- case 62:
- return true
- case 63:
- return true
- case 64:
- return true
- case 65:
- return true
- case 66:
- return true
- case 67:
- return true
- case 68:
- return true
- case 69:
- return true
- case 70:
- return true
- case 71:
- return true
- case 72:
- return true
- case 73:
- return true
- case 74:
- return true
- case 75:
- return true
- case 76:
- return true
- case 77:
- return true
- case 78:
- return true
- case 79:
- return true
- case 80:
- return true
- case 81:
- return true
- case 82:
- return true
- case 83:
- return true
- case 84:
- return true
- case 85:
- return true
- case 86:
- return true
- case 87:
- return true
- case 88:
- return true
- case 89:
- return true
- case 90:
- return true
- case 91:
- return true
- case 92:
- return true
- case 93:
- return true
- case 94:
- return true
- case 95:
- return true
- case 96:
- return true
- case 97:
- return true
- case 98:
- return true
- case 99:
- return true
- case 100:
- return true
- case 101:
- return true
- case 102:
- return true
- case 103:
- return true
- case 104:
- return true
- case 105:
- return true
- case 106:
- return true
- case 107:
- return true
- case 108:
- return true
- case 109:
- return true
- case 110:
- return true
- case 111:
- return true
- case 112:
- return true
- case 113:
- return true
- case 114:
- return true
- case 115:
- return true
- case 116:
- return true
- case 117:
- return true
- case 118:
- return true
- case 119:
- return true
- case 120:
- return true
- case 121:
- return true
- case 122:
- return true
- case 123:
- return true
- case 124:
- return true
- case 125:
- return true
- case 126:
- return true
- case 127:
- return true
- case 128:
- return true
- case 129:
- return true
- case 130:
- return true
- case 131:
- return true
- case 132:
- return true
- case 133:
- return true
- default:
return false
+ case 2:
+ return false
+ case 3:
+ return false
+ case 4:
+ return false
+ case 5:
+ return false
+ case 6:
+ return false
+ case 7:
+ return false
+ case 8:
+ return false
+ case 9:
+ return false
+ case 10:
+ return false
+ case 11:
+ return false
+ case 12:
+ return false
+ case 13:
+ return false
+ case 14:
+ return false
+ case 15:
+ return false
+ case 16:
+ return false
+ case 17:
+ return false
+ case 18:
+ return false
+ case 19:
+ return false
+ case 20:
+ return false
+ case 21:
+ return false
+ case 22:
+ return false
+ case 23:
+ return false
+ case 24:
+ return false
+ case 25:
+ return false
+ case 26:
+ return false
+ case 27:
+ return false
+ case 28:
+ return false
+ case 29:
+ return false
+ case 30:
+ return false
+ case 31:
+ return false
+ case 32:
+ return false
+ case 33:
+ return false
+ case 34:
+ return false
+ case 35:
+ return false
+ case 36:
+ return false
+ case 37:
+ return false
+ case 38:
+ return false
+ case 39:
+ return false
+ case 40:
+ return false
+ case 42:
+ return false
+ case 43:
+ return false
+ case 44:
+ return false
+ case 45:
+ return false
+ case 46:
+ return false
+ case 47:
+ return false
+ case 48:
+ return false
+ case 49:
+ return false
+ case 50:
+ return false
+ case 51:
+ return false
+ case 52:
+ return false
+ case 53:
+ return false
+ case 54:
+ return false
+ case 55:
+ return false
+ case 56:
+ return false
+ case 57:
+ return false
+ case 59:
+ return false
+ case 60:
+ return false
+ case 61:
+ return false
+ case 62:
+ return false
+ case 63:
+ return false
+ case 64:
+ return false
+ case 65:
+ return false
+ case 66:
+ return false
+ case 67:
+ return false
+ case 68:
+ return false
+ case 69:
+ return false
+ case 70:
+ return false
+ case 71:
+ return false
+ case 72:
+ return false
+ case 73:
+ return false
+ case 74:
+ return false
+ case 75:
+ return false
+ case 76:
+ return false
+ case 77:
+ return false
+ case 78:
+ return false
+ case 79:
+ return false
+ case 80:
+ return false
+ case 81:
+ return false
+ case 82:
+ return false
+ case 83:
+ return false
+ case 84:
+ return false
+ case 85:
+ return false
+ case 86:
+ return false
+ case 87:
+ return false
+ case 88:
+ return false
+ case 89:
+ return false
+ case 90:
+ return false
+ case 91:
+ return false
+ case 92:
+ return false
+ case 93:
+ return false
+ case 94:
+ return false
+ case 95:
+ return false
+ case 96:
+ return false
+ case 97:
+ return false
+ case 98:
+ return false
+ case 99:
+ return false
+ case 100:
+ return false
+ case 101:
+ return false
+ case 102:
+ return false
+ case 103:
+ return false
+ case 104:
+ return false
+ case 105:
+ return false
+ case 106:
+ return false
+ case 107:
+ return false
+ case 108:
+ return false
+ case 109:
+ return false
+ case 110:
+ return false
+ case 111:
+ return false
+ case 112:
+ return false
+ case 113:
+ return false
+ case 114:
+ return false
+ case 115:
+ return false
+ case 116:
+ return false
+ case 117:
+ return false
+ case 118:
+ return false
+ case 119:
+ return false
+ case 120:
+ return false
+ case 121:
+ return false
+ case 122:
+ return false
+ case 123:
+ return false
+ case 124:
+ return false
+ case 125:
+ return false
+ case 126:
+ return false
+ case 127:
+ return false
+ case 128:
+ return false
+ case 129:
+ return false
+ case 130:
+ return false
+ case 131:
+ return false
+ case 132:
+ return false
+ case 133:
+ return false
+ default:
+ return true
}
}
diff --git a/src/syscall/zx/posix/socket/impl.go b/src/syscall/zx/posix/socket/impl.go
index 3860759..0acb496 100644
--- a/src/syscall/zx/posix/socket/impl.go
+++ b/src/syscall/zx/posix/socket/impl.go
@@ -38,11 +38,11 @@
func (x TcpCongestionControl) IsUnknown() bool {
switch x {
case 1:
- return true
- case 2:
- return true
- default:
return false
+ case 2:
+ return false
+ default:
+ return true
}
}
@@ -98,29 +98,29 @@
func (x TcpState) IsUnknown() bool {
switch x {
case 1:
- return true
- case 2:
- return true
- case 3:
- return true
- case 4:
- return true
- case 5:
- return true
- case 6:
- return true
- case 7:
- return true
- case 8:
- return true
- case 9:
- return true
- case 10:
- return true
- case 11:
- return true
- default:
return false
+ case 2:
+ return false
+ case 3:
+ return false
+ case 4:
+ return false
+ case 5:
+ return false
+ case 6:
+ return false
+ case 7:
+ return false
+ case 8:
+ return false
+ case 9:
+ return false
+ case 10:
+ return false
+ case 11:
+ return false
+ default:
+ return true
}
}
@@ -182,17 +182,17 @@
func (x TcpCongestionControlState) IsUnknown() bool {
switch x {
case 0:
- return true
- case 1:
- return true
- case 2:
- return true
- case 3:
- return true
- case 4:
- return true
- default:
return false
+ case 1:
+ return false
+ case 2:
+ return false
+ case 3:
+ return false
+ case 4:
+ return false
+ default:
+ return true
}
}
@@ -242,11 +242,11 @@
func (x Domain) IsUnknown() bool {
switch x {
case 0:
- return true
- case 1:
- return true
- default:
return false
+ case 1:
+ return false
+ default:
+ return true
}
}
@@ -299,11 +299,11 @@
func (x DatagramSocketProtocol) IsUnknown() bool {
switch x {
case 1:
- return true
- case 2:
- return true
- default:
return false
+ case 2:
+ return false
+ default:
+ return true
}
}
@@ -347,9 +347,9 @@
func (x StreamSocketProtocol) IsUnknown() bool {
switch x {
case 0:
- return true
- default:
return false
+ default:
+ return true
}
}
@@ -654,6 +654,16 @@
return _mBaseSocketGetPeerNameResponse
}
+type BaseSocketShutdownResponse struct {
+ _ struct{} `fidl:"s" fidl_size_v1:"1" fidl_alignment_v1:"1" fidl_size_v2:"1" fidl_alignment_v2:"1"`
+}
+
+var _mBaseSocketShutdownResponse = _bindings.CreateLazyMarshaler(BaseSocketShutdownResponse{})
+
+func (msg *BaseSocketShutdownResponse) Marshaler() _bindings.Marshaler {
+ return _mBaseSocketShutdownResponse
+}
+
type BaseSocketShutdown2Response struct {
_ struct{} `fidl:"s" fidl_size_v1:"1" fidl_alignment_v1:"1" fidl_size_v2:"1" fidl_alignment_v2:"1"`
}
@@ -1230,16 +1240,6 @@
return _mBaseSocketGetIpv6TrafficClassResponse
}
-type DatagramSocketShutdownResponse struct {
- _ struct{} `fidl:"s" fidl_size_v1:"1" fidl_alignment_v1:"1" fidl_size_v2:"1" fidl_alignment_v2:"1"`
-}
-
-var _mDatagramSocketShutdownResponse = _bindings.CreateLazyMarshaler(DatagramSocketShutdownResponse{})
-
-func (msg *DatagramSocketShutdownResponse) Marshaler() _bindings.Marshaler {
- return _mDatagramSocketShutdownResponse
-}
-
type DatagramSocketRecvMsgResponse struct {
_ struct{} `fidl:"s" fidl_size_v1:"64" fidl_alignment_v1:"8" fidl_size_v2:"56" fidl_alignment_v2:"8"`
Addr *fuchsianet.SocketAddress `fidl_offset_v1:"0" fidl_offset_v2:"0"`
@@ -1895,6 +1895,28 @@
return _mbaseSocketWithCtxGetPeerNameResponse
}
+type baseSocketWithCtxShutdownRequest struct {
+ _ struct{} `fidl:"s" fidl_size_v1:"8" fidl_alignment_v1:"8" fidl_size_v2:"8" fidl_alignment_v2:"8"`
+ Mode ShutdownMode `fidl_offset_v1:"0" fidl_offset_v2:"0"`
+}
+
+var _mbaseSocketWithCtxShutdownRequest = _bindings.CreateLazyMarshaler(baseSocketWithCtxShutdownRequest{})
+
+func (msg *baseSocketWithCtxShutdownRequest) Marshaler() _bindings.Marshaler {
+ return _mbaseSocketWithCtxShutdownRequest
+}
+
+type baseSocketWithCtxShutdownResponse struct {
+ _ struct{} `fidl:"s" fidl_size_v1:"24" fidl_alignment_v1:"8" fidl_size_v2:"16" fidl_alignment_v2:"8"`
+ Result BaseSocketShutdownResult `fidl_offset_v1:"0" fidl_offset_v2:"0"`
+}
+
+var _mbaseSocketWithCtxShutdownResponse = _bindings.CreateLazyMarshaler(baseSocketWithCtxShutdownResponse{})
+
+func (msg *baseSocketWithCtxShutdownResponse) Marshaler() _bindings.Marshaler {
+ return _mbaseSocketWithCtxShutdownResponse
+}
+
type baseSocketWithCtxShutdown2Request struct {
_ struct{} `fidl:"s" fidl_size_v1:"8" fidl_alignment_v1:"8" fidl_size_v2:"8" fidl_alignment_v2:"8"`
Mode ShutdownMode `fidl_offset_v1:"0" fidl_offset_v2:"0"`
@@ -3024,6 +3046,28 @@
return _mdatagramSocketWithCtxGetPeerNameResponse
}
+type datagramSocketWithCtxShutdownRequest struct {
+ _ struct{} `fidl:"s" fidl_size_v1:"8" fidl_alignment_v1:"8" fidl_size_v2:"8" fidl_alignment_v2:"8"`
+ Mode ShutdownMode `fidl_offset_v1:"0" fidl_offset_v2:"0"`
+}
+
+var _mdatagramSocketWithCtxShutdownRequest = _bindings.CreateLazyMarshaler(datagramSocketWithCtxShutdownRequest{})
+
+func (msg *datagramSocketWithCtxShutdownRequest) Marshaler() _bindings.Marshaler {
+ return _mdatagramSocketWithCtxShutdownRequest
+}
+
+type datagramSocketWithCtxShutdownResponse struct {
+ _ struct{} `fidl:"s" fidl_size_v1:"24" fidl_alignment_v1:"8" fidl_size_v2:"16" fidl_alignment_v2:"8"`
+ Result BaseSocketShutdownResult `fidl_offset_v1:"0" fidl_offset_v2:"0"`
+}
+
+var _mdatagramSocketWithCtxShutdownResponse = _bindings.CreateLazyMarshaler(datagramSocketWithCtxShutdownResponse{})
+
+func (msg *datagramSocketWithCtxShutdownResponse) Marshaler() _bindings.Marshaler {
+ return _mdatagramSocketWithCtxShutdownResponse
+}
+
type datagramSocketWithCtxShutdown2Request struct {
_ struct{} `fidl:"s" fidl_size_v1:"8" fidl_alignment_v1:"8" fidl_size_v2:"8" fidl_alignment_v2:"8"`
Mode ShutdownMode `fidl_offset_v1:"0" fidl_offset_v2:"0"`
@@ -3950,28 +3994,6 @@
return _mdatagramSocketWithCtxGetIpv6TrafficClassResponse
}
-type datagramSocketWithCtxShutdownRequest struct {
- _ struct{} `fidl:"s" fidl_size_v1:"8" fidl_alignment_v1:"8" fidl_size_v2:"8" fidl_alignment_v2:"8"`
- Mode ShutdownMode `fidl_offset_v1:"0" fidl_offset_v2:"0"`
-}
-
-var _mdatagramSocketWithCtxShutdownRequest = _bindings.CreateLazyMarshaler(datagramSocketWithCtxShutdownRequest{})
-
-func (msg *datagramSocketWithCtxShutdownRequest) Marshaler() _bindings.Marshaler {
- return _mdatagramSocketWithCtxShutdownRequest
-}
-
-type datagramSocketWithCtxShutdownResponse struct {
- _ struct{} `fidl:"s" fidl_size_v1:"24" fidl_alignment_v1:"8" fidl_size_v2:"16" fidl_alignment_v2:"8"`
- Result DatagramSocketShutdownResult `fidl_offset_v1:"0" fidl_offset_v2:"0"`
-}
-
-var _mdatagramSocketWithCtxShutdownResponse = _bindings.CreateLazyMarshaler(datagramSocketWithCtxShutdownResponse{})
-
-func (msg *datagramSocketWithCtxShutdownResponse) Marshaler() _bindings.Marshaler {
- return _mdatagramSocketWithCtxShutdownResponse
-}
-
type datagramSocketWithCtxRecvMsgRequest struct {
_ struct{} `fidl:"s" fidl_size_v1:"16" fidl_alignment_v1:"8" fidl_size_v2:"16" fidl_alignment_v2:"8"`
WantAddr bool `fidl_offset_v1:"0" fidl_offset_v2:"0"`
@@ -4236,6 +4258,28 @@
return _mstreamSocketWithCtxGetPeerNameResponse
}
+type streamSocketWithCtxShutdownRequest struct {
+ _ struct{} `fidl:"s" fidl_size_v1:"8" fidl_alignment_v1:"8" fidl_size_v2:"8" fidl_alignment_v2:"8"`
+ Mode ShutdownMode `fidl_offset_v1:"0" fidl_offset_v2:"0"`
+}
+
+var _mstreamSocketWithCtxShutdownRequest = _bindings.CreateLazyMarshaler(streamSocketWithCtxShutdownRequest{})
+
+func (msg *streamSocketWithCtxShutdownRequest) Marshaler() _bindings.Marshaler {
+ return _mstreamSocketWithCtxShutdownRequest
+}
+
+type streamSocketWithCtxShutdownResponse struct {
+ _ struct{} `fidl:"s" fidl_size_v1:"24" fidl_alignment_v1:"8" fidl_size_v2:"16" fidl_alignment_v2:"8"`
+ Result BaseSocketShutdownResult `fidl_offset_v1:"0" fidl_offset_v2:"0"`
+}
+
+var _mstreamSocketWithCtxShutdownResponse = _bindings.CreateLazyMarshaler(streamSocketWithCtxShutdownResponse{})
+
+func (msg *streamSocketWithCtxShutdownResponse) Marshaler() _bindings.Marshaler {
+ return _mstreamSocketWithCtxShutdownResponse
+}
+
type streamSocketWithCtxShutdown2Request struct {
_ struct{} `fidl:"s" fidl_size_v1:"8" fidl_alignment_v1:"8" fidl_size_v2:"8" fidl_alignment_v2:"8"`
Mode ShutdownMode `fidl_offset_v1:"0" fidl_offset_v2:"0"`
@@ -6060,6 +6104,62 @@
return _u
}
+type I_baseSocketShutdownResultTag uint64
+
+const (
+ BaseSocketShutdownResultResponse = 1 // 0x00000001
+ BaseSocketShutdownResultErr = 2 // 0x00000002
+)
+
+type BaseSocketShutdownResult struct {
+ I_baseSocketShutdownResultTag `fidl:"x!" fidl_size_v1:"24" fidl_alignment_v1:"8" fidl_size_v2:"16" fidl_alignment_v2:"8" fidl_resource:"false"`
+ Response BaseSocketShutdownResponse `fidl_ordinal:"1"`
+ Err fuchsiaposix.Errno `fidl_ordinal:"2"`
+}
+
+func (_m *BaseSocketShutdownResult) reset() {
+ switch _m.I_baseSocketShutdownResultTag {
+ case 1:
+ var _zeroed BaseSocketShutdownResponse
+ _m.Response = _zeroed
+ case 2:
+ var _zeroed fuchsiaposix.Errno
+ _m.Err = _zeroed
+ }
+}
+
+func (_m *BaseSocketShutdownResult) Which() I_baseSocketShutdownResultTag {
+ return _m.I_baseSocketShutdownResultTag
+}
+
+func (_m *BaseSocketShutdownResult) Ordinal() uint64 {
+ return uint64(_m.I_baseSocketShutdownResultTag)
+}
+
+func (_m *BaseSocketShutdownResult) SetResponse(response BaseSocketShutdownResponse) {
+ _m.reset()
+ _m.I_baseSocketShutdownResultTag = BaseSocketShutdownResultResponse
+ _m.Response = response
+}
+
+func BaseSocketShutdownResultWithResponse(response BaseSocketShutdownResponse) BaseSocketShutdownResult {
+ var _u BaseSocketShutdownResult
+ _u.SetResponse(response)
+ return _u
+}
+
+func (_m *BaseSocketShutdownResult) SetErr(err fuchsiaposix.Errno) {
+ _m.reset()
+ _m.I_baseSocketShutdownResultTag = BaseSocketShutdownResultErr
+ _m.Err = err
+}
+
+func BaseSocketShutdownResultWithErr(err fuchsiaposix.Errno) BaseSocketShutdownResult {
+ var _u BaseSocketShutdownResult
+ _u.SetErr(err)
+ return _u
+}
+
type I_baseSocketShutdown2ResultTag uint64
const (
@@ -9140,62 +9240,6 @@
return _u
}
-type I_datagramSocketShutdownResultTag uint64
-
-const (
- DatagramSocketShutdownResultResponse = 1 // 0x00000001
- DatagramSocketShutdownResultErr = 2 // 0x00000002
-)
-
-type DatagramSocketShutdownResult struct {
- I_datagramSocketShutdownResultTag `fidl:"x!" fidl_size_v1:"24" fidl_alignment_v1:"8" fidl_size_v2:"16" fidl_alignment_v2:"8" fidl_resource:"false"`
- Response DatagramSocketShutdownResponse `fidl_ordinal:"1"`
- Err fuchsiaposix.Errno `fidl_ordinal:"2"`
-}
-
-func (_m *DatagramSocketShutdownResult) reset() {
- switch _m.I_datagramSocketShutdownResultTag {
- case 1:
- var _zeroed DatagramSocketShutdownResponse
- _m.Response = _zeroed
- case 2:
- var _zeroed fuchsiaposix.Errno
- _m.Err = _zeroed
- }
-}
-
-func (_m *DatagramSocketShutdownResult) Which() I_datagramSocketShutdownResultTag {
- return _m.I_datagramSocketShutdownResultTag
-}
-
-func (_m *DatagramSocketShutdownResult) Ordinal() uint64 {
- return uint64(_m.I_datagramSocketShutdownResultTag)
-}
-
-func (_m *DatagramSocketShutdownResult) SetResponse(response DatagramSocketShutdownResponse) {
- _m.reset()
- _m.I_datagramSocketShutdownResultTag = DatagramSocketShutdownResultResponse
- _m.Response = response
-}
-
-func DatagramSocketShutdownResultWithResponse(response DatagramSocketShutdownResponse) DatagramSocketShutdownResult {
- var _u DatagramSocketShutdownResult
- _u.SetResponse(response)
- return _u
-}
-
-func (_m *DatagramSocketShutdownResult) SetErr(err fuchsiaposix.Errno) {
- _m.reset()
- _m.I_datagramSocketShutdownResultTag = DatagramSocketShutdownResultErr
- _m.Err = err
-}
-
-func DatagramSocketShutdownResultWithErr(err fuchsiaposix.Errno) DatagramSocketShutdownResult {
- var _u DatagramSocketShutdownResult
- _u.SetErr(err)
- return _u
-}
-
type I_datagramSocketRecvMsgResultTag uint64
const (
@@ -11857,6 +11901,7 @@
BaseSocketDisconnectOrdinal uint64 = 0x20eaedba2e0f70a4
BaseSocketGetSockNameOrdinal uint64 = 0x41a618ef19a91f9d
BaseSocketGetPeerNameOrdinal uint64 = 0x4009d08a4beb5e95
+ BaseSocketShutdownOrdinal uint64 = 0x382080a1d15b2111
BaseSocketShutdown2Ordinal uint64 = 0x57d3458f9754763b
BaseSocketSetReuseAddressOrdinal uint64 = 0x1fd74ee8b9a4a876
BaseSocketGetReuseAddressOrdinal uint64 = 0x67b7206b8d1bc0a5
@@ -12084,6 +12129,15 @@
}
// Shuts down part of the socket.
+func (p *BaseSocketWithCtxInterface) Shutdown(ctx_ _bindings.Context, mode ShutdownMode) (BaseSocketShutdownResult, error) {
+ req_ := &baseSocketWithCtxShutdownRequest{
+ Mode: mode,
+ }
+ resp_ := &baseSocketWithCtxShutdownResponse{}
+ err_ := ((*_bindings.ChannelProxy)(p)).Call(BaseSocketShutdownOrdinal, req_, resp_)
+ return resp_.Result, err_
+}
+
func (p *BaseSocketWithCtxInterface) Shutdown2(ctx_ _bindings.Context, mode ShutdownMode) (BaseSocketShutdown2Result, error) {
req_ := &baseSocketWithCtxShutdown2Request{
Mode: mode,
@@ -12669,6 +12723,7 @@
// Retrieves the remote socket address.
GetPeerName(ctx_ _bindings.Context) (BaseSocketGetPeerNameResult, error)
// Shuts down part of the socket.
+ Shutdown(ctx_ _bindings.Context, mode ShutdownMode) (BaseSocketShutdownResult, error)
Shutdown2(ctx_ _bindings.Context, mode ShutdownMode) (BaseSocketShutdown2Result, error)
// Set `SOL_SOCKET` -> `SO_REUSEADDR`.
SetReuseAddress(ctx_ _bindings.Context, value bool) (BaseSocketSetReuseAddressResult, error)
@@ -12908,6 +12963,19 @@
out_ := baseSocketWithCtxGetPeerNameResponse{}
out_.Result = result
return &out_, true, err_
+ case BaseSocketShutdownOrdinal:
+ in_ := baseSocketWithCtxShutdownRequest{}
+ marshalerCtx, ok := _bindings.GetMarshalerContext(args_.Ctx)
+ if !ok {
+ return nil, false, _bindings.ErrMissingMarshalerContext
+ }
+ if _, _, err_ := _bindings.UnmarshalWithContext2(marshalerCtx, args_.Bytes, args_.HandleInfos, &in_); err_ != nil {
+ return nil, false, err_
+ }
+ result, err_ := s_.Impl.Shutdown(args_.Ctx, in_.Mode)
+ out_ := baseSocketWithCtxShutdownResponse{}
+ out_.Result = result
+ return &out_, true, err_
case BaseSocketShutdown2Ordinal:
in_ := baseSocketWithCtxShutdown2Request{}
marshalerCtx, ok := _bindings.GetMarshalerContext(args_.Ctx)
@@ -13444,6 +13512,7 @@
DatagramSocketDisconnectOrdinal uint64 = 0x20eaedba2e0f70a4
DatagramSocketGetSockNameOrdinal uint64 = 0x41a618ef19a91f9d
DatagramSocketGetPeerNameOrdinal uint64 = 0x4009d08a4beb5e95
+ DatagramSocketShutdownOrdinal uint64 = 0x382080a1d15b2111
DatagramSocketShutdown2Ordinal uint64 = 0x57d3458f9754763b
DatagramSocketSetReuseAddressOrdinal uint64 = 0x1fd74ee8b9a4a876
DatagramSocketGetReuseAddressOrdinal uint64 = 0x67b7206b8d1bc0a5
@@ -13499,7 +13568,6 @@
DatagramSocketGetIpv6ReceiveTrafficClassOrdinal uint64 = 0x1c8433af11cd4596
DatagramSocketSetIpv6TrafficClassOrdinal uint64 = 0x32da0ca485fad782
DatagramSocketGetIpv6TrafficClassOrdinal uint64 = 0x6ca5b9166c8d3cba
- DatagramSocketShutdownOrdinal uint64 = 0x3c6058976bced940
DatagramSocketRecvMsgOrdinal uint64 = 0x715341bb02f02b7a
DatagramSocketSendMsgOrdinal uint64 = 0x359b626d62a7f17b
DatagramSocketGetInfoOrdinal uint64 = 0x6e3122a6b1830c0f
@@ -13675,6 +13743,15 @@
}
// Shuts down part of the socket.
+func (p *DatagramSocketWithCtxInterface) Shutdown(ctx_ _bindings.Context, mode ShutdownMode) (BaseSocketShutdownResult, error) {
+ req_ := &datagramSocketWithCtxShutdownRequest{
+ Mode: mode,
+ }
+ resp_ := &datagramSocketWithCtxShutdownResponse{}
+ err_ := ((*_bindings.ChannelProxy)(p)).Call(DatagramSocketShutdownOrdinal, req_, resp_)
+ return resp_.Result, err_
+}
+
func (p *DatagramSocketWithCtxInterface) Shutdown2(ctx_ _bindings.Context, mode ShutdownMode) (BaseSocketShutdown2Result, error) {
req_ := &datagramSocketWithCtxShutdown2Request{
Mode: mode,
@@ -14175,16 +14252,6 @@
return resp_.Result, err_
}
-// Shuts down part of the socket.
-func (p *DatagramSocketWithCtxInterface) Shutdown(ctx_ _bindings.Context, mode ShutdownMode) (DatagramSocketShutdownResult, error) {
- req_ := &datagramSocketWithCtxShutdownRequest{
- Mode: mode,
- }
- resp_ := &datagramSocketWithCtxShutdownResponse{}
- err_ := ((*_bindings.ChannelProxy)(p)).Call(DatagramSocketShutdownOrdinal, req_, resp_)
- return resp_.Result, err_
-}
-
// Receives a message from the socket.
func (p *DatagramSocketWithCtxInterface) RecvMsg(ctx_ _bindings.Context, wantAddr bool, dataLen uint32, wantControl bool, flags RecvMsgFlags) (DatagramSocketRecvMsgResult, error) {
req_ := &datagramSocketWithCtxRecvMsgRequest{
@@ -14299,6 +14366,7 @@
// Retrieves the remote socket address.
GetPeerName(ctx_ _bindings.Context) (BaseSocketGetPeerNameResult, error)
// Shuts down part of the socket.
+ Shutdown(ctx_ _bindings.Context, mode ShutdownMode) (BaseSocketShutdownResult, error)
Shutdown2(ctx_ _bindings.Context, mode ShutdownMode) (BaseSocketShutdown2Result, error)
// Set `SOL_SOCKET` -> `SO_REUSEADDR`.
SetReuseAddress(ctx_ _bindings.Context, value bool) (BaseSocketSetReuseAddressResult, error)
@@ -14409,8 +14477,6 @@
SetIpv6TrafficClass(ctx_ _bindings.Context, value OptionalUint8) (BaseSocketSetIpv6TrafficClassResult, error)
// Get `SOL_IPV6` -> `IPV6_TCLASS`.
GetIpv6TrafficClass(ctx_ _bindings.Context) (BaseSocketGetIpv6TrafficClassResult, error)
- // Shuts down part of the socket.
- Shutdown(ctx_ _bindings.Context, mode ShutdownMode) (DatagramSocketShutdownResult, error)
// Receives a message from the socket.
RecvMsg(ctx_ _bindings.Context, wantAddr bool, dataLen uint32, wantControl bool, flags RecvMsgFlags) (DatagramSocketRecvMsgResult, error)
// Sends a message on the socket.
@@ -14546,6 +14612,19 @@
out_ := datagramSocketWithCtxGetPeerNameResponse{}
out_.Result = result
return &out_, true, err_
+ case DatagramSocketShutdownOrdinal:
+ in_ := datagramSocketWithCtxShutdownRequest{}
+ marshalerCtx, ok := _bindings.GetMarshalerContext(args_.Ctx)
+ if !ok {
+ return nil, false, _bindings.ErrMissingMarshalerContext
+ }
+ if _, _, err_ := _bindings.UnmarshalWithContext2(marshalerCtx, args_.Bytes, args_.HandleInfos, &in_); err_ != nil {
+ return nil, false, err_
+ }
+ result, err_ := s_.Impl.Shutdown(args_.Ctx, in_.Mode)
+ out_ := datagramSocketWithCtxShutdownResponse{}
+ out_.Result = result
+ return &out_, true, err_
case DatagramSocketShutdown2Ordinal:
in_ := datagramSocketWithCtxShutdown2Request{}
marshalerCtx, ok := _bindings.GetMarshalerContext(args_.Ctx)
@@ -15053,19 +15132,6 @@
out_ := datagramSocketWithCtxGetIpv6TrafficClassResponse{}
out_.Result = result
return &out_, true, err_
- case DatagramSocketShutdownOrdinal:
- in_ := datagramSocketWithCtxShutdownRequest{}
- marshalerCtx, ok := _bindings.GetMarshalerContext(args_.Ctx)
- if !ok {
- return nil, false, _bindings.ErrMissingMarshalerContext
- }
- if _, _, err_ := _bindings.UnmarshalWithContext2(marshalerCtx, args_.Bytes, args_.HandleInfos, &in_); err_ != nil {
- return nil, false, err_
- }
- result, err_ := s_.Impl.Shutdown(args_.Ctx, in_.Mode)
- out_ := datagramSocketWithCtxShutdownResponse{}
- out_.Result = result
- return &out_, true, err_
case DatagramSocketRecvMsgOrdinal:
in_ := datagramSocketWithCtxRecvMsgRequest{}
marshalerCtx, ok := _bindings.GetMarshalerContext(args_.Ctx)
@@ -15126,6 +15192,7 @@
StreamSocketDisconnectOrdinal uint64 = 0x20eaedba2e0f70a4
StreamSocketGetSockNameOrdinal uint64 = 0x41a618ef19a91f9d
StreamSocketGetPeerNameOrdinal uint64 = 0x4009d08a4beb5e95
+ StreamSocketShutdownOrdinal uint64 = 0x382080a1d15b2111
StreamSocketShutdown2Ordinal uint64 = 0x57d3458f9754763b
StreamSocketSetReuseAddressOrdinal uint64 = 0x1fd74ee8b9a4a876
StreamSocketGetReuseAddressOrdinal uint64 = 0x67b7206b8d1bc0a5
@@ -15383,6 +15450,15 @@
}
// Shuts down part of the socket.
+func (p *StreamSocketWithCtxInterface) Shutdown(ctx_ _bindings.Context, mode ShutdownMode) (BaseSocketShutdownResult, error) {
+ req_ := &streamSocketWithCtxShutdownRequest{
+ Mode: mode,
+ }
+ resp_ := &streamSocketWithCtxShutdownResponse{}
+ err_ := ((*_bindings.ChannelProxy)(p)).Call(StreamSocketShutdownOrdinal, req_, resp_)
+ return resp_.Result, err_
+}
+
func (p *StreamSocketWithCtxInterface) Shutdown2(ctx_ _bindings.Context, mode ShutdownMode) (BaseSocketShutdown2Result, error) {
req_ := &streamSocketWithCtxShutdown2Request{
Mode: mode,
@@ -16236,6 +16312,7 @@
// Retrieves the remote socket address.
GetPeerName(ctx_ _bindings.Context) (BaseSocketGetPeerNameResult, error)
// Shuts down part of the socket.
+ Shutdown(ctx_ _bindings.Context, mode ShutdownMode) (BaseSocketShutdownResult, error)
Shutdown2(ctx_ _bindings.Context, mode ShutdownMode) (BaseSocketShutdown2Result, error)
// Set `SOL_SOCKET` -> `SO_REUSEADDR`.
SetReuseAddress(ctx_ _bindings.Context, value bool) (BaseSocketSetReuseAddressResult, error)
@@ -16536,6 +16613,19 @@
out_ := streamSocketWithCtxGetPeerNameResponse{}
out_.Result = result
return &out_, true, err_
+ case StreamSocketShutdownOrdinal:
+ in_ := streamSocketWithCtxShutdownRequest{}
+ marshalerCtx, ok := _bindings.GetMarshalerContext(args_.Ctx)
+ if !ok {
+ return nil, false, _bindings.ErrMissingMarshalerContext
+ }
+ if _, _, err_ := _bindings.UnmarshalWithContext2(marshalerCtx, args_.Bytes, args_.HandleInfos, &in_); err_ != nil {
+ return nil, false, err_
+ }
+ result, err_ := s_.Impl.Shutdown(args_.Ctx, in_.Mode)
+ out_ := streamSocketWithCtxShutdownResponse{}
+ out_.Result = result
+ return &out_, true, err_
case StreamSocketShutdown2Ordinal:
in_ := streamSocketWithCtxShutdown2Request{}
marshalerCtx, ok := _bindings.GetMarshalerContext(args_.Ctx)