This preview shows page 1. Sign up to view the full content.
Unformatted text preview: CS 434: Distributed Computing Assignment 1 A Simple Client-Server Application Objectives: 1. Design and implement a simple server in Java. 2. Design and implement a simple client in Java. Preparation: Before doing this assignment read the following pages in Java: How to Program by Deitel and Deitel, sixth edition: pages 1106-1108 for introduction on networking in Java; pages 1108-1132 on clients and servers.. In this assignment you will construct a Java application for a simple server and a Java application for a simple client which communicates with the server. 1. The Client Application: Write a Java application which implements a simple client. The client should connect to your server that will be running on another host or the local host. Use any port between 8000 and 9999. The client should repeatedly read a line a text and send it to the server (request). Then the client receives a new line of text from the server and prints it (reply). If the user types exactly “quit”, the client sends it to the server to close its connection and the client should...
View Full Document
- Spring '08