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

Class: Net_GameServerQuery_Protocol

Source Location: /Net_GameServerQuery-0.3.0/Net/GameServerQuery/Protocol.php

Class Overview


Abstract class which all protocol classes must inherit


Author(s):

Methods


Child classes:

Inherited Variables

Inherited Methods


Class Details

[line 41]
Abstract class which all protocol classes must inherit


[ Top ]


Method Detail

multipacketjoin   [line 98]

string multipacketjoin( array $packets)

Join multiple packet responses into a single response

This is usually overrided by the protocol specific method

  • Return: Joined server response
  • Access: protected

Overridden in child classes as:

Net_GameServerQuery_Protocol_UnrealEngine2::multipacketjoin()
Join multiple packets
Net_GameServerQuery_Protocol_HalfLife::multipacketjoin()
Net_GameServerQuery_Protocol_GameSpy::multipacketjoin()

Parameters:

array   $packets   —  Array containing the packets

[ Top ]

parse   [line 53]

array parse( string $packetname, string|array $response, bool $config)

Parse server response according to packet type
  • Return: Array containing formatted server response
  • Access: public

Parameters:

string   $packetname   —  Name of the packet
string|array   $response   —  Packet
bool   $config   —  Config

[ Top ]


Documentation generated on Mon, 11 Mar 2019 15:39:47 -0400 by phpDocumentor 1.4.4. PEAR Logo Copyright © PHP Group 2004.