Package org.jcsp.net2

Class NetworkProtocol

java.lang.Object
org.jcsp.net2.NetworkProtocol

final class NetworkProtocol extends Object
This class defines the constants used within the Link interactions. This is the network protocol for JCSP. This is an internal class to JCSP, used specifically between Links and the Links and the networked constructs.
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    (package private) static final byte
    An ACKnowledgment that releases an output end after a write
    (package private) static final byte
    Mobility message.
    (package private) static final byte
    An asynchronous open message
    (package private) static final byte
    An asynchronous reply from the server
    (package private) static final byte
    An asynchronous reply and close
    (package private) static final byte
    An asynchronous request to a connection server
    (package private) static final byte
    An Asynchronous send operation
    (package private) static final byte
    An ENROLLment from a client end of a NetBarrier to a server end
    (package private) static final byte
    Signifies that a Link has been lost
    (package private) static final byte
    Mobility message.
    (package private) static final byte
    The initial message sent from a client connection end to a server end
    (package private) static final byte
    A POISON message sent to poison a channel end
    (package private) static final byte
    Rejects a message sent from a NetBarrier.
    (package private) static final byte
    Rejects a message sent from a NetChannelOutput
    (package private) static final byte
    Rejects a message from a networked connection
    (package private) static final byte
    RELEASEs a waiting client end of a NetBarrier when the server end has completely been synced with
    (package private) static final byte
    The reply from the server end of a connection
    (package private) static final byte
    An acknowledgement of a connection server REPLY
    (package private) static final byte
    A reply from the server end of a connection which also closes the connection
    (package private) static final byte
    The subsequent communications from a client connection before closing
    (package private) static final byte
    An acknowledgement of the initial OPEN or REQUEST by a client connection end
    (package private) static final byte
    A RESIGNation of a client end of a NetBarrier from a server end
    (package private) static final byte
    A SEND message from an output end to an input end
    (package private) static final byte
    A SYNChronization message sent from a client end of a NetBarrier to a server end when the client's local processes have all synchronised
  • Constructor Summary

    Constructors
    Modifier
    Constructor
    Description
    private
    Empty constructor.
  • Method Summary

    Methods inherited from class java.lang.Object

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

    • SEND

      static final byte SEND
      A SEND message from an output end to an input end
      See Also:
    • ACK

      static final byte ACK
      An ACKnowledgment that releases an output end after a write
      See Also:
    • ENROLL

      static final byte ENROLL
      An ENROLLment from a client end of a NetBarrier to a server end
      See Also:
    • RESIGN

      static final byte RESIGN
      A RESIGNation of a client end of a NetBarrier from a server end
      See Also:
    • SYNC

      static final byte SYNC
      A SYNChronization message sent from a client end of a NetBarrier to a server end when the client's local processes have all synchronised
      See Also:
    • RELEASE

      static final byte RELEASE
      RELEASEs a waiting client end of a NetBarrier when the server end has completely been synced with
      See Also:
    • REJECT_BARRIER

      static final byte REJECT_BARRIER
      Rejects a message sent from a NetBarrier.
      See Also:
    • REJECT_CHANNEL

      static final byte REJECT_CHANNEL
      Rejects a message sent from a NetChannelOutput
      See Also:
    • MOVED

      static final byte MOVED
      Mobility message. Still to be defined
      See Also:
    • ARRIVED

      static final byte ARRIVED
      Mobility message. Still to be defined
      See Also:
    • POISON

      static final byte POISON
      A POISON message sent to poison a channel end
      See Also:
    • ASYNC_SEND

      static final byte ASYNC_SEND
      An Asynchronous send operation
      See Also:
    • OPEN

      static final byte OPEN
      The initial message sent from a client connection end to a server end
      See Also:
    • REQUEST

      static final byte REQUEST
      The subsequent communications from a client connection before closing
      See Also:
    • REPLY

      static final byte REPLY
      The reply from the server end of a connection
      See Also:
    • REPLY_AND_CLOSE

      static final byte REPLY_AND_CLOSE
      A reply from the server end of a connection which also closes the connection
      See Also:
    • ASYNC_OPEN

      static final byte ASYNC_OPEN
      An asynchronous open message
      See Also:
    • ASYNC_REQUEST

      static final byte ASYNC_REQUEST
      An asynchronous request to a connection server
      See Also:
    • ASYNC_REPLY

      static final byte ASYNC_REPLY
      An asynchronous reply from the server
      See Also:
    • ASYNC_REPLY_AND_CLOSE

      static final byte ASYNC_REPLY_AND_CLOSE
      An asynchronous reply and close
      See Also:
    • REQUEST_ACK

      static final byte REQUEST_ACK
      An acknowledgement of the initial OPEN or REQUEST by a client connection end
      See Also:
    • REPLY_ACK

      static final byte REPLY_ACK
      An acknowledgement of a connection server REPLY
      See Also:
    • REJECT_CONNECTION

      static final byte REJECT_CONNECTION
      Rejects a message from a networked connection
      See Also:
  • Constructor Details

    • NetworkProtocol

      private NetworkProtocol()
      Empty constructor. This is a static set of values