Package org.jcsp.net2
Class NetworkMessage
java.lang.Object
org.jcsp.net2.NetworkMessage
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
FieldsModifier and TypeFieldDescription(package private) int
The first attribute of the message.(package private) int
The second attribute of the message(package private) byte[]
Data sent in the message if relevant.(package private) ChannelOutput
ChannelOutput to the Link so that acknowledgements can be sent.(package private) byte
The message type, as described in NetworkProtocol. -
Constructor Summary
Constructors -
Method Summary
-
Field Details
-
type
byte typeThe message type, as described in NetworkProtocol. -
attr1
int attr1The first attribute of the message. -
attr2
int attr2The second attribute of the message -
data
byte[] dataData sent in the message if relevant. -
toLink
ChannelOutput toLinkChannelOutput to the Link so that acknowledgements can be sent.
-
-
Constructor Details
-
NetworkMessage
NetworkMessage()
-