05576nam 2200685 450 991045346570332120200520144314.01-84951-347-3(CKB)2550000001250857(EBL)1572943(SSID)ssj0001212551(PQKBManifestationID)11718084(PQKBTitleCode)TC0001212551(PQKBWorkID)11210781(PQKB)11576822(MiAaPQ)EBC1572943(PPN)185442145(Au-PeEL)EBL1572943(CaPaEBR)ebr10854994(CaONFJC)MIL585813(OCoLC)875641121(EXLCZ)99255000000125085720140413h20142014 uy 0engur|n|---|||||txtccrPython network programming cookbook over 70 detailed recipes to develop practical solutions for a wide range of real-world network programming tasks /Dr. M. O. Faruque Sarker ; cover image by Gabrielay La PinturaBirmingham, England :Packt Publishing,2014.©20141 online resource (234 p.)Quick answers to common problems"Quick answers to common problems"--Cover.1-84951-346-5 1-306-54562-5 Cover; 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 sizesChanging 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 libraryChapter 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 addressWriting 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 OpenSSLChapter 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 APISearching for geographic coordinates using the Google Maps URLAn 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 aComputer gamesProgrammingOpen source softwarePython (Computer program language)Electronic books.Computer gamesProgramming.Open source software.Python (Computer program language)794.81526Sarker Dr. M. O. Faruque970914La Pintura GabrielayMiAaPQMiAaPQMiAaPQBOOK9910453465703321Python network programming cookbook2206830UNINA