Something else that might be bitting you here; you should be setting
*lpNumberOfBytes = 0 before calling GetQueuedCompletionStatus. That
way, on exit, if you have *lpNumberOfBytes == 0, you either have a
closed remote socket (GetLastError() == 0), or some error
(GetLastError() != 0).
GetQueuedCompletionStatus doesn't randomize the lpNumberOfBytes in
case of error, it just doesn't change it from what you set it to.
Also I believe that GetLastError() will return the standard winsock error codes for things like a connection reset
_______________________________________________ Libevent-users mailing list Libevent-users@monkey.org http://monkey.org/mailman/listinfo/libevent-users