FileDocCategorySizeDatePackage
ServerMessage.javaAPI DocExample2743Sat Sep 12 03:01:00 BST 1998borland.samples.apps.chess.client

ServerMessage

public class ServerMessage extends Object
The data stucture used by the classes that send/receive messages as sent between client and server
param
int port the port number of the originator of the message (used by server only)
param
String msgid The message type (cannot contain any spaces)
param
String msg The message type specific data

Fields Summary
public int
port
public String
msgid
public String
msg
public static String
BYE
public static String
TOKEN
public static String
REFUSED
public static String
STATUS
public static String
CHAT
public static String
LIST
public static String
WELCOME
public static String
PLAYER_LIST
public static String
LIBRARY_LIST
public static String
MOVE_LIST
public static String
RESUME
public static String
LIBRARY_GAME
public static String
RESIGNED
public static String
MOVED
public static String
TOKEN_MOVE
public static String
ACCEPT_ABORT
public static String
ACCEPT_DRAW
public static String
GAME_ACCEPTED
public static String
INFORMATION
public static String
INFO
public static String
OFFER_DRAW
public static String
OFFER_ABORT
public static String
CHALLENGED
public static String
DEAD
Constructors Summary
public ServerMessage(int port, String messageId, String message)



       
    this.port  = port;
    this.msgid = messageId;
    this.msg   = message;
  
Methods Summary