From: Daniel Berger Date: 2002-12-10T06:55:39+09:00 Subject: [ANN] net-pingsimple 0.1.0 I've updated net-pingsimple: Changelog: - Added ping? alias for ping method - Warnings now handled separately - Corrected a mis-named variable in PingExternal - Fixed the install.rb file - Updated and added docs - Renamed tarball to net-pingsimple to reflect RAA naming convention Synopsis: require "net/pingsimple" include Net pt = Net::PingTCP.new(host) pu = Net::PingUDP.new(host) pe = Net::PingExternal.new(host) if pt.ping? puts "TCP ping successful" else puts "TCP ping unsuccessful: " + pt.exception end if pu.ping? puts "UDP ping successful" else puts "UDP ping unsuccessful: " + pu.exception end if pe.ping? puts "External ping successful" unless pe.warning.nil? puts "Warning encountered: " + pe.warning end else puts "External ping unsuccessful: " + pe.exception end available on the RAA homepage at http://ruby-netutils.sourceforge.net Regards, Dan