Instance Methodswift-nio 2.72.0NIOCore
channelOption(_:value:)
Specifies a ChannelOption
to be applied to the SocketChannel
.
func channelOption<Option>(_ option: Option, value: Option.Value) -> NIOClientTCPBootstrap where Option : ChannelOption
Parameters
Other members in extension
Type members
init<Bootstrap, TLS>(Bootstrap, tls: TLS
) Initialize a
NIOClientTCPBootstrap
using the underlyingBootstrap
alongside a compatibleTLS
implementation.
Instance members
let underlyingBootstrap: NIOClientTCPBootstrapProtocol
func channelConvenienceOptions(ChannelOptions.TCPConvenienceOptions
) -> NIOClientTCPBootstrap Specifies some
TCPConvenienceOption
s to be applied to the channel. These are preferred over regular channel options as they are easier to use and restrict options to those which a normal user would consider.func channelInitializer(@escaping (Channel) -> EventLoopFuture<Void>
) -> NIOClientTCPBootstrap Initialize the connected
SocketChannel
withinitializer
. The most common task in initializer is to addChannelHandler
s to theChannelPipeline
.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
) -> NIOClientTCPBootstrap func enableTLS(
) -> NIOClientTCPBootstrap