Initializerswift-nio 2.81.0NIOCore
init
ChannelOption.swift:282init()
init()
s7NIOCore14ChannelOptionsV5TypesO28AllowRemoteHalfClosureOptionVAGycfc
What are these?71XZ
import NIOCore
The core abstractions that make up SwiftNIO.
struct AllowRemoteHalfClosureOption
AllowRemoteHalfClosureOption
allows users to configure whether the Channel
will close itself when its remote peer shuts down its send stream, or whether it will remain open. If set to false
(the default), the Channel
will be closed automatically if the remote peer shuts down its send stream. If set to true, the Channel
will not be closed: instead, a ChannelEvent.inboundClosed
user event will be sent on the ChannelPipeline
, and no more data will be received.
struct ChannelOptions
Provides ChannelOption
s to be used with a Channel
, Bootstrap
or ServerBootstrap
.
enum Types
typealias Value = Bool