|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
This class describes the protocol between the server and the client. Contained in here are a whole bunch of constants that represent commands going over the wire. A command consists of string arguments separated by DELIMITER. The recipient of a command determines what the command is by looking at the first argument. The first argument will be a string from this class (at least for the core set of commands).
There are two helper classes for creating valid commands (one server, one client).
Note: Consult the protocol documentation instead of this class. It's messy in here.
CommandMakerLocal
,
CommandMakerRemote
Field Summary | |
static java.lang.String |
ACCESS_DENIED
|
static java.lang.String |
ACK_KILL
|
static java.lang.String |
ALREADY_SIGNED_ON
|
static java.lang.String |
DELIMITER
The delimiter. |
static java.lang.String |
EMOTE_TO_ROOM
"emote" something |
static java.lang.String |
EMOTE_TO_USER
"emote" something, privately, to only one user |
static java.lang.String |
ERROR
Indicates an error message that should be displayed by the client |
static java.lang.String |
GET_ROOMS
Request (or send) a list of the users currently on the server. |
static java.lang.String |
GET_USERS_IN_ROOM
Request (or send) a list of the users in a particular room. |
static java.lang.String |
GET_USERS_ON_SERVER
Request (or send) a list of the users currently on the server. |
static java.lang.String |
HELP
Request help in general or help about a specific command. |
static java.lang.String |
HYPERLINK
|
static java.lang.String |
IGNORE
Ignore |
static java.lang.String |
INVALID_CHARACTER
|
static java.lang.String |
INVITE
Invite |
static java.lang.String |
JOIN_ROOM
Join a room. |
static java.lang.String |
JOIN_ROOM_ACK
Acknowledge that a room was successfully joined. |
static java.lang.String |
KICK
Kick |
static java.lang.String |
KILL
Kill |
static java.lang.String |
NO_INVITE
|
static java.lang.String |
NO_SUCH_USER
|
static java.lang.String |
OP
|
static java.lang.String |
PART_ROOM
Part, or leave, a room. |
static java.lang.String |
PART_ROOM_ACK
Acknowledge that a room was successfully parted. |
static java.lang.String |
PING
Ping |
static java.lang.String |
PONG
Pong |
static java.lang.String |
REMOTE_CLIENT_MESSAGE
|
static java.lang.String |
ROOM_ACCESS_DENIED
|
static java.lang.String |
ROOM_DIFF
|
static java.lang.String |
ROOM_MSG
Indicates that a message should be displayed on the client as coming from a particular room |
static java.lang.String |
ROOM_USER_DIFF
|
static java.lang.String |
SAY_TO_ROOM
"say" something to everybody in a room. |
static java.lang.String |
SAY_TO_USER
"say" something "privately" to just one user. |
static java.lang.String |
SHUTDOWN
|
static java.lang.String |
SIGNOFF
Quit, logout, or exit from the server. |
static java.lang.String |
SIGNON
Sign on to server. |
static java.lang.String |
SIGNON_ACK
Acknowledge that thes that a signon was successful |
static java.lang.String |
STATS
Request server statitics |
static java.lang.String |
UNIGNORE
Unignore |
static java.lang.String |
UNINVITE
UnInvite |
static java.lang.String |
USER_DIFF
|
static java.lang.String |
VERSION
Version |
static java.lang.String |
WHOIS
Request some info about a user. |
Field Detail |
public static final java.lang.String DELIMITER
public static final java.lang.String STATS
args: none
acknowledgement: none
public static final java.lang.String SIGNON
args: username, (password)
acknowledgement: SIGNON_ACK
SIGNON_ACK
public static final java.lang.String SIGNOFF
args: none
acknowledgement: the server will hang up
public static final java.lang.String WHOIS
args: userId
acknowledgement: plain text
public static final java.lang.String HELP
args: a specific command (optional) acknowledgement: plain text
public static final java.lang.String VERSION
Tell the server about what version of the client this is.
This can be a freeform string.
The default implementation sends "NFC Classic.
Java version
args: the version string
acknowledgement: none
public static final java.lang.String KICK
Kick somebody out of a room.
args: room, userid, (message)
acknowledgement: a confirmation message
public static final java.lang.String INVITE
Invite somebody to a room.
args: room, userid
acknowledgement: a confirmation message
public static final java.lang.String UNINVITE
UnInvite somebody from a room.
args: room, userid
acknowledgement: a confirmation message
public static final java.lang.String IGNORE
Mute Messages of another User.
args: userid of user to ignore, (message)
acknowledgement: a general message
public static final java.lang.String UNIGNORE
Unmute Messages of another User.
args: userid of user to remember, (message)
acknowledgement: a general message
public static final java.lang.String SAY_TO_ROOM
When sent from the client...
args: room, message
acknowledgement: a SAY_TO_ROOM message from the server
When sent from the server...
args: user_who_is_talking, room, message
public static final java.lang.String SAY_TO_USER
When sent from the client...
args: recipient, message
acknowledgement: none
When sent from the server...
args: sender, message
public static final java.lang.String EMOTE_TO_ROOM
When sent from the client...
args: room, emote
When sent from the server...
args: sender, room, message
ROOM_MSG
public static final java.lang.String EMOTE_TO_USER
When sent from the client...
args: recipient, emote
acknowledgement: none
When sent from the server...
args: sender, message
public static final java.lang.String JOIN_ROOM
When sent from the client...
args: room
acknowledgement: JOIN_ROOM_ACK
When sent from the server...
Denotes that a new user just joined a room, and will only
be sent to clients who are currently "in" that room.
args: user, room
JOIN_ROOM_ACK
public static final java.lang.String PART_ROOM
When sent from the client...
args: room
acknowledgement: PART_ROOM_ACK
When sent from the server...
Denotes that a user just left a room, and will only be sent
to clients who are currently "in" that room.
args: user, room
PART_ROOM_ACK
public static final java.lang.String GET_USERS_IN_ROOM
When sent from the client...
args: room
acknowledgement: GET_USERS_IN_ROOM
When sent from the server...
A response to a client request.
args: room, room, ........
public static final java.lang.String GET_USERS_ON_SERVER
When sent from the client...
args: none
acknowledgement: GET_USERS_ON_SERVER
When sent from the server...
A response to a client request.
args: user, user, ........
public static final java.lang.String GET_ROOMS
When sent from the client...
args: none
acknowledgement: GET_ROOMS
When sent from the server...
A response to a client request.
args: room, number of users, room, number of users, ........
public static final java.lang.String PING
When sent from the client...
args: current time (milliseconds)
acknowledgement: PONG
When sent from the server...
Notify a user that he is being pinged
args: current time (milliseconds)
acknowledgement: PONG
PONG
public static final java.lang.String PONG
When sent from the client...
Response to a ping
args: current time (milliseconds)
acknowledgement: none
When sent from the server...
The final reply to a PING
args: current time (milliseconds)
acknowledgement: noe
PING
public static final java.lang.String KILL
When sent from the client...
Request to kill somebody
args: user to kill
acknowledgment: ACK_KILL
When sent from the server...
Tells you that you have been killed.
args: the user who killed you, a message
public static final java.lang.String ERROR
args: the message
public static final java.lang.String JOIN_ROOM_ACK
args: the room
in response to: JOIN_ROOM
JOIN_ROOM
public static final java.lang.String PART_ROOM_ACK
args: the room
in response to: PART_ROOM
PART_ROOM
public static final java.lang.String SIGNON_ACK
args: none
in response to: SIGNON
SIGNON
public static final java.lang.String ROOM_MSG
args: room, the message
in response to: EMOTE, any time the server feels like sending
a message that logically belongs in a room.
EMOTE_TO_ROOM
public static final java.lang.String NO_INVITE
public static final java.lang.String ROOM_ACCESS_DENIED
public static final java.lang.String ALREADY_SIGNED_ON
public static final java.lang.String INVALID_CHARACTER
public static final java.lang.String NO_SUCH_USER
public static final java.lang.String ACCESS_DENIED
public static final java.lang.String ACK_KILL
public static final java.lang.String USER_DIFF
public static final java.lang.String ROOM_DIFF
public static final java.lang.String HYPERLINK
public static final java.lang.String SHUTDOWN
public static final java.lang.String REMOTE_CLIENT_MESSAGE
public static final java.lang.String ROOM_USER_DIFF
public static final java.lang.String OP
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |