Flowdock
method

pingecho

Importance_1
Ruby latest stable (v2_5_5) - 0 notes - Class: Ping

Method deprecated or moved

This method is deprecated or moved on the latest stable version. The last existing version (v1_8_7_330) is shown here.

pingecho(host, timeout=5, service="echo") public

Return true if we can open a connection to the hostname or IP address host on port service (which defaults to the “echo” port) waiting up to timeout seconds.

Example:

require 'ping'

Ping.pingecho "google.com", 10, 80
Show source
Register or log in to add new notes.