1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@838 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
matz 2000-07-18 06:00:45 +00:00
parent 448e63d627
commit 741ca76912
9 changed files with 39 additions and 35 deletions

View file

@ -38,9 +38,9 @@
#=end
require 'timeout'
require "socket"
module Ping
require "socket"
def pingecho(host, timeout=5, service="echo")
begin
timeout(timeout) do