Structureswift-nio 2.81.0NIOCore
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 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 Storage
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 TCPConvenienceOption
A TCP channel option which can be applied to a bootstrap using convenience notation.
struct TCPConvenienceOptions
A set of TCPConvenienceOption
s
enum Types
protocol Sendable
init()
mutating func append<Option>(key newKey: Option, value newValue: Option.Value) where Option : ChannelOption
Add Options
, a ChannelOption
to the ChannelOptions.Storage
.
func applyAllChannelOptions(to channel: Channel) -> EventLoopFuture<Void>
Apply all stored ChannelOption
s to Channel
.
mutating func remove<Option>(key: Option) where Option : ChannelOption
Remove all options with the given key
.