kaos.core.service.transport.tcp
Interface CommServer

All Known Implementing Classes:
FlexfeedCommServer, TCPCommServer

public interface CommServer

CommServer is a simple Object passing class that sets up a simple server that can receive Objects. It can be initialized with or port or just find an open port


Method Summary
 void close()
          tries to close server socket
 java.lang.String getHost()
          returns the hostname of this server.
 int getPort()
          returns the port number of this server.
 void init()
          Tries to start a socketserver on any available port.
 void init(int iPort)
          Tries to start a socketserver on the specified port.
 

Method Detail

init

void init()
          throws TransportFailure
Tries to start a socketserver on any available port.

Throws:
TransportFailure

init

void init(int iPort)
          throws TransportFailure
Tries to start a socketserver on the specified port.

Parameters:
port -
Throws:
TransportFailure

close

void close()
tries to close server socket


getHost

java.lang.String getHost()
returns the hostname of this server.


getPort

int getPort()
returns the port number of this server.