Cliser

cliser
Class ConcurrentTCPServer

java.lang.Object
  |
  +--cliser.CommunicatorUser
        |
        +--cliser.Server
              |
              +--cliser.TCPServer
                    |
                    +--cliser.ConcurrentTCPServer

public abstract class ConcurrentTCPServer
extends TCPServer


Constructor Summary
ConcurrentTCPServer(java.lang.String service, int port, ServiceThread prototypeThread)
          explicit constructor
 
Method Summary
protected  Communicator initCommunicator()
          definition of abstract CommunicatorUser.initCommunicator()
 void run()
          default concurrent server behavior (run forever, accepting connections, and handing them off to ServiceThreads for servicing).
 
Methods inherited from class cliser.TCPServer
acceptConnection
 
Methods inherited from class cliser.Server
getHost, getPort, getService
 
Methods inherited from class cliser.CommunicatorUser
getCommunicator, receive, send, setCommunicator
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ConcurrentTCPServer

public ConcurrentTCPServer(java.lang.String service,
                           int port,
                           ServiceThread prototypeThread)
explicit constructor
Method Detail

initCommunicator

protected Communicator initCommunicator()
definition of abstract CommunicatorUser.initCommunicator()
Returns:
a new ConcurrentServerTCPCommunicator initialized using myPort.
Overrides:
initCommunicator in class CommunicatorUser

run

public void run()
default concurrent server behavior (run forever, accepting connections, and handing them off to ServiceThreads for servicing).

Cliser

Cliser is open-source freeware distributed under the GNU Public License.