Method Summary |
|
abstract protected void | bind() Binds the Listener to specific InetAddress . |
abstract public void | close() Closes the socket of this Listener . |
public InetAddress | getBindAddress() Returns the currently used InetAddress . |
public String | getName() Returns the name of this Listener . |
public int | getPort() Returns the used port. |
public I_Service | getService() Returns the service
I_Service . |
public int | getSoTimeout() Returns SO_TIMEOUT for the accepting socket. |
public void | handleSoTimeout() Is called, when a SO_TIMEOUT happened. |
abstract public boolean | isBound() Indicates whether this Listener is already bound
to a port/address. |
abstract public void | run() Listening-loop. |
public void | setBindAddress(InetAddress aBindAddress) Sets the InetAddress to use at the next start. |
public void | setName(String aName) Sets the name of this Listener . |
public void | setPort(int port) Sets the port. |
public void | setService(I_Service aService) Sets the
I_Service . |
public synchronized void | start() Starts the listening loop. |
public synchronized void | stop() Stops the listening loop. |
public String | toString() Returns a string representation. |