SHARE
TWEET

Untitled

a guest May 31st, 2012 25 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  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
Want to get better at Ruby?
Learn to code Ruby in 2017
Pastebin PRO Summer Special!
Get 40% OFF on Pastebin PRO accounts!
Top