LFSWorldHostsList Class Reference

Inheritance diagram for LFSWorldHostsList:

LFSWorldDataProvider List of all members.

Public Member Functions

 parse ($rawList, &$outputList)

Protected Attributes

 $m_sURL = 'http://www.lfsworld.net/pubstat/get_stat2.php?action=hosts'
 $m_aSrcMetaData = array('lifeTime' => 90, 'actualTarpit' => 60)

Detailed Description

Class for parsing LFSWorld hosts list.

Version:
2.5.00

Definition at line 21 of file providers/LFSW/hosts.php.


Member Function Documentation

LFSWorldHostsList::parse rawList,
&$  outputList
 

Parses the raw data from LFSWorld in to an array.

Raw List Format

 requires:-
 optional:-
 returns: HOST STRUCT:

 HOSTNAME        char[32]
 TMLT            byte[4] //Type, MajorVersion*10, MinorVersion, TestVersion
 TCR             byte[4] // Track, Config, Reversed
 MAXRACERS       byte[1]
 CARS            ulong (4 bytes)
 RULES           ulong (4 bytes)
 LAPS            byte [1]
 QUALMINS        byte [1]
 spare           byte [1]
 spare           byte [1]
 NROFRACERS      byte[1]
 RACERNAMES      char[24 * NROFRACERS]

 TMLT means:
 Type0 : old S1 / 1 : new S1 / 2 : S2
 Mainversion times 10 (e.g. 3 means version 0.3)
 Letter e.g. 'H' in 0.3H
 TestId zero : official / non-zero : test patch id
 (*) TRC is in numbers:
 000 = bl1
 001 = bl1r
 010 = bl2
 ..
 220 = fe3
 221 = fe3r
 etc.
 

Parameters:
rawList (String) The raw list retrieved from LFSWorld that needs to be parsed.
[out] outputList (Array) A reference to an array that will store the parsed output.
Returns:
(Boolean) True on success, false otherwise.

Reimplemented from LFSWorldDataProvider.

Definition at line 78 of file providers/LFSW/hosts.php.


Member Data Documentation

LFSWorldHostsList::$m_aSrcMetaData = array('lifeTime' => 90, 'actualTarpit' => 60) [protected]
 

(Array) An array of meta data possibly useful to other parts of a program. (Such as tarpit duration)

Reimplemented from LFSWorldDataProvider.

Definition at line 33 of file providers/LFSW/hosts.php.

LFSWorldHostsList::$m_sURL = 'http://www.lfsworld.net/pubstat/get_stat2.php?action=hosts' [protected]
 

(String) The base url of this data source.

Definition at line 27 of file providers/LFSW/hosts.php.


Generated on Wed Oct 25 03:13:33 2006 for LFSWorldParsingProviderFramework by  doxygen 1.4.6