develooper Front page | perl.perl5.porters | Postings from September 2009

Perl select() and fd_set differences

Thread Next
From:
NormW
Date:
September 23, 2009 19:46
Subject:
Perl select() and fd_set differences
Message ID:
4ABADD60.5010408@gknw.net
Hi all,
Trying to port the ASSP app to NetWare, and found that NetWare has an 
fd_set typedef somewhat different to most:

> typedef struct fd_set
> {
>    int   fd_count;
>    int   fd_array[FD_SETSIZE];
> } fd_set;
> 

where fd_count is the numeric size of the active portion of the fd_array 
for both input and output. It does have the FD_CLR, FD_SET, FD_ZERO and 
FD_ISSET macro's.

AFAICT this is a 'different' approach to that used by Perl pp_sselect(), 
(pp_sys.c) which uses a bit-map vector method.

Can anyone suggest what changes are needed to get IO::Select working 
with this 'fd_set' structure on Perl (5.8.9)? Any assistance would be 
much appreciated, and a working diff will be made available if I can get 
it working.

Cheers, and thanks in advance.
Norm

Thread Next


nntp.perl.org: Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at ask@perl.org | Group listing | About