IncomingInterface

An incoming connection that has not yet begun its server-side handshake.

Consume via `Self::accept` / `Self::refuse` / `Self::retry` / `Self::ignore`. Each Incoming can only be consumed once.

Inheritors

Types

Link copied to clipboard
object Companion

Functions

Link copied to clipboard
abstract suspend fun accept(): Accepting

Begin the server-side handshake, producing an `Accepting`.

Link copied to clipboard
abstract suspend fun ignore()

Drop this incoming connection without sending any reply.

Link copied to clipboard
abstract suspend fun localAddr(): IncomingLocalAddr

The local address that received this incoming connection.

Link copied to clipboard
abstract suspend fun refuse()

Reject this incoming connection attempt.

Link copied to clipboard
abstract suspend fun remoteAddr(): IncomingAddr

The remote address that originated this incoming connection.

Link copied to clipboard
abstract suspend fun remoteAddrValidated(): Boolean

True if the remote address has been validated by the QUIC retry mechanism.

Link copied to clipboard
abstract suspend fun retry()

Respond with a retry packet, requiring the client to retry with address validation.