in reply to ping problem
According to the documentation, this will show the host as alive when Net::Ping can make a successful connection to port 80 of the target host, i.e. when there is something listening on that port (presumably a webserver).#!/usr/local/bin/perl -w use strict; use Net::Ping; warn "Code is untested"; my $host="192.168.100.12"; my $p=Net::Ping->new('tcp'); $p->{'port_num'}=80; echo "$host is alive!\n" if $p->ping($host);
I have no idea what the syn protocol is, so I can't help you there.
CU
Robartes-
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Re: ping problem
by xmath (Hermit) on Mar 04, 2003 at 13:40 UTC | |
by robartes (Priest) on Mar 04, 2003 at 13:49 UTC | |
by xmath (Hermit) on Mar 04, 2003 at 13:54 UTC |