Package org.jcsp.net

Class Message

java.lang.Object
org.jcsp.net.Message
All Implemented Interfaces:
Serializable
Direct Known Subclasses:
ChannelMessage, ConnectionMessage, Message.BounceMessage, Message.PingMessage, Message.PingReplyMessage, SerializedMessage

abstract class Message extends Object implements Serializable

Message to be transmitted. This is an abstract class containing only header information - you must subclass it to use it.

This is a package-private implementation class.

  • Field Details

    • PING_MESSAGE

      static final Message.PingMessage PING_MESSAGE
    • PING_REPLY_MESSAGE

      static final Message.PingReplyMessage PING_REPLY_MESSAGE
    • destIndex

      long destIndex
      The destination channel index.
    • destVCNLabel

      String destVCNLabel
    • sourceIndex

      long sourceIndex
      The source channel index.
    • sourceID

      transient NodeID sourceID
      The source computer address. This is not transmitted, instead, it is filled in automatically by the demux on arrival. (Indeed, it is not usually even filled in at the sending end).
    • txReplyChannel

      transient ChannelOutput txReplyChannel
      The channel for transmitting replies. It doesn't make sense to transmit this value (or even to bother to fill it in at the transmitting end), so it is filled in automatically by the demux on arrival.
  • Constructor Details

    • Message

      public Message()
  • Method Details