DVPeerAddress class final

The address and, when known, the port at the other end of a connection.

A server sets it from the socket. Nothing a client sends can change it, which is the whole of its value: every header is something the client chose.

Constructors

DVPeerAddress(DVIpAddress address, {int? port})
const

Properties

address → DVIpAddress
final
hashCode → int
The hash code for this object.
no setteroverride
port → int?
The peer's port, 0-65535, or null when the server did not say.
final
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

Static Methods

parse(String text) → DVPeerAddress
tryParse, throwing a FormatException naming text.
tryParse(String text) → DVPeerAddress?
Reads 1.2.3.4, 1.2.3.4:80, 2001:db8::1, [2001:db8::1] and [2001:db8::1]:80. A zone on an IPv6 address ([fe80::1%2]:80) is dropped: it names an interface on this host, not a different peer.