Message135434
A solution could be to use overlapped I/O on the named pipe handles.
The first poll() would call ReadFile() with a tiny value (1?) and store an object wrapping the OVERLAPPED structure. Subsequent poll() or recv() would re-use that structure until the overlapped read succeeds.
The hEvent in the OVERLAPPED structure should be usable in WFMO fine. |
|
Date |
User |
Action |
Args |
2011-05-07 10:00:05 | pitrou | set | recipients:
+ pitrou, kristjan.jonsson, tim.golden, jnoller, brian.curtin, asksol |
2011-05-07 10:00:05 | pitrou | set | messageid: <1304762405.72.0.526872303226.issue11668@psf.upfronthosting.co.za> |
2011-05-07 10:00:03 | pitrou | link | issue11668 messages |
2011-05-07 10:00:03 | pitrou | create | |
|