********************************************************** This directory holds: Example 32 -- A text-based client/server counter The following descriptions were written by the CS staff ********************************************************** CounterUI.java -- A new version of the text based counter interface. The constructor takes a DataInputStream and a PrintStream as patameters. Counter.java -- A slightly modified version of the counter. TxtCounter.java -- An application to test the new version of CounterUI. Server.java -- The network counter server. Run this application then telnet to port 1968 on the localhost telnet localhost 1968 You can telnet from a dos window using the above command. Or you can use the telnet window in the Network group and connect to a remote system using localhost as the host and 1968 as the port. Connection.java -- A thread that is created by the Server to handle a network connection **************************************************************** Now, my comment follows: (1) localhost is typically 127.0.0.1, so you can use "127.0.0.1" instead of typing "localhost". (2) You can telnet from other computers. To do so, you need the server's IP address. You can find the IP address of your computer by: (i) Go into "Controle Panel", then click "Network" (ii) On the Network menu, click "Configuration" and then "TCP/IP" (iii) On the TCP/IP Properties menu, click "IP Address" Now the IP address is displayed on the window. (3) Server.java (main class) does not have a quitting method. In order to properly quit the program, enter: Ctr-C