Connecting

A client-side handshake in progress. Await with `Self::connect`.

Functions

Link copied to clipboard
open suspend override fun alpn(): ByteArray

Read the ALPN protocol from the peer's handshake data (resolves once the server has responded with its ServerHello).

Link copied to clipboard
open override fun close()
Link copied to clipboard
open suspend override fun connect(): Connection

Wait for the handshake to complete, producing a `Connection`.

Link copied to clipboard
open override fun destroy()
Link copied to clipboard
open suspend override fun remoteId(): EndpointId

The `EndpointId` this connection attempt targets.