TcpPacket class
Constructors
Properties
- acknowledgementNumber ↔ int
-
4-byte TCP acknowledgement number at index 8
getter/setter pair
- destinationAddress ↔ IpAddress
-
getter/setter pairinherited
- destinationPort ↔ int
-
2-byte TCP destination port.
getter/setter pair
- hashCode → int
-
Computes a hash code based on the serialized bytes.
no setter
- ipProtocolNumber → int
-
no setteroverride
- isAck ↔ bool
-
getter/setter pair
- isFinished ↔ bool
-
getter/setter pair
- isPush ↔ bool
-
getter/setter pair
- isReset ↔ bool
-
getter/setter pair
- isSelectiveAcknowledgementPermitted ↔ bool
-
getter/setter pair
- isSynchronizeSequenceNumbers ↔ bool
-
getter/setter pair
- isUrgentPointer ↔ bool
-
getter/setter pair
- maximumSegmentSize ↔ int?
-
getter/setter pair
- optionsByteData ↔ ByteData
-
getter/setter pair
- optionsBytes ↔ Uint8List
-
getter/setter pair
-
parentPacket
↔ IpPacket<
IpAddress> ? -
getter/setter pairinherited
- payload ↔ SelfEncoder
-
getter/setter pair
- protocol → Protocol
-
no setteroverride
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
-
selectiveAcknowledgement
↔ List<
int> ? -
getter/setter pair
- sequenceNumber ↔ int
-
4-byte TCP sequence number at index 4
getter/setter pair
- sourceAddress ↔ IpAddress
-
getter/setter pairinherited
- sourcePort ↔ int
-
2-byte TCP source port.
getter/setter pair
- urgentPointer ↔ int
-
getter/setter pair
- window ↔ int
-
getter/setter pair
- windowScale ↔ int?
-
getter/setter pair
Methods
-
decodeSelf(
RawReader reader) → void -
Decodes the current object from the given
RawReader. -
decodeSelfFromSelfEncoder(
SelfEncoder value) → void -
Decodes this object from a
SelfEncoderby first serializing it to immutable bytes and then reading them viaRawReader.inherited -
encodeSelf(
RawWriter writer) → void -
Writes this object to the provided
RawWriter. -
encodeSelfCapacity(
) → int - Returns an estimated maximum number of bytes required for encoding.
-
indexOfOption(
int searchedCode) → int -
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
removeOption(
int code) → void - Removes all options that have the code.
-
setOptionWithLength(
int code, int length) → int - Adds the option to the TCP options. Returns index of the option.
-
toImmutableByteData(
) → ByteData -
Serializes this object to an immutable ByteData.
inherited
-
toImmutableBytes(
) → List< int> -
Serializes this object to an immutable list of bytes.
inherited
-
toMutableByteData(
) → ByteData -
Serializes this object to a mutable ByteData buffer.
inherited
-
toMutableBytes(
) → List< int> -
Serializes this object to a mutable list of bytes.
inherited
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
Compares this object with another
SelfEncoderby serialized content.
Constants
- optionCodeEnd → const int
- optionCodeMaximumSegmentSize → const int
- optionCodePadding → const int
- optionCodeSelectiveAcknowledgement → const int
- optionCodeSelectiveAcknowledgementPermitted → const int
- optionCodeWindowScale → const int