Package org.jcsp.net2
Class NetworkProtocol
- java.lang.Object
-
- org.jcsp.net2.NetworkProtocol
-
final class NetworkProtocol extends java.lang.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 byte
ACK
An ACKnowledgment that releases an output end after a write(package private) static byte
ARRIVED
Mobility message.(package private) static byte
ASYNC_OPEN
An asynchronous open message(package private) static byte
ASYNC_REPLY
An asynchronous reply from the server(package private) static byte
ASYNC_REPLY_AND_CLOSE
An asynchronous reply and close(package private) static byte
ASYNC_REQUEST
An asynchronous request to a connection server(package private) static byte
ASYNC_SEND
An Asynchronous send operation(package private) static byte
ENROLL
An ENROLLment from a client end of a NetBarrier to a server end(package private) static byte
LINK_LOST
Signifies that a Link has been lost(package private) static byte
MOVED
Mobility message.(package private) static byte
OPEN
The initial message sent from a client connection end to a server end(package private) static byte
POISON
A POISON message sent to poison a channel end(package private) static byte
REJECT_BARRIER
Rejects a message sent from a NetBarrier.(package private) static byte
REJECT_CHANNEL
Rejects a message sent from a NetChannelOutput(package private) static byte
REJECT_CONNECTION
Rejects a message from a networked connection(package private) static byte
RELEASE
RELEASEs a waiting client end of a NetBarrier when the server end has completely been synced with(package private) static byte
REPLY
The reply from the server end of a connection(package private) static byte
REPLY_ACK
An acknowledgement of a connection server REPLY(package private) static byte
REPLY_AND_CLOSE
A reply from the server end of a connection which also closes the connection(package private) static byte
REQUEST
The subsequent communications from a client connection before closing(package private) static byte
REQUEST_ACK
An acknowledgement of the initial OPEN or REQUEST by a client connection end(package private) static byte
RESIGN
A RESIGNation of a client end of a NetBarrier from a server end(package private) static byte
SEND
A SEND message from an output end to an input end(package private) static 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
-
Constructor Summary
Constructors Modifier Constructor Description private
NetworkProtocol()
Empty constructor.
-
-
-
Field Detail
-
SEND
static final byte SEND
A SEND message from an output end to an input end- See Also:
- Constant Field Values
-
ACK
static final byte ACK
An ACKnowledgment that releases an output end after a write- See Also:
- Constant Field Values
-
ENROLL
static final byte ENROLL
An ENROLLment from a client end of a NetBarrier to a server end- See Also:
- Constant Field Values
-
RESIGN
static final byte RESIGN
A RESIGNation of a client end of a NetBarrier from a server end- See Also:
- Constant Field Values
-
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:
- Constant Field Values
-
RELEASE
static final byte RELEASE
RELEASEs a waiting client end of a NetBarrier when the server end has completely been synced with- See Also:
- Constant Field Values
-
REJECT_BARRIER
static final byte REJECT_BARRIER
Rejects a message sent from a NetBarrier.- See Also:
- Constant Field Values
-
REJECT_CHANNEL
static final byte REJECT_CHANNEL
Rejects a message sent from a NetChannelOutput- See Also:
- Constant Field Values
-
LINK_LOST
static final byte LINK_LOST
Signifies that a Link has been lost- See Also:
- Constant Field Values
-
MOVED
static final byte MOVED
Mobility message. Still to be defined- See Also:
- Constant Field Values
-
ARRIVED
static final byte ARRIVED
Mobility message. Still to be defined- See Also:
- Constant Field Values
-
POISON
static final byte POISON
A POISON message sent to poison a channel end- See Also:
- Constant Field Values
-
ASYNC_SEND
static final byte ASYNC_SEND
An Asynchronous send operation- See Also:
- Constant Field Values
-
OPEN
static final byte OPEN
The initial message sent from a client connection end to a server end- See Also:
- Constant Field Values
-
REQUEST
static final byte REQUEST
The subsequent communications from a client connection before closing- See Also:
- Constant Field Values
-
REPLY
static final byte REPLY
The reply from the server end of a connection- See Also:
- Constant Field Values
-
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:
- Constant Field Values
-
ASYNC_OPEN
static final byte ASYNC_OPEN
An asynchronous open message- See Also:
- Constant Field Values
-
ASYNC_REQUEST
static final byte ASYNC_REQUEST
An asynchronous request to a connection server- See Also:
- Constant Field Values
-
ASYNC_REPLY
static final byte ASYNC_REPLY
An asynchronous reply from the server- See Also:
- Constant Field Values
-
ASYNC_REPLY_AND_CLOSE
static final byte ASYNC_REPLY_AND_CLOSE
An asynchronous reply and close- See Also:
- Constant Field Values
-
REQUEST_ACK
static final byte REQUEST_ACK
An acknowledgement of the initial OPEN or REQUEST by a client connection end- See Also:
- Constant Field Values
-
REPLY_ACK
static final byte REPLY_ACK
An acknowledgement of a connection server REPLY- See Also:
- Constant Field Values
-
REJECT_CONNECTION
static final byte REJECT_CONNECTION
Rejects a message from a networked connection- See Also:
- Constant Field Values
-
-