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.

2023-09-12
in All, C programming,
52 views
Copyright 2021-2024 Baillehache Pascal