now we declare the message
The following diagram shows usage relationships between types.
Unresolved types are missing from the diagram.
The following diagram shows inheritance relationships for this type.
Unresolved types are missing from the diagram.
Name | Type | Description |
---|---|---|
senderAddress | TransportAddress |
address of the node that sent the message |
type | int |
message type |
// now we declare the message packet MyMessage { int type @enum(MessageType); // message type TransportAddress senderAddress; // address of the node that sent the message }