Ip4Packet class

Inheritance

Constructors

Ip4Packet()

Properties

destination Ip4Address
Destination IP address.
read / write, inherited
flags int
3-bit flags.
read / write
fragmentOffset int
13-bit fragment offset.
read / write
hashCode int
Determines hash by serializing this value.
read-only, inherited
identification int
16-bit identification
read / write
ipVersion int
IP version (4 or 6)
read-only, override
options SelfEncoder
IPv4 options. Maximum length is 40 bytes.
read / write
payload SelfEncoder
read / write, inherited-getter, override-setter
payloadProtocolNumber int
8-bit encapsulated protocol (e.g. TCP, UDP).
read / write, override-getter
protocol Protocol
read-only, override
runtimeType Type
A representation of the runtime type of the object.
read-only, inherited
source Ip4Address
Source IP address.
read / write, inherited
ttl int
8-bit time-to-live.
read / write
typeOfService int
8-bit type of service.
read / write

Methods

decodeSelf(RawReader reader) → void
Decodes state from the bytes.
override
decodeSelfFromSelfEncoder(SelfEncoder value) → void
Decodes state from the SelfEncoder.
inherited
encodeSelf(RawWriter writer) → void
Encodes this object.
override
encodeSelfCapacity() int
Returns an estimate of the maximum number of bytes needed to encode this value.
override
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

calculateChecksum(ByteData byteData, int index, int length, {int checksum = 0}) int