Skip to main content


developerWorks  >  Linux | Open source  >

Programming Linux sockets, Part 2

developerWorks

Level: Intermediate

David Mertz (mertz@gnosis.cx), Developer, Gnosis Software

25 Jan 2004

Register now or sign in using your IBM ID and password.

This intermediate-level tutorial extends the basics covered in Part 1 on programming using sockets. Part 2 focuses on the User Datagram Protocol (UDP) and demonstrates how to write UDP sockets applications in C and in Python. Although the code examples in this tutorial are in Python and C, they translate well to other languages.

Prerequisites

You should have a minimal level of knowledge of C, and ideally of Python also. However, if you are not familiar with either programming language, you should be able to make it through with a bit of extra effort. Most of the underlying concepts will apply equally to other programming languages, and calls will be quite similar in most high-level scripting languages like Ruby, Perl, TCL, and so on. And, although this tutorial recaps Part 1, it will be helpful to be familiar with the basic concepts behind IP (Internet Protocol) network protocols and layers as covered in Part 1.


System requirements

You'll need JavaScript enabled in your browser.



Duration

More than two hours


Formats

html, pdf


Share this....

digg Digg this story del.icio.us del.icio.us Slashdot Slashdot it!


Back to top


Document options

Document options requiring JavaScript are not displayed