Interface prominence.msg.Client
All Packages  Class Hierarchy  This Package  Previous  Next  Index

Interface prominence.msg.Client

public interface Client
extends Object
The interface through which the GenericClient class communicates with registered tools.

Method Index

 o disconnected()
Disconnects the tool.
 o receive(DataInputStream)
Receives a message from a peer tool.
 o setMessageOutput(MessageOutput)
Assigns the Client a message output stream through which it should perform all communications.

Methods

 o setMessageOutput
  public abstract void setMessageOutput(MessageOutput o)
Assigns the Client a message output stream through which it should perform all communications. In the context of the GenericClient/Server framework, this will be a multiplexed stream to peer tools of other clients.
Parameters:
o - The message output stream
See Also:
register
 o receive
  public abstract void receive(DataInputStream i)
Receives a message from a peer tool.
Parameters:
i - A DataInputStream from which the message can be read. The end of the message will be signalled by the EOF of this stream.
 o disconnected
  public abstract void disconnected()
Disconnects the tool. This will be called if the client has disconnected, or the tool has been deregistered.
See Also:
deregister

All Packages  Class Hierarchy  This Package  Previous  Next  Index