home *** CD-ROM | disk | FTP | other *** search
/ BUG 15 / BUGCD1998_06.ISO / aplic / jbuilder / jsamples.z / ServerMessage.java < prev    next >
Encoding:
Java Source  |  1997-07-03  |  690 b   |  20 lines

  1.  
  2. package borland.samples.apps.chess.client;
  3.  
  4. /** The data stucture used by the classes that send/receive messages as sent between client and server
  5. * @param int port the port number of the originator of the message (used by server only)
  6. * @param String msgid The message type (cannot contain any spaces)
  7. * @param String msg The message type specific data
  8. */
  9. public class ServerMessage
  10. {
  11.   public int    port;    //who sent it
  12.   public String msgid;   //message type
  13.   public String msg;     //message type specific data
  14.  
  15.   public ServerMessage(int port,String messageId,String message) {
  16.     this.port  = port;
  17.     this.msgid = messageId;
  18.     this.msg   = message;
  19.   }
  20. }
  21.