next up previous contents
Next: Common Components Up: Familiarisation with the Tools Previous: Addressbook   Contents


ECHO Server and Client


[module1]# ./TCPechod 2000 [module1]# ./TCPecho localhost 2000
  Testing second word
Testing second word  
  Testing second word
  test
test ng second word  
  test
  ^C
test ng second word  

This sample run shows that the debugging code was not perfect as the server is not expected to print the phrase ``ng second word'', nor was the reprinting of the entire phrase ``test ng second word'' when the client was terminated, but this is just due to a small bug in the debugging code that prints out what the server is processing, rather than the actual code.



Nathan Dimmock 2001-06-20