Class Mstream

java.lang.Object
   |
   +----Mstream

public class Mstream
extends Object
implements Runnable
 Code strings going thru Mstream
 from the  player
 C who game message - connection requirement
                     return C
 G - game list required
 W - user list required (not used)
 Q - users quit
 A who message - accept connection with [who]
                      return A 
-
 for the player
 C N message - cannot ask [who]
   W - wait .. asking [who]  (cf R string for another player)
 A N message - cannot connect
   Y - - connected (cf Z string for another player)
 L nick1>info1>from1>playing1>nick2>... give the userlist
 G name1:field1#name2:field2# ... give the gamelist
 -
 for another player
 R myNick game message - ask [who]
 Z Y myNick message - connect 
 

See Also:
ServM

Variable Index

 o IO
 o nick
 o player

Constructor Index

 o Mstream(String)
Construct a new Mstream and launch the Thread for a Player

Method Index

 o fb(String)
 o getClass(String, String)
 o gli()
 o log(String)
 o parseS(char, String, boolean)
parse the input stream
 o run()
Reads the stream, parses the Input
 o startGame(Player, String, String)
 o uli()

Variables

 o IO
 private Thread IO
 o nick
 private String nick
 o player
 private Player player

Constructors

 o Mstream
 public Mstream(String token)
Construct a new Mstream and launch the Thread for a Player

Methods

 o run
 public void run()
Reads the stream, parses the Input

 o parseS
 void parseS(char comm,
             String arg,
             boolean playing)
parse the input stream

 o startGame
 void startGame(Player required,
                String who,
                String game)
 o getClass
 String getClass(String key,
                 String type)
 o fb
 void fb(String msg)
 o gli
 void gli()
 o uli
 void uli()
 o log
 void log(String msg)