Updates
Due date
Friday, 22 September 2000, by 5:00 PM
Advice
Goal
In this assignment we will be hooking up our client boards together
via a server. This will allow players to play Javlle on different machines
across the network.
Client
On startup the client will create a new board and display the user interface.
Additionally, our client will open a connection to the server and listen for
messages. Each message is separated by a newline character, and is simply a
board string. Upon receiving a message from the server, the client will update
the board, thereby updating also the display. When the "Go" button is clicked
the current board is sent to the server. If there is a communication error,
the client just quits. A client can be initiated by typing "java
a3testClient".
Server
The server is a "broadcast proxy". It starts up and waits for connections from
clients. Internally, it stores the current board, which is the last board it
has been sent by any client. The initial board is empty. When a connection is
accepted, a handler is spawned off to take care of it. Multiple simultaneous
connections should be possible. Upon connection the server sends the newly
connected client the current board. Also, the board is sent to all connected
clients (broadcast) whenever the board changes. If a communication error
occurs with any given client, the handler should terminate quietly, yet the
server should continue to run, and other connections remain unaffected. A
server can be initiated by typing "java a3testServer".
Guide to solving assignment
JavlleClient:
Provides the functionality required for client to communicate with server.
Code
You are required to complete the classes: JavlleClient, JavlleServer and
JavlleServerHandler and their respective .java files.
To start the server and two clients all at once type: "java a3test".
You must implement the following methods:
Submission
Before the assignment deadline you are expected to submit one zip file
including:
Submit zipped code + text files to Sada Williams, smw22@cornell.edu by 5:00 PM on due date.
Make sure your program works with the supplied driver code.
|
Last Updated: Friday, September 15, 2000 06:23:28 PM