TCPConvenienceOptions
A set of TCPConvenienceOption
s
struct TCPConvenienceOptions
A set of TCPConvenienceOption
s
struct TCPConvenienceOptions
import NIOCore
The core abstractions that make up SwiftNIO.
struct ChannelOptions
Provides ChannelOption
s to be used with a Channel
, Bootstrap
or ServerBootstrap
.
static let allocator: ChannelOptions.Types.AllocatorOption
static let allowRemoteHalfClosure: ChannelOptions.Types.AllowRemoteHalfClosureOption
static let autoRead: ChannelOptions.Types.AutoReadOption
static let backlog: ChannelOptions.Types.BacklogOption
static let bufferedWritableBytes: ChannelOptions.Types.BufferedWritableBytesOption
static let connectTimeout: ChannelOptions.Types.ConnectTimeoutOption
static let datagramReceiveOffload: ChannelOptions.Types.DatagramReceiveOffload
static let datagramSegmentSize: ChannelOptions.Types.DatagramSegmentSize
static let datagramVectorReadMessageCount: ChannelOptions.Types.DatagramVectorReadMessageCountOption
static let explicitCongestionNotification: ChannelOptions.Types.ExplicitCongestionNotificationsOption
static let ipOption: (NIOBSDSocket.Option) -> ChannelOptions.Types.SocketOption
static let maxMessagesPerRead: ChannelOptions.Types.MaxMessagesPerReadOption
static let receivePacketInfo: ChannelOptions.Types.ReceivePacketInfo
static let recvAllocator: ChannelOptions.Types.RecvAllocatorOption
static let socket: (SocketOptionLevel, SocketOptionName) -> ChannelOptions.Types.SocketOption
static let socketOption: (NIOBSDSocket.Option) -> ChannelOptions.Types.SocketOption
static let tcpOption: (NIOBSDSocket.Option) -> ChannelOptions.Types.SocketOption
static let writeBufferWaterMark: ChannelOptions.Types.WriteBufferWaterMarkOption
static let writeSpin: ChannelOptions.Types.WriteSpinOption
struct Storage
A type-safe storage facility for ChannelOption
s. You will only ever need this if you implement your own Channel
that needs to store ChannelOption
s.
struct TCPConvenienceOption
A TCP channel option which can be applied to a bootstrap using convenience notation.
enum Types
protocol Equatable
A type that can be compared for value equality.
protocol ExpressibleByArrayLiteral
A type that can be initialized using an array literal.
protocol Hashable : Equatable
A type that can be hashed into a Hasher
to produce an integer hash value.
protocol Sendable
A thread-safe type whose values can be shared across arbitrary concurrent contexts without introducing a risk of data races. Values of the type may have no shared mutable state, or they may protect that state with a lock or by forcing it to only be accessed from a specific actor.
init(arrayLiteral elements: ChannelOptions.TCPConvenienceOption...)
Construct from an array literal.
mutating func consumeAllowLocalEndpointReuse() -> ChannelOptions.Types.ConvenienceOptionValue<Void>
Caller is consuming the knowledge that allowLocalEndpointReuse
was set or not. The setting will nolonger be set after this call.
mutating func consumeAllowRemoteHalfClosure() -> ChannelOptions.Types.ConvenienceOptionValue<Void>
Caller is consuming the knowledge that allowRemoteHalfClosure was set or not. The setting will nolonger be set after this call.
mutating func consumeDisableAutoRead() -> ChannelOptions.Types.ConvenienceOptionValue<Void>
Caller is consuming the knowledge that disableAutoRead was set or not. The setting will nolonger be set after this call.
static func != (lhs: Self, rhs: Self) -> Bool
Returns a Boolean value indicating whether two values are not equal.