Package org.jcsp.net2
Class NetworkMessage
- java.lang.Object
-
- org.jcsp.net2.NetworkMessage
-
final class NetworkMessage extends java.lang.Object
A message received or to be sent via a Link. This is an internal structure to JCSP, and is an object encapsulation of the messages sent between nodes
-
-
Field Summary
Fields Modifier and Type Field Description (package private) int
attr1
The first attribute of the message.(package private) int
attr2
The second attribute of the message(package private) byte[]
data
Data sent in the message if relevant.(package private) ChannelOutput
toLink
ChannelOutput to the Link so that acknowledgements can be sent.(package private) byte
type
The message type, as described in NetworkProtocol.
-
Constructor Summary
Constructors Constructor Description NetworkMessage()
-
-
-
Field Detail
-
type
byte type
The message type, as described in NetworkProtocol.
-
attr1
int attr1
The first attribute of the message.
-
attr2
int attr2
The second attribute of the message
-
data
byte[] data
Data sent in the message if relevant.
-
toLink
ChannelOutput toLink
ChannelOutput to the Link so that acknowledgements can be sent.
-
-