Skip to main content


developerWorks  >  Linux | Open source  >

Programming Linux sockets, Part 1

developerWorks

Level: Intermediate

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

28 Oct 2003

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

This introductory-level tutorial shows how to begin programming with sockets. Focusing on C and Python, it guides you through the creation of an echo server and client, which connect over TCP/IP. Fundamental network, layer, and protocol concepts are described, and sample source code abounds.

Prerequisites

You should have a minimal level of knowledge of C, and ideally of Python also (mostly for the follow-on Part 2). 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 introduces the basic concepts behind IP (Internet Protocol) networks, some prior acquaintance with the concept of network protocols and layers will be helpful (references for background reading are provided in the tutorial).


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