Flowdock
method

getnameinfo

Importance_1
v1_9_3_392 - Show latest stable - 0 notes - Class: Addrinfo
getnameinfo(p1 = v1) public

returns nodename and service as a pair of strings. This converts struct sockaddr in addrinfo to textual representation.

flags should be bitwise OR of Socket::NI_??? constants.

Addrinfo.tcp("127.0.0.1", 80).getnameinfo #=> ["localhost", "www"]

Addrinfo.tcp("127.0.0.1", 80).getnameinfo(Socket::NI_NUMERICSERV)
#=> ["localhost", "80"]
Show source
Register or log in to add new notes.