localAddress0
Returns the local bound SocketAddress
.
func localAddress0() throws -> SocketAddress
Returns the local bound SocketAddress
.
func localAddress0() throws -> SocketAddress
s7NIOCore11ChannelCoreP13localAddress0AA13SocketAddressOyKF
What are these?1D8SD
import NIOCore
The core abstractions that make up SwiftNIO.
protocol ChannelCore : AnyObject
The core Channel
methods that are for internal use of the Channel
implementation only.
enum SocketAddress
Represent a socket address to which we may want to connect or bind.
func bind0(to: SocketAddress, promise: EventLoopPromise<Void>?)
Bind to a SocketAddress
.
func channelRead0(_ data: NIOAny)
Called when data was read from the Channel
but it was not consumed by any ChannelInboundHandler
in the ChannelPipeline
.
func close0(error: any Error, mode: CloseMode, promise: EventLoopPromise<Void>?)
Close the Channel
.
func connect0(to: SocketAddress, promise: EventLoopPromise<Void>?)
Connect to a SocketAddress
.
func errorCaught0(error: any Error)
Called when an inbound error was encountered but was not consumed by any ChannelInboundHandler
in the ChannelPipeline
.
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(_ event: Any, promise: EventLoopPromise<Void>?)
Trigger an outbound event.
func write0(_ data: NIOAny, promise: EventLoopPromise<Void>?)
Write the given data to the outbound buffer.