Chapter 3: Socket Programming
In this chapter, you will learn some of the basics of Python networking using the socket module. The socket module exposes all of the necessary methods to quickly write TCP and UDP clients and servers for writing low-level network applications.
Socket programming refers to an abstract principle by which two programs can share any data stream by using an Application Programming Interface (API) for different protocols available in the internet TCP/IP stack, typically supported by the operating systems.
We will also cover implementing HTTP server and socket methods for resolving IPS domains and addresses.
The following topics will be covered in this chapter:
- Introducing sockets in Python
- Implementing an HTTP server ...
Get Mastering Python for Networking and Security - Second Edition now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.