ggz.client.mod
Class ModGGZSocketIO

java.lang.Object
  extended by ggz.client.mod.ModIO
      extended by ggz.client.mod.ModGGZSocketIO
All Implemented Interfaces:
ModGGZIO, java.lang.Runnable

public class ModGGZSocketIO
extends ModIO
implements java.lang.Runnable, ModGGZIO


Field Summary
 
Fields inherited from class ggz.client.mod.ModIO
in, MSG_GAME_CHAT, MSG_GAME_INFO, MSG_GAME_LAUNCH, MSG_GAME_PLAYER, MSG_GAME_SEAT, MSG_GAME_SERVER, MSG_GAME_SERVER_FD, MSG_GAME_SPECTATOR_SEAT, MSG_GAME_STATE, MSG_GAME_STATS, out, REQ_BOOT, REQ_BOT, REQ_CHAT, REQ_INFO, REQ_OPEN, REQ_SIT, REQ_STAND
 
Constructor Summary
ModGGZSocketIO(ModGGZ ggzMod_GGZ, java.net.Socket fd)
           
 
Method Summary
 void disconnect()
           
 void run()
           
 void send_error(java.lang.String error)
           
 void send_launch()
           
 void send_msg_chat(java.lang.String player, java.lang.String chat_msg)
           
 void send_msg_info(java.util.List infos)
           
 void send_player(java.lang.String name, boolean is_spectator, int seat_num)
           
 void send_seat(Seat seat)
           
 void send_server_fd(java.net.Socket server_fd)
           
 void send_server(java.lang.String host, int port, java.lang.String handle)
           
 void send_spectator_seat(SpectatorSeat seat)
           
 void send_stats(Stat[] player_stats, Stat[] spectator_stats)
           
 
Methods inherited from class ggz.client.mod.ModIO
readBoolean, readInt, readSeatType, readState, readString, writeBoolean, writeInt, writeSeatType, writeState, writeString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ModGGZSocketIO

public ModGGZSocketIO(ModGGZ ggzMod_GGZ,
                      java.net.Socket fd)
               throws java.io.IOException
Throws:
java.io.IOException
Method Detail

run

public void run()
Specified by:
run in interface java.lang.Runnable

disconnect

public void disconnect()
                throws java.io.IOException
Specified by:
disconnect in interface ModGGZIO
Throws:
java.io.IOException

send_launch

public void send_launch()
                 throws java.io.IOException
Specified by:
send_launch in interface ModGGZIO
Throws:
java.io.IOException

send_server

public void send_server(java.lang.String host,
                        int port,
                        java.lang.String handle)
                 throws java.io.IOException
Specified by:
send_server in interface ModGGZIO
Throws:
java.io.IOException

send_server_fd

public void send_server_fd(java.net.Socket server_fd)
Specified by:
send_server_fd in interface ModGGZIO

send_player

public void send_player(java.lang.String name,
                        boolean is_spectator,
                        int seat_num)
                 throws java.io.IOException
Specified by:
send_player in interface ModGGZIO
Throws:
java.io.IOException

send_seat

public void send_seat(Seat seat)
               throws java.io.IOException
Specified by:
send_seat in interface ModGGZIO
Throws:
java.io.IOException

send_spectator_seat

public void send_spectator_seat(SpectatorSeat seat)
                         throws java.io.IOException
Specified by:
send_spectator_seat in interface ModGGZIO
Throws:
java.io.IOException

send_msg_chat

public void send_msg_chat(java.lang.String player,
                          java.lang.String chat_msg)
                   throws java.io.IOException
Specified by:
send_msg_chat in interface ModGGZIO
Throws:
java.io.IOException

send_error

public void send_error(java.lang.String error)
Specified by:
send_error in interface ModGGZIO

send_stats

public void send_stats(Stat[] player_stats,
                       Stat[] spectator_stats)
                throws java.io.IOException
Specified by:
send_stats in interface ModGGZIO
Throws:
java.io.IOException

send_msg_info

public void send_msg_info(java.util.List infos)
                   throws java.io.IOException
Specified by:
send_msg_info in interface ModGGZIO
Throws:
java.io.IOException