I am studying network programming using Perl, while going through examples I found below 2 functions.
I tried to understand myself what these below functions does except socket, bind, connect, send and recv by reading perl documentation but failed to do... Still I don't know why they are used.
Expand|Select|Wrap|Line Numbers
- my $rin = $win = $ein = '';
- vec($rin, fileno(serv_sock), 1) = 1;
- my $nfound = select($rout=$rin,$wout=$win,$eout=$ein,2.0);
- if($nfound >= 0)
- {
- do send...
- }
Please help me in this regards...
Thanks...