Packet TCPExampleMessage

File: src/applications/tcpexampleapp/TCPExampleMessage.msg

C++ definition

now we declare the message

Usage diagram:

The following diagram shows usage relationships between types. Unresolved types are missing from the diagram. Click here to see the full picture.

Inheritance diagram:

The following diagram shows inheritance relationships for this type. Unresolved types are missing from the diagram. Click here to see the full picture.

Fields:

Name Type Description
type int

message type

senderAddress TransportAddress

address of the node that sent the message

Source code:

// now we declare the message
packet TCPExampleMessage
{
    int type @enum(MessageType);      // message type
    TransportAddress senderAddress;  // address of the node that sent the message
}