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:8761 | -Ray, February 23, 2004 (Updated: August 24, 2008)
More Programming articles...

Fine Art Online Gallery

coding headlines

No Starch Press has published my Perl One-Liners book!

Introduction to Perl one-liners

E-book: Perl One-Liners Explained

bash scripting: Looping through a list

Perl One-Liners Explained: Handy Regular Expressions

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

 

Firefox sidebar

Site map

Site info

News feed

Features

Login
(to post)

Search

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