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

attaching pgfe connection to event ports #14

Open
ghost opened this issue Aug 11, 2021 · 5 comments
Open

attaching pgfe connection to event ports #14

ghost opened this issue Aug 11, 2021 · 5 comments
Labels
3.0 enhancement New feature or request

Comments

@ghost
Copy link

ghost commented Aug 11, 2021

How can i attach pgfe to existing event loop based on epoll?

@dmitigr
Copy link
Owner

dmitigr commented Jan 29, 2022

Hello,

Connection::socket() shall be exposed for that. Is it still actual?

@dmitigr dmitigr added v2.0 enhancement New feature or request 2.1 and removed v2.0 labels Jan 29, 2022
@ghost
Copy link
Author

ghost commented Feb 9, 2022

@dmitigr No, at least for me, but if this is implemented it would be great

@dmitigr
Copy link
Owner

dmitigr commented Feb 9, 2022

@dmitigr No, at least for me, but if this is implemented it would be great

@kvxmmu Ok, I see. I've planned asynchronous IO API (with automatic polling via libuv and callbacking) in v2.1. Could you please describe the use case for this feature from your practice? Thanks.

@ghost
Copy link
Author

ghost commented Feb 9, 2022

@dmitigr Yes, currently I am developing NeoGrok(https://github.com/kvxmmu/neogrok, TL;DR: dedicated ngrok alternative) and in the past it was implemented in C++ and event port was epoll(legacy-server branch). I wanted to implement authorization through database, and not through universal password, so lack of asynchronous IO interface was a problem.

@dmitigr
Copy link
Owner

dmitigr commented Feb 9, 2022

Ok, I see. Thank you!

@dmitigr dmitigr added 3.0 and removed 2.1 labels Jan 29, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
3.0 enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant