Purple Code

com.purpletech.message.server
Class ChatServer

java.lang.Object
  |
  +--com.purpletech.message.server.MessageServer
        |
        +--com.purpletech.message.server.ChatServer
All Implemented Interfaces:
MessageServerListener

public class ChatServer
extends MessageServer
implements MessageServerListener

A Chat Server is just like a normal server only it posts a message to ALL when a client joins or leaves.


Field Summary
static java.lang.String[][] defaults
           
 
Constructor Summary
ChatServer()
           
ChatServer(Options opts)
           
 
Method Summary
 void clientAdded(MessageServerEvent e)
           
 void clientRemoved(MessageServerEvent e)
           
static void main(java.lang.String[] args)
           
 
Methods inherited from class com.purpletech.message.server.MessageServer
addClient, addMessageListener, addMessageServerListener, connect, disconnect, getClients, isRunning, removeMessageListener, removeMessageServerListener, sendMessage, start, stop
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

defaults

public static final java.lang.String[][] defaults
Constructor Detail

ChatServer

public ChatServer()

ChatServer

public ChatServer(Options opts)
Method Detail

main

public static void main(java.lang.String[] args)

clientAdded

public void clientAdded(MessageServerEvent e)
Specified by:
clientAdded in interface MessageServerListener

clientRemoved

public void clientRemoved(MessageServerEvent e)
Specified by:
clientRemoved in interface MessageServerListener

Documentation generated March 5 2003