|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface SimpleSgsProtocol
SGS Protocol constants.
A protocol message is constructed as follows:
A ByteArray is encoded as follows:
A String is encoded as follows:
DataInput
| Field Summary | |
|---|---|
static byte |
CHANNEL_JOIN
Channel join. |
static byte |
CHANNEL_LEAVE
Channel leave. |
static byte |
CHANNEL_MESSAGE
Channel message. |
static byte |
LOGIN_FAILURE
Login failure. |
static byte |
LOGIN_REDIRECT
Login redirect. |
static byte |
LOGIN_REQUEST
Login request from a client to a server. |
static byte |
LOGIN_SUCCESS
Login success. |
static byte |
LOGOUT_REQUEST
Logout request from a client to a server. |
static byte |
LOGOUT_SUCCESS
Logout success. |
static int |
MAX_MESSAGE_LENGTH
The maximum length of a protocol message: 65535 bytes. |
static int |
MAX_PAYLOAD_LENGTH
The maximum payload length: 65532 bytes. |
static byte |
RECONNECT_FAILURE
Reconnect failure. |
static byte |
RECONNECT_REQUEST
Reconnection request. |
static byte |
RECONNECT_SUCCESS
Reconnect success. |
static byte |
SESSION_MESSAGE
Session message. |
static byte |
VERSION
The version number, currently 0x04. |
| Field Detail |
|---|
static final int MAX_MESSAGE_LENGTH
static final int MAX_PAYLOAD_LENGTH
static final byte VERSION
0x04.
static final byte LOGIN_REQUEST
0x10
static final byte LOGIN_SUCCESS
LOGIN_REQUEST.
0x11
static final byte LOGIN_FAILURE
LOGIN_REQUEST.
0x12
static final byte LOGIN_REDIRECT
LOGIN_REQUEST.
0x13
static final byte RECONNECT_REQUEST
0x20
static final byte RECONNECT_SUCCESS
RECONNECT_REQUEST.
0x21
static final byte RECONNECT_FAILURE
RECONNECT_REQUEST.
0x22
static final byte SESSION_MESSAGE
0x30
static final byte LOGOUT_REQUEST
0x40
static final byte LOGOUT_SUCCESS
LOGOUT_REQUEST.
0x41
static final byte CHANNEL_JOIN
0x50
static final byte CHANNEL_LEAVE
0x51
static final byte CHANNEL_MESSAGE
0x52
|
Project Darkstar, Version 0.9.7.2 2013-07-29 20:11:27 |
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||