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

Method Index

 o connect(String, int)
Connected to the remote host.
 o disconnect()
Disconnect from the host.
 o receive(String)
Receive data from somewhere.
 o setLoader(Object)
Set the loader of the module.

Methods

 o 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.
 o 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
 o disconnect
  public abstract void disconnect()
Disconnect from the host. This method notifies of lost connection.
 o 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