Chat Room Final Design

Class Diagrams

Here is a simple class diagram for the two pieces. The arrows show IP communication also.

There is one ChatHandler for each connected client. The ChatHandler is created when a new client connects. Afterwords it just takes communication from that client and puts in it the buffer. The single echoer runs in its own thread and just takes from the buffer and send to the client. The run method in the client applet just listens for and then displays anything it gets from the echoer.

Interaction Diagrams

The interaction diagram focusing on the server components follows

Note that the get information returns a string to the echoer.

The transmit operation is a tcp transmission, as is the echo. The same is true below.


The interaction focusing on the client applet connections follows



Last Updated: September 10, 2001