Instance Methodswift-nio 2.72.0NIOPosix
channelOption(_:value:)
Specifies a ChannelOption
to be applied to the Channel
.
func channelOption<Option>(_ option: Option, value: Option.Value) -> Self where Option : ChannelOption
Parameters
Other members in extension
Type members
init(group: EventLoopGroup
) Create a
RawSocketBootstrap
on theEventLoopGroup
group
.init?(validatingGroup: EventLoopGroup
) Create a
RawSocketBootstrap
on theEventLoopGroup
group
, validating thatgroup
is compatible.
Instance members
func bind(host: String, ipProtocol: NIOIPProtocol
) -> EventLoopFuture<Channel> Bind the
Channel
tohost
. All packets or errors matching theipProtocol
specified are passed to the resultingChannel
.func bind<Output>(host: String, ipProtocol: NIOIPProtocol, channelInitializer: @escaping (Channel) -> EventLoopFuture<Output>
) async throws -> Output Bind the
Channel
tohost
. All packets or errors matching theipProtocol
specified are passed to the resultingChannel
.func channelInitializer(@escaping (Channel) -> EventLoopFuture<Void>
) -> Self Initialize the bound
Channel
withinitializer
. The most common task in initializer is to addChannelHandler
s to theChannelPipeline
.func connect(host: String, ipProtocol: NIOIPProtocol
) -> EventLoopFuture<Channel> Connect the
Channel
tohost
.func connect<Output>(host: String, ipProtocol: NIOIPProtocol, channelInitializer: @escaping (Channel) -> EventLoopFuture<Output>
) async throws -> Output Connect the
Channel
tohost
.