Hey! Network programming in C

Hey! is a simple TCP streaming app developed in C using POSIX APIs. Both client and server are containerized using Docker.

You can find the code in my Github

I also recorded a Youtube video


Make sure you have Docker installed.


Using docker compose, this script build the Docker images (server and client), create a user-defined bridge network, and run both containers. After that, you will be provided with the client shell to send messages to the server.

To close the connection type exit from the client shell and press ENTER.

Some things that I find interested:

What could you do next?

A good exercise will be to implement logic for some commands in the server. For example, you could program the server to send to the client the current date every time the server receives the command date.