A socket program, where the client sends content of file and server sends the number of characters in the file.
OS: Ubuntu 20.04 LTS
Compile Server and execute:
gcc fileserver.c –o ser
./ser
Compile Client and execute:
gcc fileclient.c –o ser
./cli
Output: