All Packages  Class Hierarchy  This Package  Previous  Next  Index

Class cnctInfoSocket.cnctInfoSocketClient

java.lang.Object
   |
   +----java.lang.Thread
           |
           +----cnctInfoSocket.lineSocket
                   |
                   +----cnctInfoSocket.cnctInfoSocketClient

public class cnctInfoSocketClient
extends lineSocket

Variable Index

 o canISend
 o event
 o firstread
 o gameList
 o games
 o iHaveSend
 o LOGIN
 o NOTHING
 o playerList
 o players
 o pollgames
 o pollplayers
 o stopListening

Constructor Index

 o cnctInfoSocketClient(cnctInfoSocketEvent, String, int)

Method Index

 o close()
 o cutComment(String)
 o extractPlayer(knoten)
 o getComment(String)
 o getOneGame()
 o getOnePlayer()
 o getWhatISend()
 o handleInput(String)
 o join(int)
 o login(String)
 o logout()
 o newGame(int, int)
 o run()
 o watch(int)
 o who()

Variables

 o event
 private cnctInfoSocketEvent event
 o stopListening
 private boolean stopListening
 o firstread
 private boolean firstread
 o iHaveSend
 private int iHaveSend
 o NOTHING
 public static final int NOTHING
 o LOGIN
 public static final int LOGIN
 o playerList
 private cnctInfoPlayerList playerList
 o gameList
 private cnctInfoGameList gameList
 o players
 private String players[]
 o games
 private int games[]
 o pollplayers
 private int pollplayers
 o pollgames
 private int pollgames
 o canISend
 private boolean canISend

Constructors

 o cnctInfoSocketClient
 public cnctInfoSocketClient(cnctInfoSocketEvent _event,
                             String _hostname,
                             int _port) throws cnctSocketException

Methods

 o getWhatISend
 public int getWhatISend()
 o run
 public void run()
Overrides:
run in class Thread
 o handleInput
 public void handleInput(String input) throws cnctSocketException
 o getOnePlayer
 private boolean getOnePlayer()
 o getOneGame
 private boolean getOneGame()
 o extractPlayer
 private boolean extractPlayer(knoten baum)
 o cutComment
 private String cutComment(String input)
 o getComment
 private String getComment(String input)
 o login
 public boolean login(String name)
 o logout
 public boolean logout()
 o join
 public boolean join(int gameNr)
 o watch
 public boolean watch(int gameNr)
 o who
 public boolean who()
 o newGame
 public boolean newGame(int gamesize,
                        int color)
 o close
 public void close()
Overrides:
close in class lineSocket

All Packages  Class Hierarchy  This Package  Previous  Next  Index