Archive

Posts Tagged ‘C language’

Network programming: UDP client/server source

February 28th, 2010 gg1 No comments

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

Network programming: demonize

January 14th, 2010 gg1 No comments

Demonizing the Server

A server, to be a real server shall be able to run as a demon, it shall run in background and it shall not be linked to a terminal. To do this I'll add two functions to the simple server:

  1. demonize
  2. detachFromTerminal

Network programming: simple udp client server #2

January 10th, 2010 gg1 No comments

The Client.

The following code contains the implementation for the UDP client application that can send data to the server explained in the previous article.

Network programming: simple udp client server #1

January 4th, 2010 gg1 No comments

The Server.

In this small series I'll show you how to write a simple UDP Client/Server system in a Unix environment using the C language. The server waits data listening on a port specified by the user, if the received data contains ".quit." string the server exits.