Message SimpleUDPPacket

File: Underlay/SimpleUnderlay/SimpleUDPPacket.msg

Represents an UDP packet, to be used with the UDP module.

Inheritance diagram:

The following diagram shows part of the inheritance hierarchy. Unresolved types are missing from the diagram. Click here to see the full picture.

Properties:

Name Value Description
omitGetVerb true

If turned on, generates field getter methods without the "get" word, e.g. a field called destAddr can be read by method destAddr() and not getDestAddr().

Fields:

Name Type Description
sourcePort int

source port of the message

destinationPort int

destination port of the message

Source code:

message SimpleUDPPacket
{
    properties:
        omitGetVerb = true;    // If turned on, generates field getter methods without 
                                             // the "get" word, e.g. a field called destAddr can be 
                                             // read by method destAddr() and not getDestAddr().
    fields:
        int sourcePort = -1;    // source port of the message
        int destinationPort = -1;    //destination port of the message
};