Skip to main content


developerWorks  >  Linux | Open source  >

Sockets programming in Python

Develop networking applications using Python's basic sockets features

developerWorks

Level: Intermediate

M. Tim Jones (mtj@mtjones.com), Senior Principal Software Engineer, Emulex Corp.

04 Oct 2005

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

This tutorial shows how to develop sockets-based networking applications using Python. In this tutorial, you first learn a few Python basics and see why Python makes a good network programming language. Then you move on to the basic sockets features of Python, using a sample chat application as a guide, and look at several other, high-level, classes that provide asynchronous communications.

In this tutorial

  • Review the basics of the sockets API

  • Learn how to build networking applications in Python

  • Examine a simple chat server implemented in Python

  • Preview some of Python's high-level networking classes

Objectives

By the end of this tutorial, you will know how to use the standard sockets module to build both client and server applications, as well as how to use the SocketServer module to simplify the construction of simple socket servers.


Prerequisites

You should have a basic knowledge of Python.


System requirements

None.



Duration

More than two hours


Formats

html, pdf


Learn more

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


My developerWorks needs you!

Connect to your technical community