Kevin Sanders wrote:
On 11/1/06, Toby Douglass <[EMAIL PROTECTED]> 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.
_______________________________________________
Libevent-users mailing list
Libevent-users@monkey.org
http://monkey.org/mailman/listinfo/libevent-users

Reply via email to