ggz.client.core
Class Net

java.lang.Object
  extended by ggz.client.core.Net
All Implemented Interfaces:
java.lang.Runnable

public class Net
extends java.lang.Object
implements java.lang.Runnable


Nested Class Summary
protected static class Net.GameData
           
protected static class Net.PlayerInfoData
           
protected  class Net.SwappableInputStream
           
protected  class Net.SwappableOutputStream
           
protected static class Net.TableData
           
protected  class Net.XML_Parser
           
 
Field Summary
static int GGZ_CS_PROTO_VERSION
           
protected static java.util.logging.Logger log
           
protected  Server server
           
protected  java.io.OutputStream serverXMLTrace
           
protected  java.util.Stack stack
           
protected  Net.SwappableInputStream streamIn
           
protected  Net.SwappableOutputStream streamOut
           
 
Method Summary
protected  void handle_about(XMLElement element)
           
protected  void handle_allow(XMLElement element)
           
protected  void handle_bot(XMLElement element)
           
protected  void handle_chat(XMLElement element)
           
protected  void handle_desc(XMLElement element)
           
protected  void handle_game(XMLElement element)
           
protected  void handle_info(XMLElement element)
           
protected  void handle_join(XMLElement element)
           
protected  void handle_leave(XMLElement element)
           
protected  void handle_list(XMLElement element)
           
protected  void handle_motd(XMLElement element)
           
protected  void handle_options(XMLElement element)
           
protected  void handle_password(XMLElement element)
           
protected  void handle_ping(XMLElement element)
           
protected  void handle_player(XMLElement element)
           
protected  void handle_playerinfo(XMLElement element)
           
protected  void handle_protocol(XMLElement element)
           
protected  void handle_result(XMLElement element)
           
protected  void handle_room(XMLElement element)
           
protected  void handle_seat(XMLElement element)
           
protected  void handle_server(XMLElement element)
           
protected  void handle_session(XMLElement element)
           
protected  void handle_spectator_seat(XMLElement element)
           
protected  void handle_table(XMLElement element)
           
protected  void handle_update(XMLElement element)
           
 void run()
          Main message pump.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

log

protected static final java.util.logging.Logger log

GGZ_CS_PROTO_VERSION

public static final int GGZ_CS_PROTO_VERSION
See Also:
Constant Field Values

server

protected Server server

streamOut

protected Net.SwappableOutputStream streamOut

streamIn

protected Net.SwappableInputStream streamIn

stack

protected java.util.Stack stack

serverXMLTrace

protected java.io.OutputStream serverXMLTrace
Method Detail

handle_server

protected void handle_server(XMLElement element)
                      throws java.io.IOException
Throws:
java.io.IOException

handle_options

protected void handle_options(XMLElement element)

handle_motd

protected void handle_motd(XMLElement element)

handle_result

protected void handle_result(XMLElement element)

handle_password

protected void handle_password(XMLElement element)

handle_list

protected void handle_list(XMLElement element)

handle_update

protected void handle_update(XMLElement element)
                      throws java.io.IOException
Throws:
java.io.IOException

handle_game

protected void handle_game(XMLElement element)

handle_protocol

protected void handle_protocol(XMLElement element)

handle_allow

protected void handle_allow(XMLElement element)

handle_about

protected void handle_about(XMLElement element)

handle_bot

protected void handle_bot(XMLElement element)

handle_desc

protected void handle_desc(XMLElement element)

handle_room

protected void handle_room(XMLElement element)

handle_player

protected void handle_player(XMLElement element)

handle_table

protected void handle_table(XMLElement element)

handle_seat

protected void handle_seat(XMLElement element)

handle_spectator_seat

protected void handle_spectator_seat(XMLElement element)

handle_leave

protected void handle_leave(XMLElement element)

handle_join

protected void handle_join(XMLElement element)
                    throws java.io.IOException
Throws:
java.io.IOException

handle_chat

protected void handle_chat(XMLElement element)

handle_info

protected void handle_info(XMLElement element)

handle_playerinfo

protected void handle_playerinfo(XMLElement element)

handle_ping

protected void handle_ping(XMLElement element)
                    throws java.io.IOException
Throws:
java.io.IOException

handle_session

protected void handle_session(XMLElement element)

run

public void run()
Main message pump.

Specified by:
run in interface java.lang.Runnable