Foundations of Python Network Programming 2nd edition phần 6 pptx
... the listing—to choose which of the three forms we wanted. Listing 10–2. Submitting a Form with mechanize #!/usr/bin/env python # Foundations of Python Network Programming - Chapter 10 - fetch_mechanize.py ... #!/usr/bin/env python # Foundations of Python Network Programming - Chapter 11 - wsgi_app.py # A simple web application built using the Bottle micro-fram...
Ngày tải lên: 12/08/2014, 19:20
... data after it—to signal that the series of blocks is over. Listing 5–2. Sending Blocks of Data #!/usr/bin/env python # Foundations of Python Network Programming - Chapter 5 - blocks.py # Sending ... getaddrinfo()to Create and Connect a Socket #!/usr/bin/env python # Foundations of Python Network Programming - Chapter 4 - www_ping.py # Find the WWW service of...
Ngày tải lên: 12/08/2014, 19:20
... CHAPTER 6 ■ TLS AND SSL 96 Listing 6 1. Wrapping a Client Socket with TLS Protection #!/usr/bin/env python # Foundations of Python Network Programming - Chapter 6 - sslclient.py # Using ... periods of time are generally not very interesting when examining a quick protocol like this.) Listing 7–4. Tracer for a Python Function #!/usr/bin/env python # Foundati...
Ngày tải lên: 12/08/2014, 19:20
Foundations of Python Network Programming 2nd edition phần 5 pot
... the functions live together in recent versions of Python for versions of Pythons older than 2 .6, two of them live in the cgi module instead: # For Python 2.5 and earlier >>> from urlparse ... Listing 8–1. Constants and Functions for the Lancelot Protocol #!/usr/bin/env python # Foundations of Python Network Programming - Chapter 8 - squares.py # Using mem...
Ngày tải lên: 12/08/2014, 19:20
Foundations of Python Network Programming 2nd edition phần 7 potx
... in Python. Listing 12–12. Using a Character Encoding for a Header #!/usr/bin/env python # Foundations of Python Network Programming - Chapter 12 - mime_headers.py # This program requires Python ... 12– 16 shows a program that will let you decode and save any component of a MIME message: Listing 12– 16. Decoding Attachments in a MIME Message #!/usr/bin/env python #...
Ngày tải lên: 12/08/2014, 19:20
Foundations of Python Network Programming 2nd edition phần 8 pps
... flags. CHAPTER 16 ■ TELNET AND SSH 267 Listing 16 2. Shell Supporting Whitespace-Separated Arguments #!/usr/bin/env python # Foundations of Python Network Programming - Chapter 16 - shell.py ... [2590L, 265 2L, 265 3L, 265 4L, 265 5L, 269 9L] These UIDs can then be the subject of a fetch() command that retrieves the information about each message that you need in orde...
Ngày tải lên: 12/08/2014, 19:20
Foundations of Python Network Programming 2nd edition phần 9 doc
... f.quit() CHAPTER 16 ■ TELNET AND SSH 288 Listing 16 8. Listing a Directory and Fetching Files with SFTP #!/usr/bin/env python # Foundations of Python Network Programming - Chapter 16 - sftp.py ... like this: $ python sftp.py Transfer of 'messages.1' is at 32 768 /12 860 9 bytes (25.5%) Transfer of 'messages.1' is at 65 5 36/ 12 860 9 bytes (51...
Ngày tải lên: 12/08/2014, 19:20
Foundations of Python Network Programming 2nd edition phần 10 pps
... page, 189 Python data types and RPC systems, 311, 3 16 Python file objects from TCP streams, 49 Python Module of the Week”, 115 Python Package Index, 2 Python Standard Library, 2, 6 python- daemon, ... trees, 167 , 168 –73 forms, 148 parsing, 163 –77 screen scraping, 163 –78 selectors, 173 static elements, 180 syntax, 167 templates, 190 theming, 1 86 tidy tools, 168...
Ngày tải lên: 12/08/2014, 19:20