Class OrChatServer

OrChatServer

public class OrChatServer

Constructor Index

 o OrChatServer(String)
constructor

Method Index

 o addClient(OrChatClientI, String)
Adds a listener (for a chat client) to the Hashtable.
 o main(String[])
initialize the server
 o sendMessage(String)
Send a message to all the clients.

Constructors

 o OrChatServer
 public OrChatServer(String name)
constructor

Methods

 o main
 public static void main(String args[])
initialize the server

 o addClient
 public void addClient(OrChatClientI client,
                       String username)
Adds a listener (for a chat client) to the Hashtable.

 o sendMessage
 public void sendMessage(String message)
Send a message to all the clients.