New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Server support for protocols #26
Conversation
# Conflicts: # examples/echo/echos_tcp.py
Makes it run properly under netius that handles SSL disconnect in a different way
Uses the _asyncio_future_blocking to mark the object as duck type compatible
This makes it possible to use environment variables in Netius based event loops
This way it can be used by multiple clients
This support was added to the ServerTransport
There's still part of the server API that is pending implementation. |
18e7181
to
8843d2d
Compare
Some initial notes on how to approach the challenge:
|
There should exist an immediate followup PR to re-open the on going work for server implementation. |
CC: @hugo-gomes |
Design changes
common.py
(server()
,socket_tcp()
,socket_udp()
)compat.py
fileCurrent Status
EchoServerProtocol
) already workingEchoProtocol
is the one used for the testingWhat is still missing
Testing
To run the echo server Protocol implementation using netius run:
To use the compat version meaning that an asyncio-like interface will be used underneath the hoods use:
This PR is related to #23