DcOption class

Dc Option.

ID: 18b7a10d.

Inheritance

Constructors

DcOption({required bool ipv6, required bool mediaOnly, required bool tcpoOnly, required bool cdn, required bool static, required bool thisPortOnly, required int id, required String ipAddress, required int port, Uint8List? secret})
Dc Option constructor.
const
DcOption.deserialize(BinaryReader reader)
Deserialize.
factory

Properties

cdn bool
cdn: bit 3 of flags.3?true
final
flags int
Flags.
no setter
hashCode int
The hash code for this object.
no setterinherited
id int
Id.
final
ipAddress String
Ip Address.
final
ipv6 bool
ipv6: bit 0 of flags.0?true
final
mediaOnly bool
media_only: bit 1 of flags.1?true
final
port int
Port.
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
secret Uint8List?
Secret.
final
static bool
static: bit 4 of flags.4?true
final
tcpoOnly bool
tcpo_only: bit 2 of flags.2?true
final
thisPortOnly bool
this_port_only: bit 5 of flags.5?true
final

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
serialize(List<int> buffer) → void
Serialize.
override
toJson() Map<String, dynamic>
Converts an object to JSON.
override
toString() String
A string representation of this object.
inherited

Operators

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