class

RNS::ChannelOutletBase(TPacket)

Inherits Reference < Object

Abstract transport-layer interface that a Channel uses to send and receive packets. Generic over TPacket, the concrete packet type provided by the underlying transport (e.g. Link).

Implementations must handle raw byte transmission, retransmission, RTT measurement, packet state tracking, and delivery/timeout callbacks.

Instance methods

get_packet_id(packet : TPacket) : Bytes
Source
get_packet_state(packet : TPacket) : Int32
Source
is_usable
Source
resend(packet : TPacket) : TPacket
Source
send(raw : Bytes) : TPacket
Source
set_packet_delivered_callback(packet : TPacket, callback : TPacket -> Nil | Nil)
Source
set_packet_timeout_callback(packet : TPacket, callback : TPacket -> Nil | Nil, timeout : Float64 | Nil)
Source
timed_out
Source