[Libevent-users] GetQueuedCompletionStatus return values
question/problem
Rhythmic Fistman
rfistman at gmail.com
Thu Nov 2 03:29:39 EST 2006
> From: Toby Douglass <toby.douglass at summerblue.net>
> 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 -
Yesse.
> even if the other end has for example reset rather than disconnected gracefully?
No... don't think so.
> 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!
It's a bit like that, however write a few simple socket programmes and
you'll quickly learn the win32/IOCP lingua franca, there's about a zillion
examples over on koders.com, in fact probably the hardest thing about
IOCPs is remembering how to spell "queued".
> 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!
Are you 100% sure that's the case?
> Thankyou for your help, Kevin.
No worries, but I'm not Kevin.
RF
More information about the Libevent-users
mailing list