|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectjava.lang.Thread
org.cyberiantiger.mudclient.net.MudConnection
| Field Summary | |
static int |
CONNECTED
|
static int |
CONNECTING
|
static int |
DISCONNECTED
|
static int |
DISCONNECTING
|
| Fields inherited from class java.lang.Thread |
MAX_PRIORITY, MIN_PRIORITY, NORM_PRIORITY |
| Constructor Summary | |
MudConnection(Display client)
Create a new MudConnection for the specified MudClient to the destination:port. |
|
| Method Summary | |
void |
command(java.lang.String text)
|
boolean |
connect()
Connect to the mud. |
boolean |
disconnect()
Disconnect from the mud. |
boolean |
getLocalEcho()
Get whether or not we should echo user input to the console. |
int |
getStatus()
Get the current status of the MudConnection. |
void |
run()
Read bytes from the TelnetSocket [if it's connected], parse, and deliver the appropriate ConsoleActions to the MudClient. |
void |
setParser(Parser parser)
Set the parser to use to parse output from the mud. |
void |
setWindowSize(int width,
int height)
Set the window size which is reported to the mud via telnet negotiation. |
| Methods inherited from class java.lang.Thread |
activeCount, checkAccess, countStackFrames, currentThread, destroy, dumpStack, enumerate, getContextClassLoader, getName, getPriority, getThreadGroup, holdsLock, interrupt, interrupted, isAlive, isDaemon, isInterrupted, join, join, join, resume, setContextClassLoader, setDaemon, setName, setPriority, sleep, sleep, start, stop, stop, suspend, toString, yield |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
public static final int DISCONNECTED
public static final int CONNECTING
public static final int CONNECTED
public static final int DISCONNECTING
| Constructor Detail |
public MudConnection(Display client)
| Method Detail |
public int getStatus()
public boolean connect()
public boolean disconnect()
public void setWindowSize(int width,
int height)
public boolean getLocalEcho()
public void setParser(Parser parser)
public void command(java.lang.String text)
public void run()
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||