[Libevent-users] GetQueuedCompletionStatus return values question/problem

Gordon Scott gscott2112 at gmail.com
Wed Nov 1 12:10:55 EST 2006


>
> 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
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://monkeymail.org/archives/libevent-users/attachments/20061101/cbe7debc/attachment.htm


More information about the Libevent-users mailing list