Required Instance Propertyswift-nio 2.72.0NIOCore
closeFuture
The closeFuture
will fire when the Channel
has been closed.
var closeFuture: EventLoopFuture<Void> { get }
Other requirements
Instance members
var allocator: ByteBufferAllocator
The
Channel
’sByteBuffer
allocator. This is the only supported way of allocatingByteBuffer
s to be used with thisChannel
.var isActive: Bool
Returns if this
Channel
is currently active. Active is defined as the period of time after thechannelActive
and beforechannelInactive
has fired. The main use for this is to know ifchannelActive
orchannelInactive
can be expected next whenhandlerAdded
was received.var isWritable: Bool
Returns if this
Channel
is currently writable.var localAddress: SocketAddress?
The local
SocketAddress
.var parent: Channel?
Channel
s are hierarchical and might have a parentChannel
.Channel
hierarchies are in use for certain protocols such as HTTP/2.var pipeline: ChannelPipeline
The
ChannelPipeline
which handles all I/O events and requests associated with thisChannel
.var remoteAddress: SocketAddress?
The remote peer’s
SocketAddress
.var syncOptions: NIOSynchronousChannelOptions?
Returns a view of the
Channel
exposing synchronous versions ofsetOption
andgetOption
. The default implementation returnsnil
, andChannel
implementations must opt in to support this behavior.func getOption<Option>(Option
) -> EventLoopFuture<Option.Value> Get the value of
option
for thisChannel
.func setOption<Option>(Option, value: Option.Value
) -> EventLoopFuture<Void> Set
option
tovalue
on thisChannel
.
Show implementation details (1)
Hide implementation details
var _channelCore: ChannelCore
Reach out to the
_ChannelCore
.