没有合适的资源?快使用搜索试试~ 我知道了~
首页Twisted Network Programming Essentials, 2nd Edition
This book is about Twisted, an open source, event-driven networking engine written in Python. Twisted supports many common transport and application layer protocols, including TCP, UDP, SSL/TLS, HTTP, IMAP, SSH, IRC, and FTP. Like the language in which it is written, it is “batteries-included”; Twisted comes with client and server implementations for all of its protocols, as well as utilities that make it easy to configure and deploy production-grade Twisted applications from the command line.
资源详情
资源评论
资源推荐

Twisted Network Programming Essentials, Second Edition
by Jessica McKellar and Abe Fettig
Copyright © 2013 Jessica McKellar. All rights reserved.
Printed in the United States of America.
Published by O’Reilly Media, Inc., 1005 Gravenstein Highway North, Sebastopol, CA 95472.
O’Reilly books may be purchased for educational, business, or sales promotional use. Online editions are
also available for most titles (http://my.safaribooksonline.com). For more information, contact our corporate/
institutional sales department: 800-998-9938 or corporate@oreilly.com.
Editor: Meghan Blanchette
Production Editor: Christopher Hearse
Copyeditor: Rachel Head
Proofreader: Amanda Kersey
Indexer: Bob Pfahler
Cover Designer: Randy Comer
Interior Designer: David Futato
Illustrator: Rebecca Demarest
March 2013: Second Edition
Revision History for the Second Edition:
2013-03-11: First release
See http://oreilly.com/catalog/errata.csp?isbn=9781449326111 for release details.
Nutshell Handbook, the Nutshell Handbook logo, and the O’Reilly logo are registered trademarks of O’Reilly
Media, Inc. Twisted Network Programming Essentials, 2nd Edition, an image of a ball of snakes, and related
trade dress are trademarks of O’Reilly Media, Inc.
Many of the designations used by manufacturers and sellers to distinguish their products are claimed as
trademarks. Where those designations appear in this book, and O’Reilly Media, Inc., was aware of a trade‐
mark claim, the designations have been printed in caps or initial caps.
While every precaution has been taken in the preparation of this book, the publisher and authors assume
no responsibility for errors or omissions, or for damages resulting from the use of the information contained
herein.
ISBN: 978-1-449-32611-1
[LSI]
www.it-ebooks.info

Table of Contents
Foreword to the First Edition. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . ix
Preface. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . xiii
Part I. An Introduction to Twisted
1. Getting Started. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3
Installing Twisted 3
Installation on Linux 3
Installation on Windows 4
Installation on OS X 5
Installing from Source 5
Required Dependencies 5
Installing Twisted from a Release Tarball 6
Installing Twisted from a Source Checkout 6
Installing Optional Dependencies from Source 6
Testing Your Installation 7
Using the Twisted Documentation 8
API Documentation 8
Subproject Documentation 8
Finding Answers to Your Questions 8
Mailing Lists 9
IRC Channels 9
Stack Overflow 9
Twisted Blogs 9
2. Building Basic Clients and Servers. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 11
A TCP Echo Server and Client 11
Event-Driven Programming 12
The Reactor 14
iii
www.it-ebooks.info
剩余192页未读,继续阅读

















安全验证
文档复制为VIP权益,开通VIP直接复制

评论2