You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
18 lines
193 B
18 lines
193 B
11 years ago
|
# vim:fileencoding=utf-8
|
||
|
|
||
|
require 'socket'
|
||
|
|
||
|
|
||
|
def main
|
||
|
server = TCPServer.new(55784)
|
||
|
loop do
|
||
|
client = server.accept
|
||
|
$stderr.puts client.gets
|
||
|
end
|
||
|
end
|
||
|
|
||
|
|
||
|
if __FILE__ == $0
|
||
|
main
|
||
|
end
|