Source for file example3.php
Documentation is available at example3.php
<title>Net_GameServerQuery Example 3: Accessing communication classes</title>
<h1>Net_GameServerQuery Example 3: Accessing communication classes</h1>
<p>This example shows how the communication class manually with Net_GameServerQuery.</p>
<p>We ask a Half-Life server for its status.</p>
require_once 'Net/GameServerQuery.php';
// Get the packet to send
list ($packetname, $packet) = $cfg->getPacket ('HalfLife', 'status');
// Create array of server information
'addr' => '202.12.147.111',
$results = $gsq_comm->query ($serverdata, 200 );
Documentation generated on Mon, 11 Mar 2019 15:39:46 -0400 by phpDocumentor 1.4.4. PEAR Logo Copyright © PHP Group 2004.
|