Twisted Network Programming Essentials (Paperback)
暫譯: Twisted 網路程式設計精要 (平裝本)

Abe Fettig

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

買這商品的人也買了...

相關主題

商品描述

Description

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

Foreword

Preface

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

Index


商品描述(中文翻譯)

**描述**
《Twisted Network Programming Essentials》由 O'Reilly 出版,是一本針對這項新的開源、基於 Python 的技術的任務導向介紹。這本書首先推薦了各種插件和附加元件,以增強安裝的基本套件。接著詳細介紹了 Twisted 的簡單網路協議和輔助工具。書中還包含了讓你親自嘗試 Twisted 框架的專案。例如,你將會找到使用 Twisted 建立基於 REST 架構的網路服務應用程式、使用 XML-RPC 和使用 SOAP 的範例。

這本書是為希望開始使用 Twisted 建立應用程式的開發者所寫,這本全面的指南提供了在建立網路應用程式時你將面臨的最常見任務的範例。它還幫助你理解 Twisted 應用程式中使用的關鍵概念和設計模式。以下是《Twisted Network Programming Essentials》中討論的一些主題:

- 安裝 Twisted
- 如何建立 TCP 連接
- 如何使用 Twisted 與網路互動
- Twisted 的認證框架
- Usenet 和 SSH 客戶端及伺服器

在這個過程中,每一課都有詳細的筆記和解釋,以確保你能完全掌握這項尖端的 Python 技術。

**目錄**
- 前言
- 序言
- 1. 開始使用
- 安裝 Twisted
- 從源文件安裝
- 將 Twisted 工具添加到你的路徑
- 使用 Twisted 文檔
- 尋找問題的答案
- 2. 建立簡單的客戶端和伺服器
- 啟動 Twisted 事件循環
- 處理非同步結果
- 發送和接收數據
- 接受來自客戶端的連接
- 3. 網頁客戶端
- 下載網頁
- 訪問受密碼保護的頁面
- 上傳文件
- 檢查頁面是否已更改
- 監控下載進度
- 4. 網頁伺服器
- 回應 HTTP 請求
- 解析 HTTP 請求
- 處理 HTML 表單的 POST 數據
- 管理資源的層次結構
- 在 SQL 數據庫中存儲網頁數據
- 運行 HTTP 代理伺服器
- 5. 網路服務和 RPC
- 使用 REST 架構進行網路服務
- 使用網頁客戶端通過 REST 更新資源
- 使用 XML-RPC 啟用網路服務
- 調用 XML-RPC 函數
- 安裝 SOAP 庫
- 使用 SOAP 共享網路服務
- 調用 SOAP 網路服務
- 使用 Perspective Broker 共享 Python 對象
- 6. 認證
- 在 Twisted 伺服器中使用認證
- 對資料庫表進行認證
- 表示具有不同能力的用戶
- 使用 Perspective Broker 進行認證
- 7. 郵件客戶端
- 從 POP3 伺服器下載郵件
- 使用 SMTP 發送郵件
- 查找域的 SMTP 伺服器
- 列出 IMAP 伺服器上的郵箱
- 從 IMAP 郵箱下載郵件
- 8. 郵件伺服器
- 使用 SMTP 接收郵件
- 將 SMTP 作為用戶界面
- 提供對郵箱的 POP3 訪問
- 提供對郵箱的 IMAP 訪問
- 9. NNTP 客戶端和伺服器
- 列出伺服器上的新聞組
- 下載 Usenet 文章
- 向 NNTP 伺服器發送消息
- 運行基本的 NNTP 伺服器
- 使用 NNTP 作為用戶界面
- 10. SSH
- 設置自定義 SSH 伺服器
- 使用公鑰進行認證
- 提供管理用的 Python Shell
- 在遠端伺服器上運行命令
- 11. 服務、進程和日誌
- 將 Twisted 應用程式作為守護進程運行
- 設定應用程式的權限限制
- 管理多個服務
- 記錄事件和錯誤
- 索引