|
||||||||||
| 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, encoding, 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, getAgent, getChannel, getConnectionTime, getEncoding, getIdleTime, getInetAddress, getProtocol, getSocket, getUser, getVersion, receive, setAgent, setChannel, setProtocol, setSocket, 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 Runnablerun in class TetrinetClientpublic void setFirstMessage(Message firstMessage)
public void send(Message m)
Client
send in interface Clientsend in interface Destinationsend in class TetrinetClientm - the message to sendpublic boolean supportsAutoJoin()
Client
supportsAutoJoin in interface ClientsupportsAutoJoin in class TetrinetClientprotected boolean isAsynchronous()
TetrinetClient
isAsynchronous in class TetrinetClient
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||