SHARE
TWEET

Untitled

a guest May 31st, 2012 23 Never
  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
RAW Paste Data
Top