Skip to Content
Perl To Python Migration
book

Perl To Python Migration

by Martin C. Brown
November 2001
Beginner
320 pages
5h 53m
English
Pearson Business
Content preview from Perl To Python Migration

RUNNING A SERVER

You can use the usual methods of calling os.fork() or the select module or even threads to support the multiple connections required by most network servers. If you are creating a network service however you might be better off using the SocketServer module which provides a number of different classes designed to handle network communication. The module provides eight different classes which provide all of the mechanisms required to support basic network services similar to HTTP, SMTP, and others. You can see a list of the classes supported in Table 12.2.

Table 12.2. Network servers supported by the SocketServer module
Class Description
TCPServer(address, handler) A basic TCP-based server. The address should be a tuple containing ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Start your free trial

You might also like

Perl in a Nutshell

Perl in a Nutshell

Nathan Patwardhan, Ellen Siever, Stephen Spainhour
Perl by Example

Perl by Example

Ellie Quigley
Perl Hacks

Perl Hacks

Chromatic, Damian Conway, Curtis Ovid Poe, Curtis (Ovid) Poe

Publisher Resources

ISBN: 0201734885Purchase book