-
-
Notifications
You must be signed in to change notification settings - Fork 1.6k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Sockets: docs for IPAddress, Addrinfo + some helpers #3781
Sockets: docs for IPAddress, Addrinfo + some helpers #3781
Conversation
I'm making some additions / corrections. |
In addition to yielding Addrinfo, add overloads that return an `Array(Addrinfo)` instead.
fb12839
to
b7575aa
Compare
|
I think I'm done. What do you think? |
@ysbaddaden Looks good to me, though it's true what @miketheman mentions that |
Well, it's actually a It got an |
Let's merge this :-) @ysbaddaden Thank you! |
Socket::IPAddress
andSocket::Addrinfo
, to differentiate how they are different: one holds an IP address when the other will resolve against a DNS server or/etc/hosts
.Socket::Addrinfo
that return anArray(Socket::Addrinfo)
instead of yielding results.TCPSocket
andTCPServer
that don't connect nor bind.