 vote
 |
|
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.]
| | |
| |
|
|