kaos.core.csi.util.tcpSupport
Class KAoSCSIServer

java.lang.Object
  extended by kaos.core.csi.util.tcpSupport.KAoSCSIServer

public class KAoSCSIServer
extends java.lang.Object

This class is a TCP server that listens for clients and provides them access to KAoS services through the CSI interfaces using a KAoS CSI TCP protocol


Nested Class Summary
 class KAoSCSIServer.ServerThread
          Listens for new connections and spawns a handler for each connection
 
Field Summary
protected  ServerRequestHandler _serverRequestHandler
           
protected  java.net.ServerSocket _serverSocket
           
 
Constructor Summary
KAoSCSIServer()
           
KAoSCSIServer(int port)
           
 
Method Summary
 ServerRequestHandler getMostRecentRequestHandler()
           
 void init(int iPort)
          Tries to start a socketserver on the specified port and start a thread to listen for clients
static void main(java.lang.String[] args)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

_serverSocket

protected java.net.ServerSocket _serverSocket

_serverRequestHandler

protected ServerRequestHandler _serverRequestHandler
Constructor Detail

KAoSCSIServer

public KAoSCSIServer()
              throws java.io.IOException
Throws:
java.io.IOException

KAoSCSIServer

public KAoSCSIServer(int port)
              throws java.io.IOException
Throws:
java.io.IOException
Method Detail

init

public void init(int iPort)
          throws java.io.IOException
Tries to start a socketserver on the specified port and start a thread to listen for clients

Parameters:
iPort -
Throws:
java.io.IOException

getMostRecentRequestHandler

public ServerRequestHandler getMostRecentRequestHandler()

main

public static void main(java.lang.String[] args)