Skip to content

Instantly share code, notes, and snippets.

@headius
Created February 17, 2012 16:33
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save headius/1854256 to your computer and use it in GitHub Desktop.
Save headius/1854256 to your computer and use it in GitHub Desktop.
require 'java'
require 'socket'
puts java.nio.channels.spi.SelectorProvider.provider
puts TCPSocket.new('google.com', 80).to_channel.provider
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment