IpPacket<T extends IpAddress> class

Superclass of Ip4Packet and Ip6Packet.

Inheritance
Implementers

Constructors

IpPacket()

Properties

destination ↔ T
Destination IP address.
read / write
hashCode int
Determines hash by serializing this value.
read-only, inherited
ipVersion int
IP version (4 or 6)
read-only
payload SelfEncoder
read / write
payloadProtocolNumber int
8-bit encapsulated protocol (e.g. TCP, UDP).
read-only
protocol Protocol
read-only, inherited
runtimeType Type
A representation of the runtime type of the object.
read-only, inherited
source ↔ T
Source IP address.
read / write

Methods

decodeSelf(RawReader reader) → void
Decodes state from the bytes.
inherited
decodeSelfFromSelfEncoder(SelfEncoder value) → void
Decodes state from the SelfEncoder.
inherited
encodeSelf(RawWriter writer) → void
Encodes this object.
inherited
encodeSelfCapacity() int
Returns an estimate of the maximum number of bytes needed to encode this value.
inherited
noSuchMethod(Invocation invocation) → dynamic
Invoked when a non-existent method or property is accessed. [...]
inherited
toImmutableByteData() ByteData
Returns an immutable encoding of this value.
inherited
toImmutableBytes() List<int>
Returns an immutable encoding of this value.
inherited
toMutableByteData() ByteData
Returns a mutable encoding of this value.
inherited
toMutableBytes() List<int>
Returns a mutable encoding of this value.
inherited
toString() String
A string representation of this object. [...]
inherited

Operators

operator ==(dynamic other) bool
Determines equality by serializing both values.
inherited

Static Methods

decode(RawReader reader) IpPacket<IpAddress>
Returns IPv4Packet or IPv6Packet depending on the initial byte.