ucase_tcp


The following are a server and client program that demonstrate TCP sockets. The client reads a line of text from stdin and sends this line to the server; the server than capitalizes the line and sends it back to the client, who prints this line. Once the user hits CTRL-d, the client closes its connection.

This zip file contains all of the source files as well as a Makefile.

ucase_tcp_server.c


      
ucase_tcp_client.c


      
common.h


      
common.c