net.jetrix.clients
Class TSpecClient

java.lang.Object
  extended by net.jetrix.clients.TetrinetClient
      extended by net.jetrix.clients.TSpecClient
All Implemented Interfaces:
Runnable, Client, Destination

public class TSpecClient
extends TetrinetClient

Spectator client.

Version:
$Revision: 798 $, $Date: 2009-02-18 16:24:28 +0100 (Wed, 18 Feb 2009) $
Author:
Emmanuel Bourg

Field Summary
static int TETRIX_MODE
           
static int TSERV_MODE
           
 
Fields inherited from class net.jetrix.clients.TetrinetClient
connectionTime, disconnected, encoding, in, lastMessageTime, log, out, queue, serverConfig, socket
 
Constructor Summary
TSpecClient()
           
 
Method Summary
 int getMode()
           
protected  boolean isAsynchronous()
          Tells if the messages are sent asynchroneously to the client.
 Message receive()
          Receive a message sent by the client.
 void setMode(int mode)
           
 
Methods inherited from class net.jetrix.clients.TetrinetClient
disconnect, getAgent, getChannel, getConnectionTime, getEncoding, getIdleTime, getInetAddress, getProtocol, getSocket, getUser, getVersion, run, send, setAgent, setChannel, setProtocol, setSocket, setUser, setVersion, supportsAutoJoin, supportsMultipleChannels, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

TETRIX_MODE

public static final int TETRIX_MODE
See Also:
Constant Field Values

TSERV_MODE

public static final int TSERV_MODE
See Also:
Constant Field Values
Constructor Detail

TSpecClient

public TSpecClient()
Method Detail

setMode

public void setMode(int mode)

getMode

public int getMode()

isAsynchronous

protected boolean isAsynchronous()
Description copied from class: TetrinetClient
Tells if the messages are sent asynchroneously to the client.

Overrides:
isAsynchronous in class TetrinetClient

receive

public Message receive()
                throws IOException
Description copied from interface: Client
Receive a message sent by the client.

Specified by:
receive in interface Client
Overrides:
receive in class TetrinetClient
Throws:
IOException


Copyright © 2001-2010. All Rights Reserved.