in reply to Re: Re: socket reading...
in thread socket reading...
select overwrites $rout (your $read) to indicate what's available. So, except in the simplist case (1 fd, quit when done, like your example), it needs to be reset to the original on each call. You would need to if, for instance, you uncomment your vec(...FILE2) line.($nfound,$timeleft) = select($rout=$rin, $wout=$win, $eout=$ein, $timeout);
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Re: Re: Re: socket reading...
by jdv79 (Sexton) on Jul 31, 2001 at 02:18 UTC | |
by petral (Curate) on Jul 31, 2001 at 20:16 UTC |