ConnectionId class

Represents a UDX Connection Identifier (CID).

CIDs are used to identify a UDX connection independently of the underlying network path (IP address and port).

Constructors

ConnectionId.new(List<int> bytes)
Creates a ConnectionId from a list of bytes.
ConnectionId.fromUint8List(Uint8List _bytes)
Creates a ConnectionId from a Uint8List.
ConnectionId.random()
Generates a new random ConnectionId.
factory

Properties

bytes Uint8List
Returns the bytes of the CID.
no setter
hashCode int
The hash code for this object.
no setteroverride
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
override

Operators

operator ==(Object other) bool
The equality operator.
override

Constants

cidLength → const int
The length of the CID in bytes.