net.jetrix
Interface Listener

All Superinterfaces:
Runnable, Service
All Known Implementing Classes:
ClientListener, HttpListener, IRCListener, TetrinetListener, TSpecListener

public interface Listener
extends Runnable, Service

A service bound to a port.

Version:
$Revision: 378 $, $Date: 2004-04-07 02:33:51 +0200 (mer., 07 avr. 2004) $
Author:
Emmanuel Bourg

Method Summary
 String getName()
          Return the name of the listener.
 int getPort()
          Return the listening port.
 void setPort(int port)
          Set the port used the next time the listener is started.
 void start()
          Start the listener.
 void stop()
          Stop the listener.
 
Methods inherited from interface java.lang.Runnable
run
 
Methods inherited from interface net.jetrix.Service
isAutoStart, isRunning, setAutoStart
 

Method Detail

getName

String getName()
Return the name of the listener.

Specified by:
getName in interface Service

getPort

int getPort()
Return the listening port.


setPort

void setPort(int port)
Set the port used the next time the listener is started.


start

void start()
Start the listener.

Specified by:
start in interface Service

stop

void stop()
Stop the listener.

Specified by:
stop in interface Service


Copyright © 2001-2008 Emmanuel Bourg. All Rights Reserved.