Foundations of Python Network Programming

כריכה קדמית
Apress, 16 באוג׳ 2004 - 536 עמודים
TwENTY-FIVE YEARS AGO, the world was a different place. Talking to someone across the ocean was, for most people, an exceptionally rare experience. Sending a letter could take weeks. Listening to a shortwave newscast from a foreign land required technical skill, patience, and precise atmospheric conditions. Today, we think nothing of receiving an e-mail from South Korea, checking the weather in California, and reading the day's headlines in Germany-all in less than five minutes. Files zip across the global electronic network, allowing us to do every thing from managing investment accounts to seeing pictures of distant relatives. And yet, despite all that has happened in the last 25 years, the Internet is still in its infancy. It's a new technology, still growing. I wrote this book because the Internet is exciting. In the past few years, we've seen the rise of an entire industry that did not exist before. It's a place where inventors thrive. And that is what I hope you get from this book. I want this to be your lab manual-your guide for inventing things that make the Internet better. Organization This book is divided into five parts. The first part explains how the Internet works. You'll learn about the fundamentals oflnternet communication, and the examples provide you with the basic tools that you'll use to assemble your programs. Part Two covers web-based services and Part Three covers e-mail services.
 

תוכן

Chapter 1
3
Chapter
9
Chapter
15
Understanding Sockets
19
Using User Datagram Protocol
31
Network Servers
35
Logging with syslog
55
Using PyDNS for Advanced Lookups
76
23
305
Retrieving Data
310
Using Data Types
317
Reducing Vulnerabilities with
324
Part Five ServerSide Frameworks
339
SocketServer
341
31
343
SimpleXMLRPCServer
355

Transmitting Strings
90
Using Event Notification with poll or select
104
Handling Errors
121
Parsing HTML and XHTML
127
Summary
143
Using XMLRPC
159
Composing Traditional Messages
173
Composing NonEnglish Headers
187
Getting Information from EHLO
202
POP
211
Introducing IMAP in Twisted
225
Examining Folders
239
20
240
Retrieving Message Parts
255
Adding Messages
268
Handling Errors
283
Database Clients
295
Executing Commands
301
Exploiting Class Features
361
Supporting Multicall Functions
367
CGI
369
Escaping Special Characters
383
mod_python
393
Understanding mod_python Basics
399
Escaping
412
Part Six Multitasking 417
418
Forking
419
Forking Servers
430
Threading
443
Writing Threaded Clients
463
Asynchronous Communication
469
Advanced ServerSide
476
Using Twisted for Servers
485
Index
491
356
507
זכויות יוצרים

מהדורות אחרות - הצג הכל

מונחים וביטויים נפוצים

מידע על המחבר (2004)

John Goerzen is an accomplished author, system administrator, and Python programmer. He has been a Debian developer since 1996 and is currently president of Software in the Public Interest, Inc. His previously published books include the Linux Programming Bible, Debian Unleashed, and Linux Unleashed.

מידע ביבליוגרפי