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
-
IO
-
-
nick
-
-
player
-
-
Mstream(String)
-
Construct a new Mstream and launch the Thread
for a Player
-
fb(String)
-
-
getClass(String, String)
-
-
gli()
-
-
log(String)
-
-
parseS(char, String, boolean)
- parse the input stream
-
run()
- Reads the stream, parses the Input
-
startGame(Player, String, String)
-
-
uli()
-
IO
private Thread IO
nick
private String nick
player
private Player player
Mstream
public Mstream(String token)
- Construct a new Mstream and launch the Thread
for a Player
run
public void run()
- Reads the stream, parses the Input
parseS
void parseS(char comm,
String arg,
boolean playing)
- parse the input stream
startGame
void startGame(Player required,
String who,
String game)
getClass
String getClass(String key,
String type)
fb
void fb(String msg)
gli
void gli()
uli
void uli()
log
void log(String msg)