jim@jupyter:networks$ make gcc -O2 -pthread hostinfo.c csapp.c -o hostinfo gcc -O2 -pthread echoserveri.c csapp.c echo.c -o echoserver gcc -O2 -pthread echoclient.c csapp.c -o echoclient jim@jupyter:networks$ ./echoserver 8088 & [1] 30070 jim@jupyter:networks$ ./echoclient localhost 8088 Connected to (localhost.localdomain, 58454) one server received 4 bytes one two server received 4 bytes two three server received 6 bytes three Hello can you hear this? server received 25 bytes Hello can you hear this? jim@jupyter:networks$ jim@jupyter:networks$ jobs [1]+ Running ./echoserver 8088 & jim@jupyter:networks$ whoami ----------------------- The cgi-bgin can be run from the command line with : $ QUERY_STRING="13&29" ./cgi-bin/adder ----------------------------- In two different terminals, here is the chat client & server : ---- terminal 1 --------------------------- jim@jupyter:networks$ ./chatserver 12345 Waiting for client connection ... Connected to (localhost.localdomain, 37546) they said: hello they said: one they said: two Waiting for client connection ... Connected to (localhost.localdomain, 37550) they said: one they said: two I said 1 And I said it again they said: hey Waiting for client connection ... ^C jim@jupyter:networks$ ---- terminal 2 --------- jim@jupyter:networks$ ./chatclient localhost 12345 hello one two ^D jim@jupyter:networks$ jobs jim@jupyter:networks$ ./chatclient localhost 12345 one two they said: I said 1 they said: And I said it again hey ^D jim@jupyter:networks$