Class OrChatServer
OrChatServer
- public class OrChatServer
-
OrChatServer(String)
- constructor
-
addClient(OrChatClientI, String)
-
Adds a listener (for a chat client) to the Hashtable.
-
main(String[])
- initialize the server
-
sendMessage(String)
- Send a message to all the clients.
OrChatServer
public OrChatServer(String name)
- constructor
main
public static void main(String args[])
- initialize the server
addClient
public void addClient(OrChatClientI client,
String username)
- Adds a listener (for a chat client) to the Hashtable.
sendMessage
public void sendMessage(String message)
- Send a message to all the clients.