TcpPacket class

Inheritance

Constructors

TcpPacket()

Properties

acknowledgementNumber int
4-byte TCP acknowledgement number at index 8
read / write
destinationAddress IpAddress
read / write, inherited
destinationPort int
2-byte TCP destination port.
read / write
hashCode int
Determines hash by serializing this value.
read-only, override
ipProtocolNumber int
read-only, override
isAck bool
read / write
isFinished bool
read / write
isPush bool
read / write
isReset bool
read / write
isSelectiveAcknowledgementPermitted bool
read / write
isSynchronizeSequenceNumbers bool
read / write
isUrgentPointer bool
read / write
maximumSegmentSize int
read / write
optionsByteData ByteData
read / write
optionsBytes Uint8List
read / write
parentPacket IpPacket<IpAddress>
read / write, inherited
payload SelfEncoder
read / write
protocol Protocol
read-only, override
runtimeType Type
A representation of the runtime type of the object.
read-only, inherited
selectiveAcknowledgement List<int>
read / write
sequenceNumber int
4-byte TCP sequence number at index 4
read / write
sourceAddress IpAddress
read / write, inherited
sourcePort int
2-byte TCP source port.
read / write
urgentPointer int
read / write
window int
read / write
windowScale int
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
indexOfOption(int searchedCode) int
noSuchMethod(Invocation invocation) → dynamic
Invoked when a non-existent 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
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.
override

Constants

optionCodeEnd → const int
0
optionCodeMaximumSegmentSize → const int
2
optionCodePadding → const int
1
optionCodeSelectiveAcknowledgement → const int
5
optionCodeSelectiveAcknowledgementPermitted → const int
4
optionCodeWindowScale → const int
3