public class ClientConnection
extends java.lang.Thread
Constructor and Description |
---|
ClientConnection() |
Modifier and Type | Method and Description |
---|---|
boolean |
isConnected()
Are we connected to the fibs server?
|
void |
pushBack(java.lang.String s) |
void |
resetFIBSCookieMonster()
Reset the state of the cookie monster
|
void |
run() |
void |
sendLogin()
Send the login message to FIBS.
|
void |
sendMessage(java.lang.String s)
Queue a message up for transmission to the server
|
void |
setClientAdapter(ClientAdapter clientAdapter)
Set the ClientAdapter that we will be interfacing with
|
void |
setFibsAttributes(FIBSAttributes fibsAttributes)
Set the FIBSAttributes that we fetch our server attributes from
|
void |
shutDown()
Kill the connection to the server.
|
activeCount, checkAccess, clone, countStackFrames, currentThread, destroy, dumpStack, enumerate, getAllStackTraces, getContextClassLoader, getDefaultUncaughtExceptionHandler, getId, getName, getPriority, getStackTrace, getState, getThreadGroup, getUncaughtExceptionHandler, holdsLock, interrupt, interrupted, isAlive, isDaemon, isInterrupted, join, join, join, resume, setContextClassLoader, setDaemon, setDefaultUncaughtExceptionHandler, setName, setPriority, setUncaughtExceptionHandler, sleep, sleep, start, stop, stop, suspend, toString, yield
public boolean isConnected()
public void setClientAdapter(ClientAdapter clientAdapter)
clientAdapter
- The object that we communicate with using the ClientAdapter interfacepublic void setFibsAttributes(FIBSAttributes fibsAttributes)
fibsAttributes
- The FIBSAtrributes that we need.public void resetFIBSCookieMonster()
public void pushBack(java.lang.String s)
public void sendMessage(java.lang.String s)
s
- The message to send (must include eol).public void shutDown()
public void run()
run
in interface java.lang.Runnable
run
in class java.lang.Thread
public void sendLogin()