This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
"""Daniele Giancola 2015 | |
This program is implemented in python3.5. | |
The idea behind this server is to use non-blocking sockets, | |
and to schedule callbacks with 'select' when the sockets are ready | |
to be read or written. | |
According to the documentation, DefaultSelector() is an alias | |
for the most efficient implementation (epoll, select, kqueue, iocp, etc.) | |
based on the current platform. |