Skip to content

Instantly share code, notes, and snippets.

@danlynn
Created August 14, 2012 20:48
Show Gist options
  • Save danlynn/3352843 to your computer and use it in GitHub Desktop.
Save danlynn/3352843 to your computer and use it in GitHub Desktop.
require'socket'
server = TCPServer.new(8088);
loop do
connection = server.accept
puts 'Trapped a new connection'
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment