Static Propertyswift-nio 2.81.0NIOCore
tcpOption
ChannelOption.swift:322static let tcpOption: (NIOBSDSocket.Option) -> ChannelOptions.Types.SocketOption
static let tcpOption: (NIOBSDSocket.Option) -> ChannelOptions.Types.SocketOption
s7NIOCore14ChannelOptionsV9tcpOptionyAC5TypesO06SocketE0VAA12NIOBSDSocketO0E0VYbcvpZ
What are these?2SC08
import NIOCore
The core abstractions that make up SwiftNIO.
struct ChannelOptions
Provides ChannelOption
s to be used with a Channel
, Bootstrap
or ServerBootstrap
.
enum NIOBSDSocket
struct Option
Defines configuration option names.
enum Types
struct SocketOption
SocketOption
allows users to specify configuration settings that are directly applied to the underlying socket file descriptor.
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 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.
struct TCPConvenienceOptions
A set of TCPConvenienceOption
s