macli has asked for the wisdom of the Perl Monks concerning the following question:
After reading perldoc -f select, I still can't get my head around the select function. especially this idom:
($nfound,$timeleft) = select($rout=$rin, $wout=$win, $eout=$ein,$timeout);
What is $rout=$rin, $wout=$win, $eout=$ein? and the return $nfound
Are they refering to default input, output, error output?
How select are used to manage multiple listening sockets?
I often see vec and fileno involved with select.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Perl select function mystery
by Joost (Canon) on Mar 27, 2007 at 23:33 UTC | |
|
Re: Perl select function mystery
by duff (Parson) on Mar 28, 2007 at 01:25 UTC | |
|
Re: Perl select function mystery
by Fletch (Bishop) on Mar 27, 2007 at 23:43 UTC | |
|
Re: Perl select function mystery
by rodion (Chaplain) on Mar 28, 2007 at 01:09 UTC | |
|
Re: Perl select function mystery
by macli (Beadle) on Mar 28, 2007 at 18:59 UTC |