Ende.QuicIncoming

interface · experimental

interface Ende.QuicIncoming

UNSTABLE: New API, yet to be vetted. An incoming connection for which the server has not yet begun its part of the handshake.

Properties

localIp

readonly localIp: string

The local IP address which was used when the peer established the connection.

remoteAddr

readonly remoteAddr: NetAddr

The peer’s UDP address.

remoteAddressValidated

readonly remoteAddressValidated: boolean

Whether the socket address that is initiating this connection has proven that they can receive traffic.

Methods

accept

accept<ZRTT extends boolean>(options?: QuicAcceptOptions<ZRTT>): ZRTT extends true ? QuicConn : Promise<QuicConn>

Accept this incoming connection.

refuse

refuse(): void

Refuse this incoming connection.

ignore

ignore(): void

Ignore this incoming connection attempt, not sending any packet in response.