IPSocket

class IPSocket

Parent:
BasicSocket

IPSocket is the super class of TCPSocket and UDPSocket.

Public Class Methods

getaddress(host) → ipaddress Show source

Lookups the IP address of host.

require 'socket'

IPSocket.getaddress("localhost")     #=> "127.0.0.1"
IPSoc