Lines Matching refs:tcp

27 $def_proto = "tcp";         # Default protocol to use for pinging
52 # name/IP and an optional timeout in seconds. Create a tcp ping
62 $p = Net::Ping->new("tcp", $timeout);
91 croak('Protocol for ping must be "icmp", "udp", "tcp", "syn", "stream", or "external"')
92 unless $proto =~ m/^(icmp|udp|tcp|syn|stream|external)$/;
105 $data_size = $min_datasize unless defined($data_size) && $proto ne "tcp";
159 elsif ($self->{"proto"} eq "tcp" || $self->{"proto"} eq "stream")
161 $self->{"proto_num"} = (getprotobyname('tcp'))[2] ||
162 croak("Can't get tcp protocol by name");
163 $self->{"port_num"} = (getservbyname('echo', 'tcp'))[2] ||
164 croak("Can't get tcp echo port by name");
169 $self->{"proto_num"} = (getprotobyname('tcp'))[2] ||
170 croak("Can't get tcp protocol by name");
171 $self->{"port_num"} = (getservbyname('echo', 'tcp'))[2] ||
172 croak("Can't get tcp echo port by name");
213 $self->{"local_addr"} = $ip; # Only used if proto is tcp
220 elsif (($self->{"proto"} ne "tcp") && ($self->{"proto"} ne "syn"))
371 elsif ($self->{"proto"} eq "tcp") {
527 # Description: Perform a tcp echo ping. Since a tcp connection is
530 # tcp, it will take a while before it gives up trying to establish a
534 # enough of the reachability of the remote host. Also, tcp is
570 croak("tcp socket error - $!");
573 croak("tcp bind error - $!");
741 if ($self->{'proto'} eq 'tcp' &&
808 # Description: Perform a stream ping. If the tcp connection isn't
1011 croak("tcp socket error - $!");
1016 croak("tcp bind error - $!");
1080 croak("tcp socket error - $!");
1085 croak("tcp bind error - $!");
1359 } elsif ($self->{"proto"} eq "tcp") {
1393 $p = Net::Ping->new("tcp", 2);
1395 $p->{port_num} = getservbyname("http", "tcp");
1404 # Like tcp protocol, but with many hosts
1406 $p->{port_num} = getservbyname("http", "tcp");
1433 ping. The "tcp" protocol is the default. Note that a live remote host
1437 With the "tcp" protocol the ping() method attempts to establish a
1476 "syn" protocol instead the "tcp" protocol to determine reachability
1491 are "tcp", "udp", "icmp", "stream", "syn", or "external".
1492 The default is "tcp".
1500 data bytes is ignored if the protocol is "tcp". The minimum (and
1542 With this option enabled, the full three-way tcp handshake
1556 This affects the "udp", "tcp", and "syn" protocols.
1578 If the protocol is set to "tcp", this method may be called any
1588 tcp socket. It's only necessary to do this if you want to
1632 functionality as before. pingecho() uses the tcp protocol. The
1642 program) if you specify either the udp or the icmp protocol. The tcp
1650 privileges, but not all network devices implement tcp or udp echo.
1659 functioning beyond its ability to echo packets. tcp is slightly better