|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjava.lang.Thread
org.starhope.appius.net.NetIOThread
org.starhope.appius.net.ServerThread
org.starhope.appius.net.StreamProcessor
org.starhope.appius.net.WebSocketProcessor
public class WebSocketProcessor
WRITEME: Document this type.
| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from class java.lang.Thread |
|---|
Thread.State, Thread.UncaughtExceptionHandler |
| Field Summary | |
|---|---|
private WebSocket |
mySocket
WRITEME: Document this brpocock@star-hope.org |
private String |
myURI
WRITEME: Document this brpocock@star-hope.org |
| Fields inherited from class org.starhope.appius.net.ServerThread |
|---|
busyState, futureDatagrams, idleWarned, keepRunning, lastInputTime, loggedIn, maxInputSize, myUser, preloginCountdown, randomKey, streamProtocolLanguage, tLastNudge, zone |
| Fields inherited from class org.starhope.appius.net.NetIOThread |
|---|
debug, dialect, in, isDone, language, letsPlayWithFlash, out, parallelMode, socket, state |
| Fields inherited from class java.lang.Thread |
|---|
MAX_PRIORITY, MIN_PRIORITY, NORM_PRIORITY |
| Constructor Summary | |
|---|---|
WebSocketProcessor(WebSocket newSocket,
String requestURI)
Ctor |
|
| Method Summary | |
|---|---|
protected void |
checkInputStream()
Peek for input. |
protected void |
doNudge(long t)
Nudge the user to see if they're dead yet |
protected void |
dropSocket_socketCore()
The core code that actually disconnects the socket hard. |
protected void |
dropSocketConnection()
Drop the I/O socket for this user. |
String |
getIPAddress()
|
protected String |
getRemoteAddress()
|
protected Socket |
getSocket()
Get the socket connection to the pipe |
protected Socket |
getStreamsReady()
WRITEME: Document this method brpocock@star-hope.org |
protected String |
grabInput()
Get input from the client stream |
void |
run()
Run the server thread connected to a client |
| Methods inherited from class org.starhope.appius.net.NetIOThread |
|---|
compareTo, equals, getLanguage_dialect, getVerboseBugReplies, isDebug, isParallelMode, processInput, sendError_RAW, sendRawMessageNow, setDebug, setLanguage, setVerboseBugReplies, superVerbose, tattle, tattle |
| Methods inherited from class java.lang.Thread |
|---|
activeCount, checkAccess, 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, yield |
| Methods inherited from class java.lang.Object |
|---|
clone, getClass, notify, notifyAll, wait, wait, wait |
| Methods inherited from interface org.starhope.appius.net.ServerProcessor |
|---|
start |
| Methods inherited from interface org.starhope.appius.util.HasName |
|---|
getName |
| Methods inherited from interface org.starhope.util.types.CanProcessCommands |
|---|
getName |
| Field Detail |
|---|
private final WebSocket mySocket
private final String myURI
| Constructor Detail |
|---|
public WebSocketProcessor(WebSocket newSocket,
String requestURI)
newSocket - socketrequestURI - request URI| Method Detail |
|---|
protected void checkInputStream()
throws UserDeadException
NetIOThread
checkInputStream in class NetIOThreadUserDeadException - if the remote user has disconnectedNetIOThread.checkInputStream()
protected void doNudge(long t)
throws UserDeadException
ServerThread
doNudge in class ServerThreadt - the current time
UserDeadException - if they are, in fact, deadServerThread.doNudge(long)protected void dropSocket_socketCore()
NetIOThread
dropSocket_socketCore in class NetIOThreadNetIOThread.dropSocket_socketCore()protected void dropSocketConnection()
NetIOThread
dropSocketConnection in class NetIOThreadNetIOThread.dropSocketConnection()public String getIPAddress()
getIPAddress in class ServerThreadServerThread.getIPAddress()protected String getRemoteAddress()
getRemoteAddress in class NetIOThreadNetIOThread.getRemoteAddress()protected Socket getSocket()
NetIOThread
getSocket in class NetIOThreadNetIOThread.getSocket()
protected Socket getStreamsReady()
throws UserDeadException,
IOException
ServerThread
getStreamsReady in class ServerThreadUserDeadException - WRITEME
IOException - WRITEMEServerThread.getStreamsReady()
protected String grabInput()
throws UserDeadException
ServerThread
grabInput in class ServerThreadUserDeadException - if the user disconnectsServerThread.grabInput()public void run()
ServerThread
run in interface Runnablerun in class ServerThreadServerThread.run()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||