MultihopD2DPacket

Namespace: simu5g

class MultihopD2DPacket

MultihopD2DPacket

Extend this packet for creating your own multihop message

Usage diagram

Inheritance diagram

Extends

Name

Type

Description

FieldsChunk ↗

class

(no description)

Fields

Name

Type

Description

id

int

mutable

bool

complete

bool

correct

bool

properlyRepresented

bool

chunkLength

b

rawBin

string[]

rawHex

string[]

regionTags

SharingRegionTagSet::TagBaseRegionTag[]

srcId

MacNodeId

msgid

uint32_t

unique id of the message < sender id | local msg id >

srcCoord

inet::Coord

maxRadius

double

ttl

int

time-to-live (to avoid flooding)

hops

unsigned int

number of hops

lastHopSenderId

MacNodeId

payloadTimestamp

simtime_t

payloadSize

unsigned int

chunkLength

Properties

Name

Value

Description

beforeChange

handleChange()

descriptor

readonly

existingClass

packetData

Source code

//
// MultihopD2DPacket
//
// Extend this packet for creating your own multihop message
//
class MultihopD2DPacket extends inet::FieldsChunk
{
    MacNodeId srcId;
    uint32_t msgid;          // unique id of the message  < sender id  | local msg id >

    inet::Coord srcCoord @nopack;
    double maxRadius;

    int ttl;                 // time-to-live (to avoid flooding)
    unsigned int hops;       // number of hops

    MacNodeId lastHopSenderId;

    simtime_t payloadTimestamp;
    unsigned int payloadSize;

    chunkLength = D2D_MULTIHOP_HEADER_LENGTH;
}

File: src/simu5g/apps/d2dMultihop/MultihopD2DPacket.msg