Project

General

Profile

Bug #1177 » test_tcp_server.rb

OlegPuchinin (Oleg Puchinin), 02/19/2009 11:23 PM

 
#!/usr/bin/ruby

require 'gserver'

class SimpleServer < GServer
def initialize
super 1666
end

def serve(io)
while s = io.gets
end
end

end

s = SimpleServer.new
s.audit = true
s.start
s.join
(2-2/2)