submarine.connectors
Class SubMLListener.Server

java.lang.Object
  |
  +--java.lang.Thread
        |
        +--submarine.util.esKernel
              |
              +--submarine.connectors.SubMLListener.Server
All Implemented Interfaces:
java.lang.Runnable
Enclosing class:
SubMLListener

public static class SubMLListener.Server
extends esKernel


Field Summary
private  java.lang.String encoding
           
private  char endOfStream
           
private  Submiter submiter
           
 
Fields inherited from class submarine.util.esKernel
BUILD, cachedPID, client, clientInput, clientOutput, clientPID, curPID, dontLoad, FREE, freeSOCKETS, MAXIMUMSOCKETS, NAME, Ninja, noNinja, OWNED, quietMode, Samurai, server, serverPORT, theThread, theThreadGroup, VERSION
 
Fields inherited from class java.lang.Thread
contextClassLoader, daemon, eetop, group, inheritableThreadLocals, inheritedAccessControlContext, MAX_PRIORITY, MIN_PRIORITY, name, NORM_PRIORITY, priority, single_step, stillborn, stopThreadPermission, target, threadInitNumber, threadLocals, threadQ
 
Constructor Summary
SubMLListener.Server(java.lang.String[] argv, Submiter s, java.lang.String enc)
           
 
Method Summary
 void clientLogin(int lPID)
          Once a user(lPID) logs in this function is kicked off
 void clientLogout(int lPID)
          Once a user(lPID) logs off this function is kicked off
 void clientRecieve(java.lang.String lineIn, int lPID)
          when the user sends information to the server this function kicks off
 java.lang.Object manageXMLRequest(java.io.BufferedReader r, Submiter submiter)
           
 void manageXMLResponse(java.io.PrintWriter w, java.lang.Object o)
           
 void serverStarted()
          Once the server is started it will call this function
 
Methods inherited from class submarine.util.esKernel
buildLazy, clientReader, clientSend, clientWriter, disconnectClient, getClientPID, loadSockets, parseCommandLineInput, parseDataInput, run, setEncoding, setPort, setQuiet, setSockets, showError, showHelp, showVersion, startCommandLineStream, startServer, statusMessage, stopServer
 
Methods inherited from class java.lang.Thread
, activeCount, checkAccess, countStackFrames, currentThread, destroy, dumpStack, enumerate, exit, getContextClassLoader, getName, getPriority, getThreadGroup, init, interrupt, interrupt0, interrupted, isAlive, isDaemon, isInterrupted, isInterrupted, join, join, join, nextThreadNum, registerNatives, resume, resume0, setContextClassLoader, setDaemon, setName, setPriority, setPriority0, sleep, sleep, start, stop, stop, stop0, suspend, suspend0, toString, yield
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

submiter

private Submiter submiter

encoding

private java.lang.String encoding

endOfStream

private char endOfStream
Constructor Detail

SubMLListener.Server

public SubMLListener.Server(java.lang.String[] argv,
                            Submiter s,
                            java.lang.String enc)
Method Detail

serverStarted

public void serverStarted()
Once the server is started it will call this function
Overrides:
serverStarted in class esKernel

clientLogin

public void clientLogin(int lPID)
Once a user(lPID) logs in this function is kicked off
Overrides:
clientLogin in class esKernel

clientLogout

public void clientLogout(int lPID)
Once a user(lPID) logs off this function is kicked off
Overrides:
clientLogout in class esKernel

clientRecieve

public void clientRecieve(java.lang.String lineIn,
                          int lPID)
when the user sends information to the server this function kicks off
Overrides:
clientRecieve in class esKernel

manageXMLResponse

public void manageXMLResponse(java.io.PrintWriter w,
                              java.lang.Object o)
                       throws java.lang.Exception

manageXMLRequest

public java.lang.Object manageXMLRequest(java.io.BufferedReader r,
                                         Submiter submiter)
                                  throws java.lang.Exception

Submarine project. free distribution of this software must include the opensource licence.
Guénolé de Cadoudal.