Skip to content

Instantly share code, notes, and snippets.

@KINGSABRI
Created April 14, 2012 20:00
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 KINGSABRI/2387648 to your computer and use it in GitHub Desktop.
Save KINGSABRI/2387648 to your computer and use it in GitHub Desktop.
OK Server
#!/usr/bin/ruby
# OK Server
#
require 'rubygems'
require 'socket'
server = TCPServer.open(2000)
loop {
client = server.accept
client.puts "OK"
client.close
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment