Net_GameServerQuery
[ class tree: Net_GameServerQuery ] [ index: Net_GameServerQuery ] [ all elements ]

Class: Net_GameServerQuery_Config

Source Location: /Net_GameServerQuery-0.2.0/GameServerQuery/Config.php

Class Overview


Get protocol information


Author(s):

Version:

  • $Revision: 1.14 $

Methods


Inherited Variables

Inherited Methods


Class Details

[line 32]
Get protocol information

This class serves as a wrapper for the games definition file

  • Author: Aidan Lister <aidan@php.net>
  • Version: $Revision: 1.14 $


[ Top ]


Method Detail

__construct (Constructor)   [line 61]

Net_GameServerQuery_Config __construct( )

Constructor

Load the protocol and games information file

  • Access: public

[ Top ]

getPacket   [line 106]

array getPacket( string $protocol, string $type)

Return packet used by a certain protocol
  • Return: The packet used
  • Access: public

Parameters:

string   $protocol   —  The protocol
string   $type   —  The packet type

[ Top ]

getPort   [line 118]

string getPort( string $game)

Return default query port used by a certain game
  • Return: The default query port used
  • Access: public

Parameters:

string   $game   —  The game

[ Top ]

getProtocol   [line 93]

string getProtocol( string $game)

Return protocol used by a certain game
  • Return: The game used
  • Access: public

Parameters:

string   $game   —  The game

[ Top ]

normal   [line 127]

void normal( [ $protocol = 0])

Return normal keys
  • Access: public

Parameters:

   $protocol   — 

[ Top ]

validGame   [line 77]

string validGame( string $game)

Return protocol used by a certain game
  • Return: The game used
  • Access: public

Parameters:

string   $game   —  The game

[ Top ]


Documentation generated on Mon, 11 Mar 2019 13:58:55 -0400 by phpDocumentor 1.4.4. PEAR Logo Copyright © PHP Group 2004.