Linux Networking Programming

Trio Tutorial – Simple TCP Chat Program – Part 4


Part 1:

Part 2:

Part 3:

In part 4 we look into making the server handle disconnections without crashing. We also look into how me can make messages quicker to distribute.

For this code we use the trio functionality to wait for limited time for a task to complete, by using trio.move_on_after(seconds):

Got any questions? Contact me:

Leave a Reply

Your email address will not be published. Required fields are marked *