Foundations of Python Network ProgrammingApress, 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 |
491 | |
507 | |
מהדורות אחרות - הצג הכל
Foundations of Python Network Programming <span dir=ltr>John Goerzen</span> אין תצוגה מקדימה זמינה - 2004 |
Foundations of Python Network Programming <span dir=ltr>John Goerzen</span> אין תצוגה מקדימה זמינה - 2013 |
מונחים וביטויים נפוצים
authentication basic binary bytes client connects command configuration Content-Type created database def __init__(self delete document e-mail error file descriptor filename flags folder fork function handle handler headers Here's an example host hostname HTMLParser IMAP IMAP4Client implement import socket import sys inetd instance interface Internet IP address IPv4 IPv6 jgoerzen KeyboardInterrupt localhost mail reader mail server mailbox maintype method MIME mod_python module name server node OpenSSL operating system options output packet parameter parsing password port number PostgreSQL print Connection problem protocol provides query receive remote request result retrieve retval run this program sendmail simple SMTP socket object socket.error socket.SOCK_STREAM socket.socket(socket.AF_INET specified string syslog telnet test message thread tuple Twisted UNIX urllib2 username usr/bin/env python write XHTML XML-RPC