- or download this
for (keys %openStreamsSock) {
...
...
$openStreamsSock($streamRequest++) = $sock->accept();
- or download this
if (vec($fout, fileno($sock),1))
{
$openStreamsSock($streamRequest++) = $sock->accept();
}
- or download this
my $nfound = select ($fout=$fin, undef, undef, 5);
- or download this
if (defined ($msgSize) && ($msgSize > 0))
- or download this
else
{
...
close ($openStreamsSock{$streamID});
delete ($openStreamsSock{$streamID});
}
- or download this
say "in 2nd if";
...
vec($fin, fileno $CONNECTION, 1) = 1;
$openStreamsSock{$streamRequest++} = $CONNECTION;
}
- or download this
else
{
...
vec($fin, fileno $openStreamsSock{$streamID}, 1) = 0;
close ($openStreamsSock{$streamID});
delete ($openStreamsSock{$streamID});
- or download this
#CLIENT(run in multiple terminals to simulate multiple clients)
...
}
close $SOCK;
- or download this
#SERVER:
...
}
}