Network programming: UDP client/server source

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

Posted by at February 28, 2010
Filed in category: linux, The Prince: C, UNIX TLC, and tagged with: , , , , , , ,

One Response to Network programming: UDP client/server source

  1. Pingback: Twitter Trackbacks for Network programming: UDP client/server source [xappsoftware.com] on Topsy.com

Leave a Reply

Your email address will not be published. Required fields are marked *

*


*

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong> <font color="" face="" size=""> <span style="">

Statistical data collected by Statpress SEOlution (blogcraft).