BZFlag-Info
view release on metacpan or search on metacpan
use Socket;
our $VERSION = '1.9.2';
sub new {
my $self = { };
bless $self, "BZFlag::Info";
return $self;
}
sub serverlist(%) {
my $self = shift;
my %options;
while (my @option = splice(@_, 0, 2)) {
$options{$option[0]} = $option[1];
}
my $proxy = $options{Proxy};
my $response;
my $ua = new LWP::UserAgent;
$totalServers += 1;
$totalPlayers += $playerSize;
}
$response->{totalservers} = $totalServers;
$response->{totalplayers} = $totalPlayers;
return ($response);
}
sub queryserver(%) {
my $self = shift;
my %options;
while (my @option = splice(@_, 0, 2)) {
$options{$option[0]} = $option[1];
}
my $hostandport = $options{Server};
my $timeout = $options{Timeout};
( run in 0.395 second using v1.01-cache-2.11-cpan-65fba6d93b7 )