Skip to Content
Mastering Python for Networking and Security - Second Edition
book

Mastering Python for Networking and Security - Second Edition

by José Manuel Ortega
January 2021
Intermediate to advanced
538 pages
10h 41m
English
Packt Publishing
Content preview from Mastering Python for Networking and Security - Second Edition

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 ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Start your free trial

You might also like

Mastering Python for Networking and Security

Mastering Python for Networking and Security

José Manuel Ortega
Python for Cybersecurity

Python for Cybersecurity

Howard E. Poston, III

Publisher Resources

ISBN: 9781839217166Supplemental Content