Source for file example2.php
Documentation is available at example2.php
<title>Net_GameServerQuery Example 2: Using protocol parsers</title>
<h1>Net_GameServerQuery Example 2: Using protocol parsers</h1>
<p>This example shows how the protocol parsers can be accessed with Net_GameServerQuery.</p>
<p>We convert a rules, status and players sample request into parsed data.</p>
<p>This example requires <em>examplepackets.php</em> to be in the same directory.</p>
require_once 'Net/GameServerQuery.php';
// Raw packets from the server
require 'examplepackets.php';
// Load HalfLife protocol
// Get rules from the packet
$rules = $parser->parse ('rules', $packets['HalfLife']['rules']);
Documentation generated on Mon, 11 Mar 2019 15:39:46 -0400 by phpDocumentor 1.4.4. PEAR Logo Copyright © PHP Group 2004.
|