Pastebin launched a little side project called HostCabi.net, check it out ;-)Don't like ads? PRO users don't see any ads ;-)
Guest

Untitled

By: a guest on May 31st, 2012  |  syntax: Ruby  |  size: 0.22 KB  |  hits: 23  |  expires: Never
download  |  raw  |  embed  |  report abuse  |  print
Text below is selected. Please press Ctrl+C to copy to your clipboard. (⌘+C on Mac)
  1. @server = TCPServer.open(61101)                        
  2. loop do                                                
  3.   sock = @server.accept
  4.   # read string from socket
  5.   # do some stuff with it
  6.   # update database
  7. end