|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectnet.jetrix.clients.TetrinetClient
net.jetrix.clients.QueryClient
public class QueryClient
Client for the query protocol on port 31457.
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 |
---|
public QueryClient()
Method Detail |
---|
public void run()
TetrinetClient
run
in interface Runnable
run
in class TetrinetClient
public void setFirstMessage(Message firstMessage)
public void send(Message m)
Client
send
in interface Client
send
in interface Destination
send
in class TetrinetClient
m
- the message to sendpublic boolean supportsAutoJoin()
Client
supportsAutoJoin
in interface Client
supportsAutoJoin
in class TetrinetClient
protected boolean isAsynchronous()
TetrinetClient
isAsynchronous
in class TetrinetClient
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |