Package org.jcsp.net2

Class NetworkMessage

java.lang.Object
org.jcsp.net2.NetworkMessage

final class NetworkMessage extends 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
    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
    Constructor
    Description
     
  • Method Summary

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Field Details

    • 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.
  • Constructor Details

    • NetworkMessage

      NetworkMessage()