Skip to content
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

Add a GIO version of accept_async #114

Merged
merged 3 commits into from
Mar 22, 2023
Merged

Conversation

carlosmn
Copy link
Contributor

Just like we have accept_async for tokio and async_std, we can build one for GIO so we can use something like gio::SocketService to handle the accepting and then we can spawn off tasks.

This comes also with a sample server just to make sure it can work.

These are the server-side functions just like we have them e.g. for tokio so we
can run servers.
Not doing so means we rudely disconnect from the socket without clong out our
websocket stream
This lets us use the SocketService we might already want to use and use it for a
websocket server.
Copy link
Owner

@sdroege sdroege left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks, looks good to me!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants