Interface modules.Module
All Packages Class Hierarchy This Package Previous Next Index
Interface modules.Module
- public interface Module
- extends Object
Modules must implement this interface to be detected as valid modules
- Version:
- $Id: Module.java,v 1.3 1997/03/24 14:55:18 leo Exp $
- Author:
- Matthias L. Jugel, Marcus Meißner
-
connect(String, int)
- Connected to the remote host.
-
disconnect()
- Disconnect from the host.
-
receive(String)
- Receive data from somewhere.
-
setLoader(Object)
- Set the loader of the module.
setLoader
public abstract void setLoader(Object loader)
- Set the loader of the module. This is necessary to know if you want to
contact the modules parent.
- Parameters:
- loader - The object that has loaded this module.
connect
public abstract void connect(String host,
int port)
- Connected to the remote host. This method notifies upon new connection.
- Parameters:
- host - remote hostname
- port - remote port
disconnect
public abstract void disconnect()
- Disconnect from the host. This method notifies of lost connection.
receive
public abstract String receive(String s)
- Receive data from somewhere. If a modules does not want to receive data
it should return null to remove itself from the list of receiver modules.
- Parameters:
- s - The string we receive.
- Returns:
- the modified string or null (to remove from receiver list)
All Packages Class Hierarchy This Package Previous Next Index