Required Instance Methodswift-nio 2.72.0NIOCore
localAddress0
Returns the local bound SocketAddress
.
func localAddress0() throws -> SocketAddress
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 read0(
) Request that the
Channel
perform a read when data is ready.func register0(promise: EventLoopPromise<Void>?
) Register with the
EventLoop
to receive I/O notifications.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.