Flowdock
method

to_sockaddr

Importance_1
Ruby latest stable (v1_9_3_392) - 0 notes - Class: Addrinfo
to_sockaddr() public

returns the socket address as packed struct sockaddr string.

Addrinfo.tcp("localhost", 80).to_sockaddr
#=> "\x02\x00\x00P\x7F\x00\x00\x01\x00\x00\x00\x00\x00\x00\x00\x00"
Show source
Register or log in to add new notes.