Template for a TCP client-server in C

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.

in All, C programming,
I'm open for work ! Check my profile and email me.
Liked this article ? Please consider supporting me:
Copyright 2021-2023 Baillehache Pascal