TransportHeaderBase

Namespace: inet

class TransportHeaderBase

This base class provides an abstraction for different transport layer packets.

Inheritance diagram

Extends

Name

Type

Description

FieldsChunk

class

(no description)

Known subclasses

Name

Type

Description

SctpHeader

class

(no description)

TcpHeader

class

Represents a TCP segment, to be used with the Tcp module.

UdpHeader

class

Represents an Udp header, to be used with the Udp module.

Fields

Name

Type

Description

id

int

mutable

bool

complete

bool

correct

bool

properlyRepresented

bool

chunkLength

b

rawBin

string[]

rawHex

string[]

regionTags

SharingRegionTagSet::TagBaseRegionTag[]

sourcePort

unsigned int

destinationPort

unsigned int

Properties

Name

Value

Description

beforeChange

handleChange()

descriptor

readonly

existingClass

packetData

Source code

//
// This base class provides an abstraction for different transport layer packets.
//
class TransportHeaderBase extends FieldsChunk
{
    @existingClass;
    unsigned int sourcePort;
    unsigned int destinationPort;
};

File: src/inet/transportlayer/contract/TransportHeaderBase.msg