Socket Programming

his chapter will introduce you to some of the basics of Python networking using the socket module. Along the way, we'll build clients, servers with TCP, and user datagram protocol (UDP) protocols. Sockets Programming covers using TCP and UDP sockets from Python for writing low-level network applications. We will also cover HTTPS and TLS for secure data transport.

The following topics will be covered in this chapter:

  • Understanding the sockets and how to implement them in Python
  • Understanding the TCP Programming Client and Server in Python
  • Understand the UDP Programming Client and Server in Python
  • Understand socket methods for resolving IP addresses and domains
  • Applying all concepts in practical uses cases, such as port ...

Get Mastering Python for Networking and Security 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.