bind(to:promise:)

    Send a bind event to the next outbound ChannelHandler in the ChannelPipeline. When the bind event reaches the HeadChannelHandler a ServerSocketChannel will be bound.

    ChannelPipeline.swift:1633
    func bind(to address: SocketAddress, promise: EventLoopPromise<Void>?)

    Parameters

    address

    The address to bind to.

    promise

    The promise fulfilled when the socket is bound or failed if it cannot be bound.

    Other members in extension

    Types

    • struct RemovalToken

      A RemovalToken is handed to a RemovableChannelHandler when its removeHandler function is invoked. A RemovableChannelHandler is then required to remove itself from the ChannelPipeline. The removal process is finalized by handing the RemovalToken to the ChannelHandlerContext.leavePipeline function.

    Instance members