bug-gnulib
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: winsock: needs access to SOCKET in application code


From: Paolo Bonzini
Subject: Re: winsock: needs access to SOCKET in application code
Date: Tue, 14 Oct 2008 17:01:11 +0200
User-agent: Thunderbird 2.0.0.17 (Macintosh/20080914)

> If there is a way to reliably check whether something is a HANDLE or not
> (or a low-level fd or not), the code could be re-written to cleanly
> treat them as separate objects, and thus be more reliable.

Both HANDLEs and fds are indexes into a table, in the end.  So you can
check if X is a HANDLE or if X is a fd, but there's no guarantee that
the same X cannot be a HANDLE *and* a fd; and if so, it would likely
mean two different things depending on how you interpret it.

Paolo




reply via email to

[Prev in Thread] Current Thread [Next in Thread]