cp /tmp/echolab.tar ~/csc2405
cd ~/csc2405
tar xvf echolab.tar
This will cause a number of files to be unpacked in your directory echolab:
| echoserver.c | C code for a sequential echo server | |
| echoclient.c | C code for an echo client | |
| csapp.c | File containing helper functions and error handling wrappers | |
| csapp.h | Header file for functions defined in csapp.c | |
| Makefile | Compiles and links together csapp.c and a source file |
./echoserver NOpen a separate window on tanner to test the server with telnet first:
telnet tanner Nand with the echo client second:
./echoclient tanner NNow anything you type into the client window will be sent over the connection and echoed back to you by the server.
123
server received 4 bytes
321
123
4567
server received 9 bytes
1234567