Welcome to Scribd, the world's digital library. Read, publish, and share books and documents. See more
Download
Standard view
Full view
of .
Look up keyword or section
Like this
3Activity

Table Of Contents

Introduction
1.1 The Vision For Twisted
1.2 High-Level Overview of Twisted
1.3 Overview of Twisted Internet
Tutorial
2.1 Writing Servers
2.1.1 Overview
2.1.2 Protocols
2.1.3 Factories
2.2 Writing Clients
2.2.1 Overview
2.2.2 Protocol
2.2.3 Simple, single-use clients
2.2.4 ClientFactory
2.2.5 A Higher-Level Example: ircLogBot
2.2.6 Further Reading
2.3 Setting up the TwistedQuotes application
2.3.1 Goal
2.3.2 Setting up the TwistedQuotes project directory
2.4 Designing Twisted Applications
2.4.1 Goals
2.4.2 Example of a modular design: TwistedQuotes
2.5 Twisted from Scratch, or The Evolution of Finger
2.5.1 Introduction
2.5.2 Contents
1. The Evolution of Finger: building a simple finger service (this page)
2.6 The Evolution of Finger: building a simple finger service
2.6.1 Introduction
2.6.2 Refuse Connections
2.6.3 Do Nothing
2.6.4 Drop Connections
2.6.5 Read Username, Drop Connections
2.6.6 Read Username, Output Error, Drop Connections
2.6.7 Output From Empty Factory
2.6.8 Output from Non-empty Factory
2.6.9 Use Deferreds
2.6.10 Run ’finger’ Locally
2.6.11 Read Status from the Web
2.6.12 Use Application
2.6.13 twistd
2.7 The Evolution of Finger: adding features to the finger service
2.7.1 Introduction
2.7.2 Setting Message By Local Users
2.7.3 Use Services to Make Dependencies Sane
2.7.4 Read Status File
2.7.5 Announce on Web, Too
2.7.6 Announce on IRC, Too
2.7.7 Add XML-RPC Support
2.8 The Evolution of Finger: cleaning up the finger code
2.8.1 Introduction
2.8.2 Write Readable Code
2.9 The Evolution of Finger: moving to a component based architecture
2.9.1 Introduction
2.9.2 Write Maintainable Code
2.9.3 Advantages of Latest Version
# Advantages of latest version
2.9.4 Aspect-Oriented Programming
2.10 The Evolution of Finger: pluggable backends
2.10.1 Introduction
2.10.2 Another Back-end
2.10.3 Yet Another Back-end: Doing the Standard Thing
2.11 The Evolution of Finger: a web frontend
2.11.1 Introduction
2.12 The Evolution of Finger: Twisted client support using Perspective Bro- ker
2.12.1 Introduction
2.12.2 Use Perspective Broker
2.13 The Evolution of Finger: using a single factory for multiple protocols
2.13.1 Introduction
2.13.2 Support HTTPS
2.15.3 Easy Configuration
2.16 The Evolution of Finger: configuration and packaging of the finger service
2.16.1 Introduction
2.16.2 Plugins
2.16.3 OS Integration
Low-Level Twisted
3.1 Reactor Overview
3.1.1 Reactor Basics
3.1.2 Using the reactor object
3.2 UDP Networking
3.2.1 Overview
3.2.2 DatagramProtocol
3.2.3 Connected UDP
3.2.4 Multicast UDP
3.2.5 Acknowledgments
3.3 Using Processes
3.3.1 Overview
3.3.2 Running Another Process
3.3.3 Writing a ProcessProtocol
3.3.4 Things that can happen to your ProcessProtocol
3.3.5 Things you can do from your ProcessProtocol
3.3.6 Verbose Example
3.3.7 Doing it the Easy Way
3.3.8 Mapping File Descriptors
3.4 Deferred Reference
3.4.1 Deferreds
3.4.2 Callbacks
3.4.3 Errbacks
3.4.4 Handling either synchronous or asynchronous results
3.4.5 DeferredList
3.4.6 Class Overview
3.4.7 See also
3.5 Generating Deferreds
3.5.1 Class overview
3.5.2 What Deferreds don’t do: make your code asynchronous
3.5.3 Advanced Processing Chain Control
3.5.4 Returning Deferreds from synchronous functions
3.5.5 Integrating blocking code with Twisted
3.5.6 Possible sources of error
3.6 Deferreds are beautiful! (A Tutorial)
3.6.1 Introduction
3.6.2 A simple example
3.6.3 Errbacks
3.6.5 addCallbacks: decision making based on previous success or failure
3.6.6 Hints, tips, common mistakes, and miscellaney
3.6.7 Conclusion
3.7 Scheduling tasks for the future
3.8 Using Threads in Twisted
3.8.1 Running code in a thread-safe manner
3.8.2 Running code in threads
3.8.3 Utility Methods
3.8.4 Managing the Thread Pool
3.9 Choosing a Reactor and GUI Toolkit Integration
3.9.1 Overview
3.9.2 Reactor Functionality
3.9.3 General Purpose Reactors
3.9.4 Platform-Specific Reactors
3.9.5 GUI Integration Reactors
3.9.6 Non-Reactor GUI Integration
High-Level Twisted
4.1 The Basics
4.1.1 Application
4.1.2 twistd
4.1.3 OS Integration
4.2 The Twisted Plugin System
4.2.1 Writing Extensible Programs
4.2.2 Extending an Existing Program
4.2.3 Alternate Plugin Packages
4.2.4 Plugin Caching
4.2.5 Further Reading
4.3 Writing a twistd Plugin
4.3.1 Goals
4.3.2 A note on .tap files
4.3.3 Alternatives to twistd plugins
4.3.4 Creating the plugin
4.3.5 Using cred with your TAP
4.3.6 Conclusion
4.4 Components: Interfaces and Adapters
4.4.1 Interfaces and Components in Twisted code
4.5 Cred: Pluggable Authentication
4.5.1 Goals
4.5.2 Cred objects
4.5.3 Responsibilities
4.5.4 Cred plugins
4.5.5 Conclusion
4.6 Using the Twisted Application Framework
4.6.1 Introduction
4.6.2 Overview
4.6.3 Using application
Utilities
5.1 Parsing command-lines with usage.Options
5.1.1 Introduction
5.1.2 Boolean Options
5.1.3 Parameters
5.1.4 Option Subcommands
5.1.5 Generic Code For Options
5.1.6 Parsing Arguments
5.1.7 Post Processing
5.1.8 Type enforcement
5.2 Logging with twisted.python.log
5.2.1 Basic usage
5.2.2 Writing log observers
5.2.3 Customizing twistd logging
5.3 DirDBM: Directory-based Storage
5.3.1 dirdbm.DirDBM
5.3.2 dirdbm.Shelf
5.4 Using telnet to manipulate a twisted server
5.5 Writing tests for Twisted code using Trial
5.5.1 Trial basics
5.5.2 Trial directories
5.5.3 Twisted-specific quirks: reactor, Deferreds, callLater
Twisted RDBMS support
6.1 twisted.enterprise.adbapi: Twisted RDBMS support
6.1.1 Abstract
6.1.2 What you should already know
6.1.3 Quick Overview
6.1.4 How do I use adbapi?
6.1.5 Examples of various database adapters
6.1.6 And that’s it!
6.2 Twisted Enterprise Row Objects
6.2.1 Class Definitions
6.2.2 Initialization
6.2.3 Creating Row Objects
6.2.4 Relationships Between Tables
6.2.5 Duplicate Row Objects
6.2.6 Updating Row Objects
6.2.7 Deleting Row Objects
Perspective Broker
7.1 Overview of Twisted Spread
7.1.1 Rationale
7.2 Introduction to Perspective Broker
7.2.1 Introduction
7.2.2 Object Roadmap
7.2.3 Things you can Call Remotely
7.2.4 Things you can Copy Remotely
7.3 Using Perspective Broker
7.3.1 Basic Example
7.3.2 Complete Example
7.3.3 References can come back to you
7.3.4 References to client-side objects
7.3.5 Raising Remote Exceptions
7.3.6 Try/Except blocks and Failure.trap
7.4 PB Copyable: Passing Complex Types
7.4.1 Overview
7.4.2 Motivation
7.4.3 Passing Objects
7.4.4 pb.Copyable
7.4.5 pb.Cacheable
7.5 Authentication with Perspective Broker
7.5.1 Overview
7.5.2 Compartmentalizing Services
7.5.3 Avatars and Perspectives
7.5.4 Perspective Examples
7.5.5 Using Avatars
Manual Pages
8.1 MANHOLE.1
8.1.1 NAME
8.1.2 SYNOPSIS
8.1.3 DESCRIPTION
8.1.4 AUTHOR
8.1.5 REPORTING BUGS
8.1.6 COPYRIGHT
8.2 TAP2DEB.1
8.2.1 NAME
8.2.2 SYNOPSIS
8.2.3 DESCRIPTION
8.2.4 AUTHOR
8.2.5 REPORTING BUGS
8.2.6 COPYRIGHT
8.2.7 SEE ALSO
8.3 TAP2RPM.1
8.3.1 NAME
8.3.2 SYNOPSIS
8.3.3 DESCRIPTION
8.3.4 AUTHOR
8.3.5 REPORTING BUGS
8.3.6 COPYRIGHT
8.3.7 SEE ALSO
8.4 TAPCONVERT.1
8.4.1 NAME
8.4.2 SYNOPSIS
8.4.3 DESCRIPTION
8.4.4 AUTHOR
8.4.5 REPORTING BUGS
8.4.6 COPYRIGHT
8.5 TRIAL.1
8.5.1 NAME
8.5.2 SYNOPSIS
8.5.3 DESCRIPTION
8.5.4 OPTIONS
8.5.5 SEE ALSO
8.5.6 AUTHOR
8.5.7 REPORTING BUGS
8.5.8 COPYRIGHT
9.1 Twisted Glossary
9.2 Banana Protocol Specifications
9.2.1 Introduction
9.2.2 Banana Encodings
9.2.3 Element Types
9.2.4 Profiles
9.2.5 Protocol Handshake and Behaviour
0 of .
Results for:
No results containing your search query
P. 1
Twisted

Twisted

Ratings: (0)|Views: 40|Likes:
Published by Tim Bosschaerts

More info:

Published by: Tim Bosschaerts on Sep 07, 2011
Copyright:Attribution Non-commercial

Availability:

Read on Scribd mobile: iPhone, iPad and Android.
download as PDF, TXT or read online from Scribd
See more
See less

04/30/2013

pdf

text

original

You're Reading a Free Preview
Pages 5 to 85 are not shown in this preview.
You're Reading a Free Preview
Pages 90 to 131 are not shown in this preview.
You're Reading a Free Preview
Pages 136 to 220 are not shown in this preview.
You're Reading a Free Preview
Pages 225 to 239 are not shown in this preview.
You're Reading a Free Preview
Pages 244 to 247 are not shown in this preview.

Activity (3)

You've already reviewed this. Edit your review.
1 hundred reads
1 thousand reads
tiritapate liked this

You're Reading a Free Preview

Download
scribd
/*********** DO NOT ALTER ANYTHING BELOW THIS LINE ! ************/ var s_code=s.t();if(s_code)document.write(s_code)//-->