May-29-2017, 12:17 PM
asyncio Protocol and Transports are the classes you need:
https://docs.python.org/3.5/library/asyn...#protocols
https://docs.python.org/3.5/library/asyn...-transport
https://docs.python.org/3.5/library/asyncio-stream.html
You may try Twisted: https://twistedmatrix.com/documents/curr.../examples/
Also, see aiohttp library: https://aiohttp.readthedocs.io/en/stable/web.html - this is the server side
https://docs.python.org/3.5/library/asyn...#protocols
https://docs.python.org/3.5/library/asyn...-transport
https://docs.python.org/3.5/library/asyncio-stream.html
You may try Twisted: https://twistedmatrix.com/documents/curr.../examples/
Also, see aiohttp library: https://aiohttp.readthedocs.io/en/stable/web.html - this is the server side