Learning Python Networking - Second Edition
by José Manuel Ortega, Dr. M. O. Faruque Sarker, Sam Washington
Protocols
Twisted is a network framework that implements a large number of protocols. It uses the paradigm known as event-driven programming, where the flow of a program is determined by the events that occur during its execution. The main objective of this framework is to provide a solution to the problems that are established by the use of sockets at a low level, mediating with threads and with the problems that this also presents (for example, access to shared data).
Twisted implements a multitude of protocols that we can use in our applications in a simple and asynchronous way—it contains a web server, instant messaging clients, chat servers, mail servers and clients, servers and SSH clients, and much more.
Twisted is designed to separate ...
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.
Read now
Unlock full access