Internal method to perform consistent timeout calls via aliarm (callback function)
Internal method to read a packet form the UDP socket
Query a server Params: host - the host to scan port - the port to use
Internal method to parse the game type code
Query Perl class to query a Neverwint Nights Server
Sal Scotto sscotto@cpan.org
Perl 5.005 or greater, IO::Handle, IO::socket, Carp
use Games::NeverwintNights::Query my $sq = Games::NeverwinterNights->new(); # default to 5121 my %results = $sq->query("host"); # use host and port my %results = $sq->query("host",5120); # defualt to localhost port 5121 my %results = $sq->query();
This class provides a way to query a neverwinter nights server for status the keys in the resulting HASH are:
Host Port GameType PlayType GameName Module Version MinLevel MaxLevel PvP Vault OneParty PlayerPausable ItemLevelRestriction EnforceLegalCharacters Password MaxClients CurrentClients ServerDescription
This method will query the server Params: host,port
Copyright (c) 2002 Sal Scotto (sscotto@cpan.org). All rights reserved.
This program is free software; you can redistribute it and/or modify it under the same terms as Perl itself.
2 POD Errors
The following errors were encountered while parsing the POD:
'=item' outside of any '=over'
You forgot a '=back' before '=head1'
To install Games::NeverwinterNights::Query, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Games::NeverwinterNights::Query
CPAN shell
perl -MCPAN -e shell install Games::NeverwinterNights::Query
For more information on module installation, please visit the detailed CPAN module installation guide.