Investigate feasability of an OFKernelEventObserver based on WaitForMultipleObjects() #108

Open
opened 2026-04-10 18:18:53 +02:00 by js · 0 comments
Owner

Having an OFKernelEventObserver based on Windows events would allow async operations on sockets and non-sockets at the same time. This would require turning sockets into events using WSAEventSelect.

Since 3rd party subclasses might just provide a file descriptor that is from a socket, there needs to be fallback logic that checks if a Windows event is available for a stream and if not falls back to creating one using WSAEventSelect from the provided file descriptor.

Having an `OFKernelEventObserver` based on Windows events would allow async operations on sockets and non-sockets at the same time. This would require turning sockets into events using `WSAEventSelect`. Since 3rd party subclasses might just provide a file descriptor that is from a socket, there needs to be fallback logic that checks if a Windows event is available for a stream and if not falls back to creating one using `WSAEventSelect` from the provided file descriptor.
js self-assigned this 2026-04-10 18:46:53 +02:00
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set

Reference
ObjFW/ObjFW#108
No description provided.