Required Instance Methodswift-nio 2.72.0NIOCore
_applyChannelConvenienceOptions(_:)
Apply any understood convenience options to the bootstrap, removing them from the set of options if they are consumed. Method is optional to implement and should never be directly called by users.
UniversalBootstrapSupport.swift:59func _applyChannelConvenienceOptions(_ options: inout ChannelOptions.TCPConvenienceOptions) -> Self
Parameters
- options
The options to try applying - the options applied should be consumed from here.
Returns
The updated bootstrap with and options applied.
Other requirements
Instance members
func channelInitializer(@escaping (Channel) -> EventLoopFuture<Void>
) -> Self Initialize the connected
SocketChannel
withinitializer
. The most common task in initializer is to addChannelHandler
s to theChannelPipeline
.func channelOption<Option>(Option, value: Option.Value
) -> Self Specifies a
ChannelOption
to be applied to theSocketChannel
.func connect(host: String, port: Int
) -> EventLoopFuture<Channel> Specify the
host
andport
to connect to for the TCPChannel
that will be established.func connect(to: SocketAddress
) -> EventLoopFuture<Channel> Specify the
address
to connect to for the TCPChannel
that will be established.func connect(unixDomainSocketPath: String
) -> EventLoopFuture<Channel> Specify the
unixDomainSocket
path to connect to for the UDSChannel
that will be established.func connectTimeout(TimeAmount
) -> Self func protocolHandlers(@escaping () -> [ChannelHandler]
) -> Self Sets the protocol handlers that will be added to the front of the
ChannelPipeline
right after thechannelInitializer
has been called.
Citizens in NIOCore
Default implementations
Show implementation details (1)
Hide implementation details
func _applyChannelConvenienceOptions(inout ChannelOptions.TCPConvenienceOptions
) -> Self Apply any understood convenience options to the bootstrap, removing them from the set of options if they are consumed.