-
Couldn't load subscription status.
- Fork 81
Add support for using CompletionPacket for overlapped I/O #137
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
base: master
Are you sure you want to change the base?
Conversation
It makes more sense to have it here. Signed-off-by: John Nunley <[email protected]>
This allows it to be used outside of polling as a part of overlapped operations. Signed-off-by: John Nunley <[email protected]>
Signed-off-by: John Nunley <[email protected]>
Signed-off-by: John Nunley <[email protected]>
Signed-off-by: John Nunley <[email protected]>
Signed-off-by: John Nunley <[email protected]>
|
Hi @notgull! What is the state of this pr? I'm willing to help with this |
|
There was a segfault I kept encountering that I couldn't figure out how to work around. So if that was fixed this would be good to merge. |
|
I have an error and a crash in Write errorit seems you are using
But the Packet actually doesn't have OVERLAPPED as the first field and isn't #[repr(C)]? Something like: After changing this to it started writing. Crash
|
|
Hi @notgull! I implement another version which use mio named pipe idea to use completion key to differentiate file overlapped pointer and normal Packet block pointer. The file overlapped pointer has offset to the Packet block and can be converted to Packet. The add_file api return read/write overlapped pointer for caller used as overlapped pointer parameter in windows WriteFile/ReadFile API. PR #248 |
Closes #97
This allows the packet to be used for overlapped operations, like reading from or writing to files.