httpd-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Marc Slemko <ma...@worldgate.com>
Subject Re: cvs commit: apache-1.3/src/main http_main.c http_protocol.c
Date Wed, 25 Mar 1998 18:20:46 GMT
On Wed, 25 Mar 1998, Dean Gaudet wrote:

> 
> 
> On 25 Mar 1998 pcs@hyperreal.org wrote:
> 
> > pcs         98/03/25 02:07:57
> > 
> >   Modified:    src/main http_main.c http_protocol.c
> >   Log:
> >   On Win32 it is not valid to check whether the socket descriptor is
> >   less than FD_SETSIZE.
> 
> Does this mean that the fd_set macros on win32 manipulate linked lists or
> something?  'cause they seem to be used in buff.c... 

See:

   http://premium.microsoft.com/msdn/library/specs/platfrm2/d1/s11964.htm

The idea is that it uses a SOCKET type instead; INVALID_SOCKET is the
error return, and anything from 0 to INVALID_SOCKET-1 is a valid socket.
fd_set is an array of SOCKETs.  SOCKETs are not assigned in any
low-numbered order like Unix sockets are, and since it uses an array
FD_SETSIZE only means how many fds you can have in a fd_set, not the max.


Mime
View raw message