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