Docjar: A Java Source and Docuemnt Enginecom.*    java.*    javax.*    org.*    all    new    plug-in

Quick Search    Search Deep

com.ciphermod.cipherchat
Class ChatChild  view ChatChild download ChatChild.java

java.lang.Object
  extended byjava.lang.Thread
      extended bycom.ciphercore.Child
          extended bycom.ciphermod.cipherchat.ChatChild
All Implemented Interfaces:
java.lang.Runnable

public class ChatChild
extends com.ciphercore.Child


Nested Class Summary
 
Nested classes inherited from class java.lang.Thread
java.lang.Thread.UncaughtExceptionHandler
 
Field Summary
private  java.io.DataInputStream _in
           
private static java.lang.Object _ipoLock
           
private  java.lang.String _userName
           
 
Fields inherited from class com.ciphercore.Child
PORT_MIN, PORT_RANGE
 
Fields inherited from class java.lang.Thread
MAX_PRIORITY, MIN_PRIORITY, NORM_PRIORITY
 
Constructor Summary
ChatChild()
           
 
Method Summary
protected  ChatGroup getGroup()
           
protected  java.io.DataInputStream getIn()
           
protected  java.lang.String getUserName()
           
 void handleClient()
          This is the only method you must implement in your child.
 void initializeInterProcessObject(com.ciphercore.InterProcessObject ipo)
          The Server will hand the child's interprocess object to this method.
protected  void setIn(java.io.DataInputStream in)
           
protected  void setUserName(java.lang.String userName)
           
 
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
 
Methods inherited from class java.lang.Object
clone, equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

_ipoLock

private static java.lang.Object _ipoLock

_in

private java.io.DataInputStream _in

_userName

private java.lang.String _userName
Constructor Detail

ChatChild

public ChatChild()
Method Detail

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()