With this post, the mini-serie dedicated to the simple udp client server ends.

Here you will find all the working source code and the Makefile. I hope this helps network programming begginers moving their first steps.

 

To download the source code simply click on the following link

simple_udp_client_server.tar.gz

    –  Then open a terminal and create a new directory:

# mkdir udp

    –  Move the tar.gz inside the directory and unpack it:

# mv "simple udp_client_server.tar.gz" udp/

# cd udp

# tar zxvf simple_udp_client_server.tar.gz

 

 

client.c

clientserver.h

demonize.c

demonize.h

Makefile

server.c

    –   Run the Makefile
 
# make

 

cc -pedantic -Wall -g -O2   -c -o client.o client.c

cc -o udp_client client.o

cc -pedantic -Wall -g -O2   -c -o demonize.o demonize.c

cc -pedantic -Wall -g -O2   -c -o server.o server.c

cc -o udp_server server.o demonize.o

 

SIMPLE UDP CLIENT/SERVER

Network programming index:

The Server

The Client

Demonizing the Server

The source code