codinfo is a small library written to get info on Call of Duty 4 servers. Although not tested, it should work on almost any game using the Q3 protocol.
Just found Qstat[http://qstat.org/], which already does what codinfo is doing plus much more functionality. So I wont continue developing this.
irb(main):001:0> info = CODInfo.new
# returns a list of game servers:
irb(main):002:0> servers = info.get_servers
# getting info on a server:
irb(main):003:0> info.get_info(servers.first)
or
irb(main):003:0> info.get_info(‘192.168.1.2’)
-
Ruby 1.8.7+
-
Rake and rspec if you want to run the tests
use the source
codinfo is released under the terms of the Apache License 2.0