Twisted Network Programming Essentials (Paperback)

Abe Fettig

  • 出版商: O'Reilly
  • 出版日期: 2005-10-30
  • 定價: $1,050
  • 售價: 1.9$199
  • 語言: 英文
  • 頁數: 240
  • 裝訂: Paperback
  • ISBN: 0596100329
  • ISBN-13: 9780596100322
  • 立即出貨(限量) (庫存=1)




Twisted Network Programming Essentials from O'Reilly is a task-oriented look at this new open source, Python-based technology. The book begins with recommendations for various plug-ins and add-ons to enhance the basic package as installed. It then details Twisted's collection simple network protocols, and helper utilities. The book also includes projects that let you try out the Twisted framework for yourself. For example, you'll find examples of using Twisted to build web services applications using the REST architecture, using XML-RPC, and using SOAP.

Written for developers who want to start building applications using Twisted, this comprehensive guide presents examples of the most common tasks you'll face when building network applications. It also helps you understand the key concepts and design patterns used in Twisted applications. Here are just some of the topics discussed in Twisted Network Programming Essentials:

  • Installing Twisted
  • How to make TCP connections
  • How to use Twisted to work with the Web
  • Twisted's authentication framework
  • Usenet and SSH clients and servers

Along the way, each lesson is supported by thorough notes and explanations to make absolutely certain you're up to speed with this leading-edge Python technology.



Table of Contents



1. Getting Started

     Installing Twisted

     Installing from Source Files

     Adding Twisted Utilities to Your Path

     Using the Twisted Documentation

     Finding Answers to Your Questions

2. Building Simple Clients and Servers

     Starting the Twisted Event Loop

     Working with Asynchronous Results

     Sending and Receiving Data

     Accepting Connections from Clients

3. Web Clients

     Downloading a Web Page

     Accessing a Password-Protected Page

     Uploading a File

     Checking Whether a Page Has Changed

     Monitoring Download Progress

4. Web Servers

     Responding to HTTP Requests

     Parsing HTTP Requests

     Working with POST Data from HTML Forms
     Managing a Hierarchy of Resources

     Storing Web Data in an SQL Database

     Running an HTTP Proxy Server

5. Web Services and RPC

     Using the REST Architecture for Web Services

     Using a Web Client to Update Resources Through REST

     Enabling Web Services Using XML-RPC

     Calling XML-RPC Functions

     Installing SOAP Libraries

     Sharing Web Services with SOAP

     Calling SOAP Web Services

     Sharing Python Objects with Perspective Broker

6. Authentication

     Using Authentication in a Twisted Server

     Authenticating Against a Database Table

     Representing Users with Different Capabilities

     Using Authentication with Perspective Broker

7. Mail Clients

     Downloading Mail from a POP3 Server

     Sending Mail Using SMTP

     Looking Up the SMTP Server for a Domain

     Listing Mailboxes on an IMAP Server

     Downloading Messages from an IMAP Mailbox

8. Mail Servers

     Accepting Mail with SMTP

     Using SMTP as a User Interface

     Providing POP3 Access to Mailboxes

     Providing IMAP Access to Mailboxes

9. NNTP Clients and Servers

     Listing the Newsgroups on a Server

     Downloading Usenet Articles

     Posting a Message to an NNTP Server

     Running a Basic NNTP Server

     Using NNTP as a User Interface

10. SSH

     Setting Up a Custom SSH Server

     Using Public Keys for Authentication

     Providing an Administrative Python Shell

     Running Commands on a Remote Server

11. Services, Processes, and Logging

     Running a Twisted Application as a Daemon

     Setting Limits on an Application's Permissions

     Managing Multiple Services

     Logging Events and Errors