com.glasskeylabs.gubcast
Interface Gubregistry


public interface Gubregistry

The Gubregistry interface defines the methods that must be provided by any class that handles Gubcast registration and unregistration. Every Gubcast protocol server uses a Gubcaster object to communicate with its clients (Gubcast applets); one of the arguments that must be provided when instantiating Gubcaster is a reference to some object that implements Gubregistry, which enables the Gubcaster to delegate the processing of client registration and unregistration events. The specific behavior of the registry object is entirely up to the developer. The registry typically logs the registration and unregistration events, manages a hashtable or database of currently registered clients, etc.


Method Summary
 void registerClient(Gubclient client)
          Handles registration of a new client.
 void unregisterClient(java.net.InetAddress host, int portNbr)
          Handles unregistration of an existing client.
 

Method Detail

registerClient

public void registerClient(Gubclient client)
Handles registration of a new client.
Parameters:
client - The client that must be registered.

unregisterClient

public void unregisterClient(java.net.InetAddress host,
                             int portNbr)
Handles unregistration of an existing client.
Parameters:
host - The Internet address of the host computer on which the client applet was running.
portNbr - The TCP port number on which the client was listening for Gubcast messages.