in reply to Re^3: udp recv question
in thread udp recv question
I VERY MUCH APPRECIATE YOUR COMMENTS.
I can also be quite dense on some of these matters...but:
I am NOT trying to SEND an ICMP packet.
I AM trying to see if a remote UDP port is "open"
My assumption has been to send a UDP packet out
and if the port is CLOSED, then I get a ICMP error msg back
Otherwise I know the remote port is OPEN...
The code above sends an UDP packet out and an ICMP error msg is sent back. But I DON'T know how to grab it. I tried reading on the UDP and ICMP sockets but neither *seem* to have it.
Are you saying that I need to send an ICMP packet out???
Again, sorry if I am missing something completely obvious ;-)
I can also be quite dense on some of these matters...but:
I am NOT trying to SEND an ICMP packet.
I AM trying to see if a remote UDP port is "open"
My assumption has been to send a UDP packet out
and if the port is CLOSED, then I get a ICMP error msg back
Otherwise I know the remote port is OPEN...
The code above sends an UDP packet out and an ICMP error msg is sent back. But I DON'T know how to grab it. I tried reading on the UDP and ICMP sockets but neither *seem* to have it.
Are you saying that I need to send an ICMP packet out???
Again, sorry if I am missing something completely obvious ;-)
In Section
Seekers of Perl Wisdom