JAVA

EXAMPLE 8

-----------------------------------------------------------------------
SLIDE #01                  BUILDING A CHAT SYSTEM

This is our chat system from Slide 6 revisited with the new event
system. It extends the previous example by:

Using the Java 1.1 Event system

Identifying each participant

Listens to a key being depressed to transmit the character.

EXAMPLE 8: THE JAVA 1.1 EVENT SYSTEM. TRANSMSSION AFTER EACH
           KEYSTROKE.

Both the client and the server are stored on devel1, at:

	http://devel1.scis.nova.edu/~jclevin/cgi-bin/JAVATUT

**********************************************************************
1. SERVER SIDE:
------------------------------------------
The server program is: webs14.java. Its purpose is to listen to port 9999.
When a client connects, the server passes the data it receives to
another program: chath20.java, which keeps a list of the current clients
to broadcast the latest data.

You start the server with the command:

	java webs14 9999

**********************************************************************

********************************************************************
2. CLIENT SIDE:
----------------
The client program is: chatc14.java

To start the client, use the following URL:

	http://devel1.scis.nova.edu/~jclevin/cgi-bin/JAVATUT/webc14.html

**********************************************************************

********************************************************************
3. SOURCE FILES:
----------------
You can access here:
the HTML Form

the Java Chat client

the Java Chat Server

the Java Chat Broadcast

the Java Chat Event
**********************************************************************

********************************************************************
4. RUNNING THE SYSTEM ON UNIX:
------------------------------
To start the server: 
Log on devel1, 
go to the directory: ~jclevin/cgi-bin/JAVATUT
execute: java webs14 9999

To start the client, click here:

Chat Client

**********************************************************************

********************************************************************