Help understand documentation
- From: vijay@xxxxxxxxxx (Vijay Kumar Adhikari)
- Date: Sun, 11 Jun 2006 18:05:34 +0545
This is from http://perldoc.perl.org/Net/Ping.html
# Like tcp protocol, but with many hosts
$p = Net::Ping->new("syn");
$p->{port_num} = getservbyname("http", "tcp");
foreach $host (@host_array) {
$p->ping($host);
}
while (($host,$rtt,$ip) = $p->ack) {
print "HOST: $host [$ip] ACKed in $rtt seconds.\n";
}
Can some body tell me what the following line does?
$p->{port_num} = getservbyname("http", "tcp");
--
Vijay
.
- Follow-Ups:
- Re: Help understand documentation
- From: Xavier Noria
- Re: Help understand documentation
- Prev by Date: Re: Can't locate Carp/Heavy.pm
- Next by Date: Re: Help understand documentation
- Previous by thread: Can't locate Carp/Heavy.pm
- Next by thread: Re: Help understand documentation
- Index(es):