Foundations of Python Network Programming 2nd edition phần 1 doc
... Game 10 3 Running a Benchmark 10 6 Event-Driven Servers 10 9 Poll vs. Select 11 2 The Semantics of Non-blocking 11 3 Event-Driven Servers Are Blocking and Synchronous 11 4 Twisted Python 11 4 Load ... 235 ■Chapter 15 : IMAP 243 ■Chapter 16 : Telnet and SSH 263 ■Chapter 17 : FTP 2 91 ■Chapter 18 : RPC 305 ■Index 323 BOOKS FOR PROFESSIONALS BY PROFESSIONALS ® Founda...
Ngày tải lên: 12/08/2014, 19:20
... socket.gethostbyname('cern.ch') &apos ;13 7 .13 8 .14 4 .16 9' >>> socket.gethostbyaddr(&apos ;13 7 .13 8 .14 4 .16 9') ('webr8.cern.ch', [], [&apos ;13 7 .13 8 .14 4 .16 9']) Finally, three ... socket. You can see this pattern in Listing 5 1. Listing 5 1. Sending a Single Stream of Data #!/usr/bin/env python # Foundations of Python...
Ngày tải lên: 12/08/2014, 19:20
... -rw-r r 1 (?) » (?) » » 750 Feb 14 19 94 INDEX -rw-r r 1 root » bin » » 13 5 Feb 11 19 99 README -rw-r r 1 (?) » (?) » 3 413 03 Oct 2 19 92 ephem_4.28.tar.Z drwxr-xr-x 2 (?) » (?) » » 4096 Feb 11 19 99 ... » » 4096 Feb 11 19 99 incoming -rw-r r 1 (?) » (?) » » 5983 Oct 2 19 92 jupitor-moons.shar.Z -rw-r r 1 (?) » (?) » » 17 51 Oct 2 19 92 lunar.c.Z -rw-r r 1 (...
Ngày tải lên: 12/08/2014, 19:20
Foundations of Python Network Programming 2nd edition phần 2 ppsx
... address: $ python tcp_sixteen.py server Listening at (&apos ;12 7.0.0 .1& apos;, 10 60) We have accepted a connection from (&apos ;12 7.0.0 .1& apos;, 5 818 5) Socket connects (&apos ;12 7.0.0 .1& apos;, 10 60) ... interface—one that the first copy of the server is not listening to? Let us try: $ python udp_remote.py server 19 2 .16 8.5 .13 0 Listening at (&apos ;19 2 .16 8.5 ....
Ngày tải lên: 12/08/2014, 19:20
Foundations of Python Network Programming 2nd edition phần 4 ppt
... $ kill 11 218 $ ps f|grep &apos ;python server_[m]ulti' 11 228 pts/2 S 0:00 python server_multi.py localhost process 11 227 pts/2 S 0:00 python server_multi.py localhost process 11 226 pts/2 ... S+ 0:00 \_ python server_multi.py localhost process 11 219 pts/2 S+ 0:00 \_ python server_multi.py localhost process 11 220 pts/2 S+ 0:00 \_ python server_multi.py localhost pr...
Ngày tải lên: 12/08/2014, 19:20
Foundations of Python Network Programming 2nd edition phần 5 pot
... PHP/5.2.6 with Suhosin- Patch mod _python/ 3.3 .1 Python/ 2.5 .1 mod_perl/2.0.3 Perl/v5.8.8 Last-Modified: Fri, 11 Jun 19 99 18 :46:53 GMT ETag: "1cad180-6 718 7-31a3e140" Accept-Ranges: bytes ... GET / HTTP /1. 1 Host: google.com Response HTTP /1. 1 3 01 Moved Permanently Location: http://www.google.com/ GET / HTTP /1. 1 Host: www.google.com Respon...
Ngày tải lên: 12/08/2014, 19:20
Foundations of Python Network Programming 2nd edition phần 6 pptx
... worked just fine; CHAPTER 11 ■ WEB APPLICATIONS 18 4 Listing 11 1. A Complete WSGI Application #!/usr/bin/env python # Foundations of Python Network Programming - Chapter 11 - wsgi_app.py # A ... a large if statement. Listing 11 –3. The Template That Goes With Listing 11 –2 %#!/usr/bin/env python %# Foundations of Python Network Programming - Chapter 11...
Ngày tải lên: 12/08/2014, 19:20
Foundations of Python Network Programming 2nd edition phần 7 potx
... at Listing 12 12 for how to do it 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 # ... COMPOSITION AND DECODING 212 Listing 12 14 . Doing MIME with Both Alternatives and Attachments #!/usr/bin/env python # Foundations of Python Network Progra...
Ngày tải lên: 12/08/2014, 19:20
Foundations of Python Network Programming 2nd edition phần 8 pps
... sets of criteria for dates, depending on which date you want to query by: BEFORE 01- Jan -19 70 ON 01- Jan -19 70 SINCE 01- Jan -19 70 SENTBEFORE 01- Jan -19 70 SENTON 01- Jan -19 70 SENTSINCE 01- Jan -19 70 ... flags. CHAPTER 16 ■ TELNET AND SSH 267 Listing 16 –2. Shell Supporting Whitespace-Separated Arguments #!/usr/bin/env python # Foundations of Python Network Progr...
Ngày tải lên: 12/08/2014, 19:20
Foundations of Python Network Programming 2nd edition phần 10 pps
... pattern, 17 daemon programming, 99 directories and FTP, 299 event-driven, 10 9 17 flup, 18 0, 18 3 frameworks, 11 4 -11 6, 12 0, 17 9, 18 7–92, 319 inetd, 12 3 Launcelot example, 10 0 12 0, 12 6 load ... connections, 14 7 POST, 14 8– 51 raw connections, 5 redirection, 14 4–47, 15 0 relative URLs, 14 1 response codes, 13 7, 14 4, 15 3, 18 5, 229 REST, 15 1...
Ngày tải lên: 12/08/2014, 19:20