Required Instance Methodswift-nio 2.72.0NIOCore
register0(promise:)
Register with the EventLoop
to receive I/O notifications.
func register0(promise: EventLoopPromise<Void>?)
Parameters
- promise
The
EventLoopPromise
which should be notified once the operation completes, or nil if no notification should take place.
Other requirements
Instance members
func bind0(to: SocketAddress, promise: EventLoopPromise<Void>?
) Bind to a
SocketAddress
.func channelRead0(NIOAny
) Called when data was read from the
Channel
but it was not consumed by anyChannelInboundHandler
in theChannelPipeline
.func close0(error: Error, mode: CloseMode, promise: EventLoopPromise<Void>?
) Close the
Channel
.func connect0(to: SocketAddress, promise: EventLoopPromise<Void>?
) Connect to a
SocketAddress
.func errorCaught0(error: Error
) Called when an inbound error was encountered but was not consumed by any
ChannelInboundHandler
in theChannelPipeline
.func flush0(
) Try to flush out all previous written messages that are pending.
func localAddress0(
) throws -> SocketAddress Returns the local bound
SocketAddress
.func read0(
) Request that the
Channel
perform a read when data is ready.func registerAlreadyConfigured0(promise: EventLoopPromise<Void>?
) Register channel as already connected or bound socket.
func remoteAddress0(
) throws -> SocketAddress Return the connected
SocketAddress
.func triggerUserOutboundEvent0(Any, promise: EventLoopPromise<Void>?
) Trigger an outbound event.
func write0(NIOAny, promise: EventLoopPromise<Void>?
) Write the given data to the outbound buffer.