A simple TCP chat client and server written in C for Linux using POSIX sockets. This project demonstrates basic network programming and socket communication.
- Connects to a server via IPv4 and TCP
- Sends and receives messages
- Handles basic connection errors
main.c– Client codeserver.c– Server codechat_protocol.c– Shared chat functionsCMakeLists.txt– Build config
mkdir build && cd build
cmake ..
make