The Perl Toolchain Summit needs more sponsors. If your company depends on Perl, please support this very important event.
_timeout

Internal method to perform consistent timeout calls via aliarm (callback function)

_getResponse

Internal method to read a packet form the UDP socket

query

Query a server Params: host - the host to scan port - the port to use

_getGameType

Internal method to parse the game type code

NAME

Query Perl class to query a Neverwint Nights Server

AUTHOR

Sal Scotto sscotto@cpan.org

REQUIRES

Perl 5.005 or greater, IO::Handle, IO::socket, Carp

SYNOPSIS

  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();

DESCRIPTION

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

METHODS

query

This method will query the server Params: host,port

COPYRIGHT

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:

Around line 21:

'=item' outside of any '=over'

Around line 266:

You forgot a '=back' before '=head1'