net.jetrix.clients
Class QueryClient

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

public class QueryClient
extends TetrinetClient

Client for the query protocol on port 31457.

Version:
$Revision: 599 $, $Date: 2005-01-17 21:57:21 +0100 (lun., 17 janv. 2005) $
Author:
Emmanuel Bourg

Field Summary
 
Fields inherited from class net.jetrix.clients.TetrinetClient
connectionTime, disconnected, in, lastMessageTime, log, out, queue, serverConfig, socket
 
Constructor Summary
QueryClient()
           
 
Method Summary
protected  boolean isAsynchronous()
          Tells if the messages are sent asynchroneously to the client.
 void run()
          Main loop listening and parsing messages sent by the client.
 void send(Message m)
          Send a message to the client.
 void setFirstMessage(Message firstMessage)
          Set the first command issued by this client.
 boolean supportsAutoJoin()
          Tell if the client can be affected automatically to a channel on connecting to the server.
 
Methods inherited from class net.jetrix.clients.TetrinetClient
disconnect, getChannel, getConnectionTime, getIdleTime, getInetAddress, getProtocol, getSocket, getType, getUser, getVersion, receiveMessage, setChannel, setProtocol, setSocket, setType, setUser, setVersion, supportsMultipleChannels, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

QueryClient

public QueryClient()
Method Detail

run

public void run()
Description copied from class: TetrinetClient
Main loop listening and parsing messages sent by the client.

Specified by:
run in interface Runnable
Overrides:
run in class TetrinetClient

setFirstMessage

public void setFirstMessage(Message firstMessage)
Set the first command issued by this client.


send

public void send(Message m)
Description copied from interface: Client
Send a message to the client. The raw message property must be set.

Specified by:
send in interface Client
Specified by:
send in interface Destination
Overrides:
send in class TetrinetClient
Parameters:
m - the message to send

supportsAutoJoin

public boolean supportsAutoJoin()
Description copied from interface: Client
Tell if the client can be affected automatically to a channel on connecting to the server.

Specified by:
supportsAutoJoin in interface Client
Overrides:
supportsAutoJoin in class TetrinetClient

isAsynchronous

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

Overrides:
isAsynchronous in class TetrinetClient


Copyright © 2001-2008 Emmanuel Bourg. All Rights Reserved.