/usr/share/doc/ruby-packet/examples/sample_server.rb is in ruby-packet 0.1.15-5.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 | require "asteroid"
module Server
def receive_data data
end
def post_init
puts "A new client connected"
end
def unbind
puts "client disconnected"
end
end
Asteroid::run("0.0.0.0", 11007, Server) do
puts "Someone connected"
end
|