LEADER 05576nam 2200685 450 001 9910453465703321 005 20200520144314.0 010 $a1-84951-347-3 035 $a(CKB)2550000001250857 035 $a(EBL)1572943 035 $a(SSID)ssj0001212551 035 $a(PQKBManifestationID)11718084 035 $a(PQKBTitleCode)TC0001212551 035 $a(PQKBWorkID)11210781 035 $a(PQKB)11576822 035 $a(MiAaPQ)EBC1572943 035 $a(PPN)185442145 035 $a(Au-PeEL)EBL1572943 035 $a(CaPaEBR)ebr10854994 035 $a(CaONFJC)MIL585813 035 $a(OCoLC)875641121 035 $a(EXLCZ)992550000001250857 100 $a20140413h20142014 uy 0 101 0 $aeng 135 $aur|n|---||||| 181 $ctxt 182 $cc 183 $acr 200 10$aPython network programming cookbook $eover 70 detailed recipes to develop practical solutions for a wide range of real-world network programming tasks /$fDr. M. O. Faruque Sarker ; cover image by Gabrielay La Pintura 210 1$aBirmingham, England :$cPackt Publishing,$d2014. 210 4$dİ2014 215 $a1 online resource (234 p.) 225 1 $aQuick answers to common problems 300 $a"Quick answers to common problems"--Cover. 311 $a1-84951-346-5 311 $a1-306-54562-5 327 $aCover; Copyright; Credits; About the Author; About the Reviewers; www.PacktPub.com; Table of Contents; Preface; Chapter 1: Sockets, IPv4, and Simple Client/Server Programming; Introduction; Printing your machine's name and IPv4 address; Retrieving a remote machine's IP address; Converting an IPv4 address to different formats; Finding a service name, given the port and protocol; Converting integers to and from host to network byte order; Setting and getting the default socket timeout; Handling socket errors gracefully; Modifying socket's send/receive buffer sizes 327 $aChanging a socket to the blocking/non-blocking modeReusing socket addresses; Printing the current time from the Internet time server; Writing a SNTP client; Writing a simple echo client/server application; Chapter 2: Multiplexing Socket I/O for Better Performance; Introduction; Using ForkingMixIn in your socket server applications; Using ThreadingMixIn in your socket server applications; Writing a chat server using select.select; Multiplexing a web server using select.epoll; Multiplexing an echo server using Diesel concurrent library 327 $aChapter 3: IPv6, Unix Domain Sockets, and Network InterfacesIntroduction; Forwarding a local port to a remote host; Pinging hosts on the network with ICMP; Waiting for a remote network service; Enumerating interfaces on your machine; Finding the IP address for a specific interface on your machine; Finding whether an interface is up on your machine; Detecting inactive machines on your network; Performing a basic IPC using connected sockets (socketpair); Performing IPC using Unix domain sockets; Finding out if your Python supports IPv6 sockets; Extracting an IPv6 prefix from an IPv6 address 327 $aWriting an IPv6 echo client/serverChapter 4: Programming with HTTP for the Internet; Introduction; Downloading data from an HTTP server; Serving HTTP requests from your machine; Extracting cookie information after visiting a website; Submitting web forms; Sending web requests through a proxy server; Checking whether a web page exists with the HEAD request; Spoofing Mozilla Firefox in your client code; Saving bandwidth in web requests with the HTTP compression; Writing an HTTP fail-over client with resume and partial downloading; Writing a simple HTTPS server code with Python and OpenSSL 327 $aChapter 5: E-mail protocols, FTP, and CGI programmingIntroduction; Listing the files in a remote FTP server; Uploading a local file to a remote FTP server; E-mailing your current working directory as a compressed ZIP file; Downloading your Google e-mail with POP3; Checking your remote e-mail with IMAP; Sending an e-mail with an attachment via Gmail SMTP server; Writing a guestbook for your (Python-based) web server with CGI; Chapter 6: Screen-scraping and Other Practical Applications; Introduction; Searching for business addresses using the Google Maps API 327 $aSearching for geographic coordinates using the Google Maps URL 330 $aAn easy-to-follow guide full of hands-on examples on real-world networking tasks. It covers the advanced topics of network programming in Python using a set of selected recipes.If you are a network programmer, system/network administrator, or a web application developer, this book is ideal for you. You should have a basic familiarity with the Python programming language and TCP/IP networking concepts. However if you are a novice, you will develop an understanding of the concepts as you progress with this book. This book will serve as a supplementary material for developing hands-on skills in a 606 $aComputer games$xProgramming 606 $aOpen source software 606 $aPython (Computer program language) 608 $aElectronic books. 615 0$aComputer games$xProgramming. 615 0$aOpen source software. 615 0$aPython (Computer program language) 676 $a794.81526 700 $aSarker$b Dr. M. O. Faruque$0970914 702 $aLa Pintura$b Gabrielay 801 0$bMiAaPQ 801 1$bMiAaPQ 801 2$bMiAaPQ 906 $aBOOK 912 $a9910453465703321 996 $aPython network programming cookbook$92206830 997 $aUNINA