Main Page | Class Hierarchy | Class List | Directories | Class Members | Related Pages | Examples

hlife Class Reference

Querys a halflife server. More...

Inheritance diagram for hlife:

Inheritance graph
Collaboration diagram for hlife:

Collaboration graph
List of all members.

Public Member Functions

 getGameJoinerURI ()
 Returns a GameJoiner URI.
 query_server ($getPlayers=TRUE, $getRules=TRUE)
 Querys the server.
 getDebugDumps ($html=FALSE, $dumper=NULL)
 Creates hexdumps out of the debug info.

Detailed Description

Querys a halflife server.

Author:
Jeremias Reith (jr@gsquery.org)
Version:
Rev
195
Code is very ugly at the moment. Does anyone have the protocol specs?

This class works with Halflife only.

Examples:

example_usage.php.


Member Function Documentation

hlife::getDebugDumps html = FALSE,
dumper = NULL
 

Creates hexdumps out of the debug info.

Parameters:
html whether to create an html hexdump
dumper an optional preconfigured HexDumper instance
Returns:
an array with hexdumps for each send command/received result
Pass an HexDumper instance if you want to format the dump yourself. Each element of the result will contain a 2 element array with the hexdump of the send data first and the dump of the received data behind it.

Reimplemented from gsQuery.

hlife::getGameJoinerURI  ) 
 

Returns a GameJoiner URI.

See also:
http://gamejoiner.terragate.net
The server has to be queried before in some cases (to find out the game port). The client needs GameJoiner to join the game with this URI

Returns:
A GameJoiner URI

Reimplemented from gsQuery.

hlife::query_server getPlayers = TRUE,
getRules = TRUE
 

Querys the server.

This method is abstract

Parameters:
getPlayers wheather to retrieve player infos
getRules wheather to retrieve rules
Returns:
TRUE on success

Reimplemented from gsQuery.

Reimplemented in hlife2.


The documentation for this class was generated from the following file:
Generated on Sat Oct 15 16:52:00 2005 for gsQuery by  doxygen 1.4.4