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

Source for file protocols.php

Documentation is available at protocols.php

  1. <?php
  2. /**
  3. * Supported Games and Protocols for Net_GameServerQuery
  4. */
  5.  
  6.  
  7. // Games
  8. $games = array (
  9.     'aa'            => array (
  10.         'protocol'        => 'gamespy',
  11.         'name'            => 'Americas Army'
  12.         ),
  13.     'halflife'        => array (
  14.         'protocol'        => 'halflife',
  15.         'name'            => 'Half-Life'
  16.         ),
  17.     'q3'            => array (
  18.         'protocol'        => 'quake3',
  19.         'name'            => 'Quake3'
  20.         ),
  21.     'cod'            => array (
  22.         'protocol'        => 'quake3',
  23.         'name'            => 'Call of Duty'
  24.         ),
  25.     'rtcw'            => array (
  26.         'protocol'        => 'quake3',
  27.         'name'            => 'Return to Castle Wolfenstien'
  28.         ),
  29.     'et'            => array (
  30.         'protocol'        => 'quake3',
  31.         'name'            => 'Wolfenstien: Enemy Territory'
  32.         ),
  33.     'sof2'            => array (
  34.         'protocol'        => 'quake3',
  35.         'name'            => 'Soldier of Fortune 2'
  36.         ),
  37.     'jk2'            => array (
  38.         'protocol'        => 'quake3',
  39.         'name'            => 'JediKnight II'
  40.         ),
  41.     'ja'            => array (
  42.         'protocol'        => 'quake3',
  43.         'name'            => 'Jedi Academy'
  44.         ),
  45.     'q2'            => array (
  46.         'protocol'        => 'quake2',
  47.         'name'            => 'Quake2'
  48.         ),
  49.     'ut'            => array (
  50.         'protocol'        => 'gamespy',
  51.         'name'            => 'Unreal Tournament'
  52.         ),
  53.     'ut2k3'            => array (
  54.         'protocol'        => 'gamespy',
  55.         'name'            => 'Unreal Tournament 2003'
  56.         ),
  57.     'ut2k4'            => array (
  58.         'protocol'        => 'gamespy',
  59.         'name'            => 'Unreal Tournament 2004'
  60.         ),
  61.     'mohaa'            => array (
  62.         'protocol'        => 'gamespy',
  63.         'name'            => 'Medal of Honour: Allied Assault'
  64.         ),
  65.     'bf1942'        => array (
  66.         'protocol'        => 'bf1942',
  67.         'name'            => 'Battle Field 1942'
  68.         )
  69. );
  70.  
  71.  
  72. // Protocols
  73. $protocols = array (
  74.     'halflife'    => array (
  75.                         'packet'    => chr(255chr(255chr(255chr(255"infostring" chr(0),
  76.                         'delim'        => chr(0),
  77.                         'keys'        => array ('max''players''map''hostname')
  78.                     ),
  79.     'quake3'    => array (
  80.                         'packet'    => chr(255chr(255chr(255chr(255"getstatus" chr(0),
  81.                         'delim'        => "\n",
  82.                         'keys'        => array ('sv_maxclients'null'mapname''sv_hostname')
  83.                     ),
  84.     'quake2'    => array (
  85.                         'packet'    => chr(255chr(255chr(255chr(255"status" chr(0),
  86.                         'delim'        => "\n",
  87.                         'keys'        => array ('maxclients'null'mapname''hostname')
  88.                     ),
  89.     'gamespy'    => array (
  90.                         'packet'    => "\\status\\",
  91.                         'delim'        => null,
  92.                         'keys'        => array ('maxplayers''numplayers''mapname''hostname')
  93.                     ),
  94.     'bf1942'    => array (
  95.                         'packet'    => "\\info\\",
  96.                         'delim'        => null,
  97.                         'keys'        => array ('maxplayers''numplayers''mapname''hostname')
  98.                     )
  99. );
  100. ?>

Documentation generated on Mon, 11 Mar 2019 10:14:59 -0400 by phpDocumentor 1.4.4. PEAR Logo Copyright © PHP Group 2004.