Package org.jcsp.net2
Class NetworkProtocol
java.lang.Object
org.jcsp.net2.NetworkProtocol
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
FieldsModifier and TypeFieldDescription(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 -
Method Summary
-
Field Details
-
SEND
static final byte SENDA SEND message from an output end to an input end- See Also:
-
ACK
static final byte ACKAn ACKnowledgment that releases an output end after a write- See Also:
-
ENROLL
static final byte ENROLLAn ENROLLment from a client end of a NetBarrier to a server end- See Also:
-
RESIGN
static final byte RESIGNA RESIGNation of a client end of a NetBarrier from a server end- See Also:
-
SYNC
static final byte SYNCA 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 RELEASERELEASEs a waiting client end of a NetBarrier when the server end has completely been synced with- See Also:
-
REJECT_BARRIER
static final byte REJECT_BARRIERRejects a message sent from a NetBarrier.- See Also:
-
REJECT_CHANNEL
static final byte REJECT_CHANNELRejects a message sent from a NetChannelOutput- See Also:
-
LINK_LOST
static final byte LINK_LOSTSignifies that a Link has been lost- See Also:
-
MOVED
static final byte MOVEDMobility message. Still to be defined- See Also:
-
ARRIVED
static final byte ARRIVEDMobility message. Still to be defined- See Also:
-
POISON
static final byte POISONA POISON message sent to poison a channel end- See Also:
-
ASYNC_SEND
static final byte ASYNC_SENDAn Asynchronous send operation- See Also:
-
OPEN
static final byte OPENThe initial message sent from a client connection end to a server end- See Also:
-
REQUEST
static final byte REQUESTThe subsequent communications from a client connection before closing- See Also:
-
REPLY
static final byte REPLYThe reply from the server end of a connection- See Also:
-
REPLY_AND_CLOSE
static final byte REPLY_AND_CLOSEA reply from the server end of a connection which also closes the connection- See Also:
-
ASYNC_OPEN
static final byte ASYNC_OPENAn asynchronous open message- See Also:
-
ASYNC_REQUEST
static final byte ASYNC_REQUESTAn asynchronous request to a connection server- See Also:
-
ASYNC_REPLY
static final byte ASYNC_REPLYAn asynchronous reply from the server- See Also:
-
ASYNC_REPLY_AND_CLOSE
static final byte ASYNC_REPLY_AND_CLOSEAn asynchronous reply and close- See Also:
-
REQUEST_ACK
static final byte REQUEST_ACKAn acknowledgement of the initial OPEN or REQUEST by a client connection end- See Also:
-
REPLY_ACK
static final byte REPLY_ACKAn acknowledgement of a connection server REPLY- See Also:
-
REJECT_CONNECTION
static final byte REJECT_CONNECTIONRejects a message from a networked connection- See Also:
-
-
Constructor Details
-
NetworkProtocol
private NetworkProtocol()Empty constructor. This is a static set of values
-