TCPConvenienceOption
A TCP channel option which can be applied to a bootstrap using convenience notation.
struct TCPConvenienceOption
A TCP channel option which can be applied to a bootstrap using convenience notation.
struct TCPConvenienceOption
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 TCPConvenienceOptions
A set of TCPConvenienceOption
s
enum Types
protocol Equatable
A type that can be compared for value equality.
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.
static let allowLocalEndpointReuse: ChannelOptions.TCPConvenienceOption
Allow immediately reusing a local address.
static let allowRemoteHalfClosure: ChannelOptions.TCPConvenienceOption
Allows users to configure whether the Channel
will close itself when its remote peer shuts down its send stream, or whether it will remain open. If set to false
(the default), the Channel
will be closed automatically if the remote peer shuts down its send stream. If set to true, the Channel
will not be closed: instead, a ChannelEvent.inboundClosed
user event will be sent on the ChannelPipeline
, and no more data will be received.
static let disableAutoRead: ChannelOptions.TCPConvenienceOption
The user will manually call Channel.read
once all the data is read from the transport.
static func != (lhs: Self, rhs: Self) -> Bool
Returns a Boolean value indicating whether two values are not equal.