EE-WEB Assignment 8

Program 1, 30pts.

Write a simple (one client at a time) TCP/IP network server application on port number 4040. Upon client connection the server should read nothing and immediately send back the follwoing information to the client:

The server should display information specified above in an organized way. Then it should read and disregard data from the incoming connection until the end of line, and then close the connection.

Please note that this program is an application only. It cannot be run in the applet mode.

You can quickly determine whether a service is available on a computer by attepmting to connect to its appropriate port number and then closing the connection. If no connection refused exception occurs that either a service is available or something else impersonates the said service. You do not have to verify whether that is the actuall service that usualy uses a particular port number. The port numbers are listed by each service for your convenience.

You may test your server by running it, and then connecting to it using telnet. You can run it on a computer in the lab, and then telnet to BOBCAT or CEGT201, and then while logged in telnet back to the computer your are working on. Please note, that this will not work through firewalls (library or dorms) becuase port 4040 is not mapped to any standard Internet service.

Homework Submission

Attach all source code in files with proper names and extensions (*.html, *.java, *.pl, *.php, .htaccess e.t.c.). Do not ZIP files together or include compiled files (e.g. *.class). In case of dynamic Web pages (JavaScript or CGI) or Java applets also send the complete URL (including http://) that points to a page on your Web site that demonstrates your homework. Send your homework via e-mail to the instructor. Please set the message subject to: web-hw8.

Thank you

web site front local main page local list page print this page   general bookmarks software bookmarks go back close this page copyright info   visitor counter