mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
matz
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@838 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
448e63d627
commit
741ca76912
9 changed files with 39 additions and 35 deletions
|
@ -38,9 +38,9 @@
|
|||
#=end
|
||||
|
||||
require 'timeout'
|
||||
require "socket"
|
||||
|
||||
module Ping
|
||||
require "socket"
|
||||
def pingecho(host, timeout=5, service="echo")
|
||||
begin
|
||||
timeout(timeout) do
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue