|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object java.lang.Thread com.fuse.net.FUSEClientConnection com.fuse.projects.fuse_light.net.FUSELightConnection
public class FUSELightConnection
Handles the data connection between client and fuseserver for an user.
Nested Class Summary |
---|
Nested classes/interfaces inherited from class java.lang.Thread |
---|
java.lang.Thread.State, java.lang.Thread.UncaughtExceptionHandler |
Field Summary | |
---|---|
protected boolean |
checkedCorrectVersion
|
protected boolean |
checkedKeyEncryption
|
protected static java.lang.String |
FUSECMD_BROADCASTALL
|
protected static java.lang.String |
FUSECMD_BROADCASTTO
|
protected static java.lang.String |
FUSECMD_INFORETRIEVE
|
protected static java.lang.String |
FUSECMD_KEYENCRYPT
|
protected static java.lang.String |
FUSECMD_LOGIN
|
protected static java.lang.String |
FUSECMD_REGISTER
|
protected static java.lang.String |
FUSECMD_STATUSOK
|
protected static java.lang.String |
FUSECMD_UPDATE
|
protected static java.lang.String |
FUSECMD_USERKILL
|
protected static java.lang.String |
FUSECMD_VERSIONCHECK
|
protected static int |
n
|
Fields inherited from class com.fuse.net.FUSEClientConnection |
---|
accessLogEntry, client, clientIp, dead, dieTime, fcm, gotOk, id, in, lastMessage, myKey, out, user |
Fields inherited from class java.lang.Thread |
---|
MAX_PRIORITY, MIN_PRIORITY, NORM_PRIORITY |
Constructor Summary | |
---|---|
FUSELightConnection(FUSEConnectionManager fcm)
|
Method Summary | |
---|---|
void |
handleClientMessage(java.lang.String msg)
Processes messages from the client |
protected boolean |
projectSpecificCommand(java.lang.String command,
java.lang.String msg)
Override this if you want to handle some special messages in your project. |
protected void |
writeLog(FUSEUser user,
java.net.Socket clientSocket,
FUSELightConnection conn)
|
Methods inherited from class com.fuse.net.FUSEClientConnection |
---|
generateError, generateOk, getClientIp, getId, getLastConnectionTime, getUser, getUserInfoString, processFuseMessage, release, releaseConnection, run |
Methods inherited from class java.lang.Thread |
---|
activeCount, checkAccess, countStackFrames, currentThread, destroy, dumpStack, enumerate, getAllStackTraces, getContextClassLoader, getDefaultUncaughtExceptionHandler, 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 |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
protected static final java.lang.String FUSECMD_LOGIN
protected static final java.lang.String FUSECMD_REGISTER
protected static final java.lang.String FUSECMD_UPDATE
protected static final java.lang.String FUSECMD_INFORETRIEVE
protected static final java.lang.String FUSECMD_STATUSOK
protected static final java.lang.String FUSECMD_VERSIONCHECK
protected static final java.lang.String FUSECMD_KEYENCRYPT
protected boolean checkedCorrectVersion
protected boolean checkedKeyEncryption
protected static final java.lang.String FUSECMD_BROADCASTALL
protected static final java.lang.String FUSECMD_BROADCASTTO
protected static final java.lang.String FUSECMD_USERKILL
protected static int n
Constructor Detail |
---|
public FUSELightConnection(FUSEConnectionManager fcm)
Method Detail |
---|
public void handleClientMessage(java.lang.String msg)
handleClientMessage
in class FUSEClientConnection
protected boolean projectSpecificCommand(java.lang.String command, java.lang.String msg) throws java.lang.Exception
projectSpecificCommand
in class FUSEClientConnection
java.lang.Exception
protected void writeLog(FUSEUser user, java.net.Socket clientSocket, FUSELightConnection conn)
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |