Memo to myself about how to implement in C a TCP client-server application.
Server side:
Client side:
Compile with gcc -o server server.c -std=c99 and gcc -o client client.c -std=c9, and run with ./server serverIp.txt &; sleep 1; ./client serverIp.txt.