Source for file UnrealTournament03.php
Documentation is available at UnrealTournament03.php
// +----------------------------------------------------------------------+
// +----------------------------------------------------------------------+
// | Copyright (c) 1997-2004 The PHP Group |
// +----------------------------------------------------------------------+
// | This source file is subject to version 3.0 of the PHP license, |
// | that is bundled with this package in the file LICENSE, and is |
// | available through the world-wide-web at the following url: |
// | http://www.php.net/license/3_0.txt. |
// | If you did not receive a copy of the PHP license and are unable to |
// | obtain it through the world-wide-web, please send a note to |
// | license@php.net so we can mail you a copy immediately. |
// +----------------------------------------------------------------------+
// | Authors: Aidan Lister <aidan@php.net> |
// | Tom Buskens <ortega@php.net> |
// +----------------------------------------------------------------------+
// $Id: UnrealTournament03.php,v 1.4 2004/09/14 10:47:40 ortega Exp $
require_once 'Net\GameServerQuery\Protocol.php';
* Unreal Tournament 2003 protocol
* @package Net_GameServerQuery
* @author Tom Buskens <ortega@php.net>
* @version $Revision: 1.4 $
* @return array Array containing formatted server response
throw new Exception ('Parsing error');
while ($this->_match("(.{4})(.)")) {
// Get player name length and create expression
$expr = sprintf("(.{%d})\x00(.{4})(.{4})(.{4})", $name_length);
throw new Exception ('Parsing error');
* @return array Array containing formatted server response
throw new Exception ('Parsing error');
// Create expression using result of previous match to set the string length
// Create expression using result of previous match to set string length
throw new Exception ('Parsing error');
throw new Exception ('Parsing error');
* @return array Array containing formatted server response
// Get some 32 bit variables
if (!$this->_match("\x00(.{4})\x00(.{4})(.{4})([^\x00]+)\x00(.)")) {
throw new Exception ('Parsing error');
// Create expression using result of previous match to set string length
throw new Exception ('Parsing error');
// Create expression using result of previous match to set string length
throw new Exception ('Parsing error');
Documentation generated on Mon, 11 Mar 2019 13:58:56 -0400 by phpDocumentor 1.4.4. PEAR Logo Copyright © PHP Group 2004.
|