[Libevent-users] IOCP writes

Toby Douglass toby.douglass at summerblue.net
Wed Feb 21 08:29:44 EST 2007


>> I'm adding support for IOCP writes.
>>
>> I've realised, though, that if you issue a write on a socket which
>> currently has an outstanding reading, when the IOCP completes, you don't
>> immediately know which operation has completed.
>
> Obviously I used the completion key.

Actually, that's wrong.

On a related note, did someone say that the event handle in the overlapped
structure used by the IO functions (ReadFile, etc) is not actually used?

If that's actually untouched, I could use it for my own purposes.  The
alternative is probably a malloc() per write operation :-/




More information about the Libevent-users mailing list