ChannelOptions
public struct ChannelOptions
Provides ChannelOption
s to be used with a Channel
, Bootstrap
or ServerBootstrap
.
-
Undocumented
Declaration
Swift
public static let socket: (SocketOptionLevel, SocketOptionName) -> ChannelOptions.Types.SocketOption
-
Seealso
SocketOption
.Declaration
Swift
public static let socketOption: (NIOBSDSocket.Option) -> ChannelOptions.Types.SocketOption
-
Seealso
SocketOption
.Declaration
Swift
public static let tcpOption: (NIOBSDSocket.Option) -> ChannelOptions.Types.SocketOption
-
Seealso
AllocatorOption
.Declaration
Swift
public static let allocator: ChannelOptions.Types.AllocatorOption
-
Seealso
RecvAllocatorOption
.Declaration
Swift
public static let recvAllocator: ChannelOptions.Types.RecvAllocatorOption
-
Seealso
AutoReadOption
.Declaration
Swift
public static let autoRead: ChannelOptions.Types.AutoReadOption
-
Seealso
MaxMessagesPerReadOption
.Declaration
Swift
public static let maxMessagesPerRead: ChannelOptions.Types.MaxMessagesPerReadOption
-
Seealso
BacklogOption
.Declaration
Swift
public static let backlog: ChannelOptions.Types.BacklogOption
-
Seealso
WriteSpinOption
.Declaration
Swift
public static let writeSpin: ChannelOptions.Types.WriteSpinOption
-
Seealso
WriteBufferWaterMarkOption
.Declaration
Swift
public static let writeBufferWaterMark: ChannelOptions.Types.WriteBufferWaterMarkOption
-
Seealso
ConnectTimeoutOption
.Declaration
Swift
public static let connectTimeout: ChannelOptions.Types.ConnectTimeoutOption
-
Seealso
AllowRemoteHalfClosureOption
.Declaration
Swift
public static let allowRemoteHalfClosure: ChannelOptions.Types.AllowRemoteHalfClosureOption
-
Declaration
Swift
public static let datagramVectorReadMessageCount: ChannelOptions.Types.DatagramVectorReadMessageCountOption
-
Seealso
ExplicitCongestionNotificationsOption
Declaration
Swift
public static let explicitCongestionNotification: ChannelOptions.Types.ExplicitCongestionNotificationsOption
-
Undocumented
See moreDeclaration
Swift
public enum Types
-
A type-safe storage facility for
See moreChannelOption
s. You will only ever need this if you implement your ownChannel
that needs to storeChannelOption
s.Declaration
Swift
public struct Storage
-
A TCP channel option which can be applied to a bootstrap using convenience notation.
See moreDeclaration
Swift
public struct TCPConvenienceOption : Hashable
-
A set of
See moreTCPConvenienceOption
sDeclaration
Swift
public struct TCPConvenienceOptions : ExpressibleByArrayLiteral, Hashable