pgfe icon indicating copy to clipboard operation
pgfe copied to clipboard

attaching pgfe connection to event ports

Open ghost opened this issue 4 years ago • 5 comments

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

ghost avatar Aug 11 '21 19:08 ghost

Hello,

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

dmitigr avatar Jan 29 '22 17:01 dmitigr

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

ghost avatar Feb 09 '22 12:02 ghost

@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.

dmitigr avatar Feb 09 '22 12:02 dmitigr

@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.

ghost avatar Feb 09 '22 12:02 ghost

Ok, I see. Thank you!

dmitigr avatar Feb 09 '22 12:02 dmitigr