|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objecttwcsckernel.projectbase.rmi.socketfactory.TwoWay
public class TwoWay
Constants and utilities for the two-way signalling protocol.
Field Summary | |
---|---|
static int |
MAX_MESSAGE_LENGTH
Maximum length of messages in the protocol. |
static int |
PROTOCOL_MAGIC
Header for all messages in the protocol |
static int |
REGISTER_CALLBACK_SOCKET_SOURCE
Sent by client to register the signalling channel socket with the server. |
static int |
REQUEST_CALLBACK_SOCKET
Sent by the server to the client to request that the client make a callback socket for the server's use. |
static int |
RETURN_CALLBACK_SOCKET
Sent by the client to tell the server that the socket is a callback socket for the server's use in calling client callbacks. |
static int |
RETURN_SERVER_ENDPOINT_INFO
Sent by the server to the client to inform the client of the server address. |
Constructor Summary | |
---|---|
TwoWay()
|
Method Summary | |
---|---|
static java.lang.String |
getAddressString(byte[] address)
Utility method to convert an IP address to a string. |
static java.lang.String |
getOpcodeName(int opcode)
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final int PROTOCOL_MAGIC
public static final int REGISTER_CALLBACK_SOCKET_SOURCE
public static final int RETURN_CALLBACK_SOCKET
public static final int REQUEST_CALLBACK_SOCKET
public static final int RETURN_SERVER_ENDPOINT_INFO
public static final int MAX_MESSAGE_LENGTH
Constructor Detail |
---|
public TwoWay()
Method Detail |
---|
public static java.lang.String getAddressString(byte[] address)
address
- The four bytes of an IP address.
public static java.lang.String getOpcodeName(int opcode)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |