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

Method Index

 o CTS()
Creates a CTS (Clear to send) Message.
 o 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.
 o DOWN(int)
Creates a DOWN (client is down) Message.
 o INVRQ()
Creates a INVRQ (invalid request) Message to be sent back to the client that issued a request.
 o RESET()
Creates a RESET Message.

Methods

 o DOWN
  public static Message DOWN(int player)
Creates a DOWN (client is down) Message. No parameter checkings performed.
Parameters:
player - The client number
 o 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
 o 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
 o 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
 o RESET
  public static Message RESET()
Creates a RESET Message. The client should reinitialize upon receiving this Message.
Returns:
A new RESET Message