Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 13 Mar 2003 12:34:35 +0300 (MSK)
From:      Igor Sysoev <is@rambler-co.ru>
To:        Sean Hamilton <sh@bel.bc.ca>
Cc:        hackers@FreeBSD.ORG
Subject:   Re: first parameter to select
Message-ID:  <Pine.BSF.4.21.0303131227100.91988-100000@is>
In-Reply-To: <000501c2e911$96ea79a0$d1d7e8d8@slugabed.org>

next in thread | previous in thread | raw e-mail | index | archive | help
On Wed, 12 Mar 2003, Sean Hamilton wrote:

> What is the first parameter to select(2) for? Microsoft's select ignores it,
> and it does not appear to have any valid use since it only allows
> constraints on values which are assigned by the system.
> 
> Purely historic?

Winsock uses the integer array for fd_set instead of the bit array
as Unices do. Winsock socket's numbers are big enough, for example
I saw on NT as first created socket has number 96 and second has 42.
Bitmask is not effective for such numbers.


Igor Sysoev
http://sysoev.ru/en/


To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-hackers" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?Pine.BSF.4.21.0303131227100.91988-100000>