UDXPacket class
A UDX packet with stream information and a list of frames.
Constructors
-
UDXPacket.new({required ConnectionId destinationCid, required ConnectionId sourceCid, required int destinationStreamId, required int sourceStreamId, required int sequence, required List<
Frame> frames, DateTime? sentTime}) - Creates a new UDX packet
- UDXPacket.fromBytes(Uint8List bytes)
-
Creates a UDX packet from raw bytes. Header is 28 bytes.
0-7: destinationConnectionId
8-15: sourceConnectionId
16-19: sequence
20-23: destinationStreamId
24-27: sourceStreamId
factory
Properties
- destinationCid → ConnectionId
-
The destination Connection ID.
final
- destinationStreamId → int
-
The ID of the stream at the destination
final
-
frames
→ List<
Frame> -
The list of frames in the packet
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- isAcked ↔ bool
-
Whether the packet has been acknowledged
getter/setter pair
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- sentTime ↔ DateTime?
-
The time the packet was sent
getter/setter pair
- sequence → int
-
The sequence number
final
- sourceCid → ConnectionId
-
The source Connection ID.
final
- sourceStreamId → int
-
The ID of the stream at the source
final
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toBytes(
) → Uint8List - Converts the UDX packet to raw bytes
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited