addrinfo.to_sockaddr => string
addrinfo.to_s => string
addrinfo.to_s => string
Instance Public methods
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"
Please login to continue.