Librenix  
(Show all Socket articles . . .
)  
Headlines | Linux | Apps | Coding | BSD | Admin | News
Information for Linux System Administration 

Tutorial: UDP socket based client server C programs

Up
vote
Down

This short and sweet tutorial has the example C source code for both a UDP client and server.
This article explains how to write a simple UDP client/server system in C for the Linux or Unix platform. Writing client-server applications using UDP sockets is considered very easy, yet we sometimes miss some essential steps, which results in spending more time in intense debugging sessions. I went through one such experience. It is quite hard to remember all the socket API details quickly without having to wade through tons of man pages, so this page lists the standard code for UDP Client Server program. I hope it will be useful for others, too.
[The original article has gone offline and the link has been replaced by a working page. -Ed.]
 read more | mail this link | score:8398 | -Ray, February 23, 2004 (Updated: August 24, 2008)
More Programming articles...

Colorful Abstract Art

coding headlines

Tutorial: Create an NFS-like Storage Server with GlusterFS on Ubuntu 12.10

Develop your own Raspberry Pi OS

Using Git for Source Control

Tutorial: Install SVN, Configure multi-protocol access (Ubuntu 11.10)

Add Video Streaming to C/C++ apps with Nex Gen Media Server API

Apache2, mod_rewrite tutorial: Redirect requests by device

 

Firefox sidebar

Site map

Site info

News feed

Features

Login
(to post)

Search

 
Articles are owned by their authors.   © 2000-2012 Ray Yeargin