Package org.jcsp.net2
Class NetworkMessage
- java.lang.Object
-
- org.jcsp.net2.NetworkMessage
-
final class NetworkMessage extends java.lang.ObjectA 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) intattr1The first attribute of the message.(package private) intattr2The second attribute of the message(package private) byte[]dataData sent in the message if relevant.(package private) ChannelOutputtoLinkChannelOutput to the Link so that acknowledgements can be sent.(package private) bytetypeThe 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.
-
-