Class COM.roguewave.jchat.Receptionist
All Packages  Class Hierarchy  This Package  Previous  Next  Index

Class COM.roguewave.jchat.Receptionist

java.lang.Object
   |
   +----java.lang.Thread
           |
           +----COM.roguewave.jchat.Receptionist

public class Receptionist
extends Thread
The Receptionist class.

The Receptionist is a specialized Thread which creates and monitors a ServerSocket for incoming connection requests. When a Connection is successfully made, it is added to a Dispatcher.

See Also:
ServerSocket, Connection, Dispatcher

Constructor Index

 o Receptionist(int, Dispatcher)
Creates a Receptionist.

Method Index

 o run()
The body of the receptionist.

Constructors

 o Receptionist
  public Receptionist(int portNumber,
                      Dispatcher aDispatcher)
Creates a Receptionist. The Receptionist monitors a ServerSocket on the specified port number. The specified Dispatcher will be notified when a successful connection is established.

Methods

 o run
  public void run()
The body of the receptionist. Continually listens for socket connection requests, notifying a Dispatcher when one is successfully established.
Overrides:
run in class Thread

All Packages  Class Hierarchy  This Package  Previous  Next  Index