|Keep It Simple, Stupid|
Re^4: udp recv questionby smackdab (Pilgrim)
|on Jun 28, 2004 at 03:30 UTC||Need Help??|
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 ;-)