View on
MetaCPAN
Salvatore E. ScottoDiLuzio > Games-NeverwinterNights-Query-1.0 > Games::NeverwinterNights::Query

Download:
Games-NeverwinterNights-Query-1.0.tar.gz

Dependencies

Annotate this POD

View/Report Bugs
Module Version: 1.0   Source  
_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.

syntax highlighting: