[Libevent-users] GetQueuedCompletionStatus return values question/problem

Toby Douglass toby.douglass at summerblue.net
Wed Nov 1 11:38:54 EST 2006


Kevin Sanders wrote:
> On 11/1/06, Toby Douglass <toby.douglass at summerblue.net> wrote:
>> Kevin Sanders wrote:

>> > Call GetLastError().
>>
>> I could be wrong, but I don't think that helps you, because you would
>> have to know the full list of possible errors for both cases, so that
>> you could be certain that you were correctly differentiating between 
>> them.
>>
>> I have no idea what errors either cases might return, nor any idea of
>> where to look to find the full list of possible errors for both cases
>> and indeed I suspect that information is not documented.
> 
> In case 3, GetLastError will not be 0, in case 4, GetLastError will be 0.

In cast 4, will GLE always be 0 - even if the other end has for example 
reset rather than disconnected gracefully?

The problem we face here is that although we can empirically find the 
GLE values for our current platforms, the possible GLE values are not 
documented!  so we can't be certain we've got it right, that there are 
no unusual cases we simply haven't seen, or that it won't change in the 
future.

I'm happy to with this now, however, since it seems basically 
reasonable, although I do wonder at GLE being 0 for both a reset and a 
graceful disconnect!

Thankyou for your help, Kevin.


More information about the Libevent-users mailing list