Class ServerMessageCreator
Class ServerMessageCreator
java.lang.Object
|
+----MessageCreator
|
+----ServerMessageCreator
- class ServerMessageCreator
- extends MessageCreator
A class used in creating various server-side Messages.
Of interest only to server hackers.
Written: Radu Sion
Version: 0.21
Source: ServerMessageCreator.java
- See Also:
- Message, MessageCreator, MessageConstants, ClientMessageCreator
-
CTS()
- Creates a CTS (Clear to send) Message.
-
DNF(int)
- Creates a DNF (Destination not found == some sort of INVRQ) Message to be sent
back to the client that sent a Message to a invalid destination.
-
DOWN(int)
- Creates a DOWN (client is down) Message.
-
INVRQ()
- Creates a INVRQ (invalid request) Message to be sent back to the client that issued a request.
-
RESET()
- Creates a RESET Message.
DOWN
public static Message DOWN(int player)
- Creates a DOWN (client is down) Message.
No parameter checkings performed.
- Parameters:
- player - The client number
INVRQ
public static Message INVRQ()
- Creates a INVRQ (invalid request) Message to be sent back to the client that issued a request.
- Returns:
- The new INVRQ Message
DNF
public static Message DNF(int player)
- Creates a DNF (Destination not found == some sort of INVRQ) Message to be sent
back to the client that sent a Message to a invalid destination.
No parameter checkings performed.
- Parameters:
- player - The wrong destination client number
- Returns:
- A new DNF Message
CTS
public static Message CTS()
- Creates a CTS (Clear to send) Message. The client should send only upon
receiving this Message. Is needed to prevent overloading ofthe server inqueue
if the client becomes mad and fills it up.
- Returns:
- A new CTS Message
RESET
public static Message RESET()
- Creates a RESET Message. The client should reinitialize upon receiving
this Message.
- Returns:
- A new RESET Message