Detecting internet connection

Hi,

Is it possible to detect whether the internet connection is on from the
application?

Thanks,

Lantis.

On 5/23/06, Lantis S. [email protected] wrote:

Is it possible to detect whether the internet connection is on from the
application?

require ‘ping’
puts “connection alive” if Ping.pingecho(“www.gooogle.com”, 10)

You get the idea…

Warren Brian Noronha