Sha256: 1ef710b5b7999e37fe564279329adec0239fef7b3bcaf7f4aa2a2752056ccb11
Contents?: true
Size: 349 Bytes
Versions: 2
Compression:
Stored size: 349 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
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
keyhole-0.1.0 | lib/query_server.rb |
keyhole-0.0.0 | lib/query_server.rb |