java.lang.Object
java.lang.Thread
com.ciphercore.Child
com.ciphermod.cipherchat.ChatChild
- All Implemented Interfaces:
- java.lang.Runnable
- public class ChatChild
- extends com.ciphercore.Child
| Nested classes inherited from class java.lang.Thread |
java.lang.Thread.UncaughtExceptionHandler |
| Methods inherited from class com.ciphercore.Child |
accessRestricted, close, finalize, getBaseInputStream, getBaseOutputStream, getCipherSelf, getDecryptCipher, getEncryptCipher, getInterProcessObject, getPort, getPublicEncoded, getServerSocket, getSocket, getUserHash, getUserHashes, getUserHashesLocation, initializeCrypto, locateFiles, readUserHashes, run, setBaseInputStream, setBaseOutputStream, setCipherSelf, setInterProcessObject, setServerSocket, setSocket, setUserHashes, setUserHashesLocation, verifyPassword |
| Methods inherited from class java.lang.Thread |
activeCount, checkAccess, countStackFrames, currentThread, destroy, dumpStack, enumerate, getContextClassLoader, getDefaultUncaughtExceptionHandler, getId, getName, getPriority, 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 |
_ipoLock
private static java.lang.Object _ipoLock
_in
private java.io.DataInputStream _in
_userName
private java.lang.String _userName
ChatChild
public ChatChild()
handleClient
public void handleClient()
- Description copied from class:
com.ciphercore.Child
- This is the only method you must implement in your child.
initializeInterProcessObject
public void initializeInterProcessObject(com.ciphercore.InterProcessObject ipo)
- Description copied from class:
com.ciphercore.Child
- The Server will hand the child's interprocess object to this
method. If you want something to happen on initialization,
like registering this child as a state change listener,
override this method, and pass your configured IPO to
super.setInterProcessObject( IPO ).
Don't call "new" every time. You'll dump all the other children.
Maybe do:
if( ipo == null ) { ipo = new MyInterP...
setIn
protected void setIn(java.io.DataInputStream in)
setUserName
protected void setUserName(java.lang.String userName)
getIn
protected java.io.DataInputStream getIn()
getUserName
protected java.lang.String getUserName()
getGroup
protected ChatGroup getGroup()