Book Image

Learning Python Network Programming

By : Dr. M. O. Faruque Sarker, Samuel B Washington, Sam Washington
Book Image

Learning Python Network Programming

By: Dr. M. O. Faruque Sarker, Samuel B Washington, Sam Washington

Overview of this book

Table of Contents (17 chapters)
Learning Python Network Programming
Credits
About the Authors
About the Reviewers
www.PacktPub.com
Preface
Index

Summary


In this chapter, we discussed basic TCP/IP socket programming using Python's socket and ssl module. We demonstrated how simple TCP sockets can be wrapped with TLS and used to carry encrypted data. We also found the ways to validate the authenticity of a remote server using SSL certificates. Some other minor issues around socket programming, such as non-blocking socket I/O were also presented. The detailed packet analysis in each section helps us to understand what happens under the hood in our socket programming exercises.

In the next chapter, we will learn about the socket server design, particularly the popular multithreaded and event-driven approaches will be touched upon.