Python Network Programming Cookbook - Second Edition.

Discover practical solutions for a wide range of real-world network programming tasksAbout This Book* Solve real-world tasks in the area of network programming, system/networking administration, network monitoring, and more.* Familiarize yourself with the fundamentals and functionalities of SDN* Imp...

Full description

Saved in:
Bibliographic Details
Main Author: Kathiravelu, Pradeeban
Other Authors: Sarker, Dr. M. O. Faruque
Format: Electronic eBook
Language:English
Published: Birmingham : Packt Publishing, 2017.
Edition:2nd ed.
Subjects:
Online Access:CONNECT
Table of Contents:
  • Cover ; Copyright; Credits; About the Author; About the Reviewers; www.PacktPub.com; Customer Feedback; Table of Contents; Preface; Chapter 1: Sockets, IPv4, and Simple Client/Server Programming; Introduction; Printing your machine's name and IPv4 address; Getting ready; How to do it ... ; How it works ... ; Retrieving a remote machine's IP address; How to do it ... ; How it works ... ; Converting an IPv4 address to different formats; How to do it ... ; How it works ... ; Finding a service name, given the port and protocol; Getting ready; How to do it ... ; How it works ...
  • Converting integers to and from host to network byte orderHow to do it ... ; How it works ... ; Setting and getting the default socket timeout; How to do it ... ; How it works ... ; Handling socket errors gracefully; How to do it ... ; How it works ... ; Modifying a socket's send/receive buffer sizes; How to do it ... ; How it works ... ; Changing a socket to the blocking/non-blocking mode; How to do it ... ; How it works ... ; Reusing socket addresses; How to do it ... ; How it works ... ; Printing the current time from the internet time server; Getting ready; How to do it ... ; How it works ...
  • Writing an SNTP clientHow to do it ... ; How it works ... ; Writing a simple TCP echo client/server application; How to do it ... ; How it works ... ; Writing a simple UDP echo client/server application; How to do it ... ; How it works ... ; Chapter 2: Multiplexing Socket I/O for Better Performance; Introduction; Using ForkingMixIn in your socket server applications; How to do it ... ; How it works ... ; Using ThreadingMixIn in your socket server applications; Getting ready; How to do it ... ; How it works ... ; Writing a chat server using select.select; How to do it ... ; How it works ...
  • Multiplexing a web server using select.epollHow to do it ... ; How it works ... ; Multiplexing an echo server using Diesel concurrent library; Getting ready; How to do it ... ; How it works ... ; Chapter 3: IPv6, Unix Domain Sockets, and Network Interfaces; Introduction; Forwarding a local port to a remote host; How to do it ... ; How it works ... ; Pinging hosts on the network with ICMP; Getting ready; How to do it ... ; How it works ... ; Waiting for a remote network service; How to do it ... ; How it works ... ; Enumerating interfaces on your machine; Getting ready; How to do it ... ; How it works ...
  • Finding the IP address for a specific interface on your machineGetting ready; How to do it ... ; How it works ... ; Finding whether an interface is up on your machine; Getting ready; How to do it ... ; How it works ... ; Detecting inactive machines on your network; Getting ready; How to do it ... ; How it works ... ; Performing a basic IPC using connected sockets (socketpair); Getting ready; How to do it ... ; How it works ... ; Performing IPC using Unix domain sockets; How to do it ... ; How it works ... ; Finding out if your Python supports IPv6 sockets; Getting ready; How to do it ... ; How it works ...