Skip to content

Instantly share code, notes, and snippets.

@chrisseaton
Created May 13, 2015 21:41
Show Gist options
  • Save chrisseaton/24f95494636a4419107e to your computer and use it in GitHub Desktop.
Save chrisseaton/24f95494636a4419107e to your computer and use it in GitHub Desktop.
require 'socket'
p Socket.getaddrinfo("www.ruby-lang.org", "http", nil, :STREAM)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment