Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- @server = TCPServer.open(61101)
- loop do
- sock = @server.accept
- # read string from socket
- # do some stuff with it
- # update database
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement