This chapter will introduce you to the basics of sockets and the principles of UDP and TCP through examples of socket programming with the socket module. Along the way, we'll build clients, servers with TCP and UDP protocols with the IPv4 and IPv6 protocols. We will also cover non-blocking and asynchronous programming and HTTPS and TLS for secure data transport.
The following topics will be covered in this chapter:
- Basics of sockets
- Working with UDP and TCP sockets in Python 3.7
- Working with IPv6 sockets in Python 3.7
- Non-blocking and asynchronous socket I/O
- HTTPS and securing sockets with TLS