#!/usr/bin/csh -f # Let the java interpreter know where to look for the thread demo. # The java interpreter looks for class files in the directories listed # in the environment variable CLASSPATH. setenv CLASSPATH ${CLASSPATH}:/project/adaptive/classes/cs544/assignments/sockets # Run the Socket Demo # Run this line on the server side. The port number is arbitrary. setenv TALK_SERVER $HOST; setenv PORT 10054 /pkg/java/bin/java Talk $PORT& # Run this line on the client side on a different machine. Subsituting # $TALK_SERVER for the name of the machine running the server. /pkg/java/bin/java Talk $PORT $TALK_SERVER # When the two sides have connected, talk windows should appear. The bottom # text area in the frame is the typing area and the upper one is for receiving # data. Use backspace to delete.