-
Notifications
You must be signed in to change notification settings - Fork 5
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
extend to support sockets via arbitrary file descriptors? #4
Comments
I guess we would only require an alternative constuctor for this class that allows to put in the fd pointer directly: https://github.com/zrlio/jaio/blob/master/src/main/java/com/ibm/jaio/File.java |
Yes you are correct. The path member is currently not used. So it should be an easy change. Feel free to create a PR which adds a constructor and removes the path member. |
Thanks for the quick answer and confirming my idea, will try that. There is this netty integration: https://github.com/netty/netty-incubator-transport-io_uring I will create a PR when I tackle alternatives to nio selector. Might take a few more weeks until I get to experimenting with jaio. |
Would be interesting to experiment with this as an alterantive to EPOLL as described here: https://blog.cloudflare.com/io_submit-the-epoll-alternative-youve-never-heard-about/
Though from what I see currently the API only supports actual "File" instances, not arbitrary file descriptors (which we can also extract from SocketChannels via reflection).
The text was updated successfully, but these errors were encountered: