|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjava.io.Writer
java.io.PrintWriter
org.xistrat.net.msg.ClientServerPrintStream
public class ClientServerPrintStream
ClientServerPrintStream
Specialized output Stream that describes interaction between the Client and the Server. Holds methods to send messages FROM CLIENT TO SERVER
Field Summary |
---|
Fields inherited from class java.io.PrintWriter |
---|
out |
Fields inherited from class java.io.Writer |
---|
lock |
Constructor Summary | |
---|---|
ClientServerPrintStream(java.io.OutputStream os)
|
|
ClientServerPrintStream(java.io.OutputStream os,
boolean verbose)
|
Method Summary | |
---|---|
void |
abort()
|
void |
gameList()
|
void |
login(java.lang.String gameName,
java.lang.String alias)
|
void |
logout()
|
void |
move(int from,
int to)
|
void |
newGame(java.lang.String gameName,
java.lang.String position,
java.lang.String komi)
|
void |
pass()
|
void |
put(int to)
|
void |
remove(int to)
|
void |
undo(int num)
|
Methods inherited from class java.io.PrintWriter |
---|
append, append, append, checkError, close, flush, format, format, print, print, print, print, print, print, print, print, print, printf, printf, println, println, println, println, println, println, println, println, println, println, setError, write, write, write, write, write |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public ClientServerPrintStream(java.io.OutputStream os)
public ClientServerPrintStream(java.io.OutputStream os, boolean verbose)
Method Detail |
---|
public void gameList()
gameList
in interface Server
public void newGame(java.lang.String gameName, java.lang.String position, java.lang.String komi)
newGame
in interface Server
public void login(java.lang.String gameName, java.lang.String alias)
login
in interface Server
public void undo(int num)
undo
in interface Server
public void logout()
logout
in interface Server
public void abort()
abort
in interface Server
public void move(int from, int to)
move
in interface Server
public void put(int to)
put
in interface Server
public void pass()
pass
in interface Server
public void remove(int to)
remove
in interface Server
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |