Sha256: f09df04e0ca0e11bbb548d50f1f001975b7145f06ebd2fd67832877bf8d24e2d
Contents?: true
Size: 356 Bytes
Versions: 7
Compression:
Stored size: 356 Bytes
Contents
# QueryServer responds to telnet-calls on its designated port, and responds # with things... class QueryServer < EventMachine::Connection def post_init send_data "#{$clients.length} clients connected" end def receive_data(data) send_data "#{$clients.length} clients connected" close_connection if data =~ /quit/i end end
Version data entries
7 entries across 7 versions & 1 rubygems