Flowdock
method

family_addrinfo

Importance_1
v1_9_3_392 - Show latest stable - 0 notes - Class: Addrinfo
family_addrinfo(*args) public

creates an Addrinfo object from the arguments.

The arguments are interpreted as similar to self.

Addrinfo.tcp("0.0.0.0", 4649).family_addrinfo("www.ruby-lang.org", 80)
#=> #<Addrinfo: 221.186.184.68:80 TCP (www.ruby-lang.org:80)>

Addrinfo.unix("/tmp/sock").family_addrinfo("/tmp/sock2")
#=> #<Addrinfo: /tmp/sock2 SOCK_STREAM>
Show source
Register or log in to add new notes.