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
Expose native file descriptor for handle like objects. #4720
Comments
From @jonathanstoweHi, It would be useful to module authors if the OS platform (or runtime environment) idea of a "file descriptor" was available through some accessor on the IO::Handle, IO::Socket etc Where libuv is being used then this is available through int uv_fileno(const uv_handle_t* handle, uv_os_fd_t* fd) If libuv is being bypassed for sync operations at some later point then the descriptor will be available directly. My personal fear is that if this is not provided for the use in modules that require them then people will just bypass IO::* altogether creating an interoperability nightmare. Thanks. |
From @jnthnOn Mon Nov 02 10:54:27 2015, jns+bc@gellyfish.co.uk wrote:
Agree, it's wise to provide a way to get it for such scenarios. Added a .native-descriptor on file handles and sockets now. As the name suggests, it's native, as in platform specific (so you can expect to get a HANDLE value on Windows, for example). Tests in S32-io/native-descriptor.t. |
The RT System itself - Status changed from 'new' to 'open' |
@jnthn - Status changed from 'open' to 'resolved' |
Migrated from rt.perl.org#126541 (status was 'resolved')
Searchable as RT126541$
The text was updated successfully, but these errors were encountered: