Lines Matching refs:timeout

26 $def_timeout = 5;           # Default timeout to wait for a reply
52 # name/IP and an optional timeout in seconds. Create a tcp ping
58 $timeout # Optional timeout in seconds
62 $p = Net::Ping->new("tcp", $timeout);
67 # parameters may be specified for the protocol to use, the timeout in
77 $timeout, # Optional timeout in seconds
95 $timeout = $def_timeout unless $timeout; # Determine the timeout
96 croak("Default timeout for ping must be greater than 0 seconds")
97 if $timeout <= 0;
98 $self->{"timeout"} = $timeout;
235 # So we chop up the timeout into smaller pieces and interleave
337 # Description: Ping a host name or IP number with an optional timeout.
346 $timeout, # Seconds after which ping times out
353 croak("Usage: \$p->ping(\$host [, \$timeout])") unless @_ == 2 || @_ == 3;
354 $timeout = $self->{"timeout"} unless $timeout;
355 croak("Timeout must be greater than 0 seconds") if $timeout <= 0;
363 $ret = $self->ping_external($ip, $timeout);
366 $ret = $self->ping_udp($ip, $timeout);
369 $ret = $self->ping_icmp($ip, $timeout);
372 $ret = $self->ping_tcp($ip, $timeout);
375 $ret = $self->ping_stream($ip, $timeout);
378 $ret = $self->ping_syn($host, $ip, $ping_time, $ping_time+$timeout);
390 $timeout # Seconds after which ping times out
395 return Net::Ping::External::ping(ip => $ip, timeout => $timeout);
409 $timeout # Seconds after which ping times out
451 $finish_time = &time() + $timeout; # Must be done by this time
452 while (!$done && $timeout > 0) # Keep trying if we have time
454 $nfound = mselect((my $rout=$rbits), undef, undef, $timeout); # Wait for packet
455 $timeout = $finish_time - &time(); # Get remaining time
532 # check against our timeout. No data bytes are actually
541 $timeout # Seconds after which ping times out
547 $ret = $self -> tcp_connect( $ip, $timeout);
560 $timeout # Seconds after which connect times out
616 $timeout);
697 my $patience = &time() + $timeout;
701 # Wait up to the timeout
713 # within the timeout
755 my $timeout = shift;
774 if(mselect($rin, $rout, undef, ($time + $timeout) - &time())) {
799 } until &time() > ($time + $timeout) || defined($ret);
816 $timeout # Seconds after which ping times out
821 $self->tcp_connect($ip, $timeout) or return 0;
827 return $self->tcp_echo($timeout, $pingstring);
837 $timeout # Seconds after which open times out
842 $timeout = $self->{"timeout"} unless $timeout;
848 $self->tcp_connect($ip, $timeout);
866 $timeout # Seconds after which ping times out
925 $finish_time = &time() + $timeout; # Ping needs to be done by then
926 while (!$done && $timeout > 0)
930 $timeout = $retrans if $timeout > $retrans;
933 $nfound = mselect((my $rout=$rbits), undef, undef, $timeout); # Wait for response
935 $timeout = $finish_time - &time(); # Get remaining time
968 elsif ($timeout <= 0) # Oops, timed out
1165 my $timeout = $stop_time - &time();
1166 # Force a minimum of 10 ms timeout.
1167 $timeout = 0.01 if $timeout <= 0.01;
1187 if (defined($winner_fd) or my $nfound = mselect(undef, ($wout=$wbits), undef, $timeout)) {
1275 my $timeout;
1280 $timeout = $stop_time - &time();
1281 # Force a minimum of 10 ms timeout.
1282 $timeout = 0.01 if $timeout < 0.01;
1285 $timeout = 0;
1288 if ($timeout > 0) {
1291 $nfound = mselect((my $rout=$rbits), undef, undef, $timeout)) {
1474 a TCP ACK within the timeout specifed. To begin waiting for the
1494 If a default timeout ($def_timeout) in seconds is provided, it is used
1495 when a timeout is not given to the ping() method (below). The timeout
1511 =item $p->ping($host [, $timeout]);
1514 hostname or the IP number of the remote host. The optional timeout
1589 provide a different timeout when creating the connection, or
1604 SYN queued using the ping() method. If the timeout is
1628 =item pingecho($host [, $timeout]);
1654 longer to receive an echo packet from the remote host. If the timeout