Dist - CSCI 355 LAB #4 Simple Clients and Servers in Java...

Info iconThis preview shows pages 1–2. Sign up to view the full content.

View Full Document Right Arrow Icon
CSCI 355 LAB #4 Spring 2004 Simple Clients and Servers in Java Objectives: 1. Design and implement a simple server in Java. 2. Design and implement a simple client in Java. Preparation: Before lab read the following pages in Java: How to Program by Deitel and Deitel, fourth or fifth edition: pages 978-980 fourth (914-916 fifth) for introduction on networking in Java and pages 981-1003 fourth (917-940 fifth) on clients and servers. Bring the Java text to lab. Laboratory Assignment: In this lab you will construct a Java application for a simple server and a Java application for a simple client which communicates with the server. NO graphics in this lab! Graphics were left out on purpose! 1. The Client Application: Write a Java application which implements a simple client. The client should connect to your server which will be running on another host, e. g., castor . Use any port above 1024. Note that only one server on a host may use a specific port number. Therefore, if you receive a message of “port in use”, just select another port from 1025 to 65535. In the client, hard code which host will be running your server.
Background image of page 1

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full DocumentRight Arrow Icon
Image of page 2
This is the end of the preview. Sign up to access the rest of the document.

Page1 / 2

Dist - CSCI 355 LAB #4 Simple Clients and Servers in Java...

This preview shows document pages 1 - 2. Sign up to view the full document.

View Full Document Right Arrow Icon
Ask a homework question - tutors are online