chapter three
3 A first asyncio application
This chapter covers
- How to use sockets to transfer data over a network
- How to use telnet to communicate with a socket-based application
- The issues with blocking sockets, and how to resolve them with non-blocking sockets
- Using selectors to build a simple event loop for non-blocking sockets
- How to use non-blocking sockets with the asyncio event loop
- How to create a non-blocking echo server that allows for multiple connections
- How to handle exceptions in tasks
- How to add custom shutdown logic to an asyncio application