DelayedPacket

A packet that is delayed until we release it.

Properties

packet

readonly packet: Packet

The packet that has been delayed.


time

readonly time: number

The original time this packet was send.

Methods

direction()

direction(): PacketDirection

Returns the direction of the packet, either IN or OUT.

Returns

PacketDirection


hasAged()

hasAged(ms): boolean

Checks if this packet has aged beyond the specified time.

Parameters

ms

number

ms - The number of milliseconds.

Returns

boolean

True if this packet has aged beyond the given time, false otherwise.

Last updated