2009/11/24 Mark Mansour <[email protected]> > There are a few reasons ICMP is not the way to go: > > * ICMP is not reliable because some hosts deliberately block ICMP > traffic to stop the ping of death > [http://en.wikipedia.org/wiki/Ping_of_death]. > * It is a different port and protocol than you probably want to > communicate on. So reaching (or not reaching) a host via ICMP does > not guarantee you can make a normal socket connection (and vice > versa). > * ICMP is normally blocked from behind firewalls. > > The best approach, as has already been stated, is to make the request > and handle the failed attempt gracefully. > > Mark > > The ping library also supports checking the response on a different port; check out the service argument in the pingecho command. -- Ryan Bigg
-- You received this message because you are subscribed to the Google Groups "Ruby or Rails Oceania" group. To post to this group, send email to [email protected]. To unsubscribe from this group, send email to [email protected]. For more options, visit this group at http://groups.google.com/group/rails-oceania?hl=.
