[PEPr] Changes in proposal for Networking::Net_GameServerQuery
| From: | PEPr | Date: | Fri, 19 Mar 2004 15:51:53 +0000 |
| Subject: | [PEPr] Changes in proposal for Networking::Net_GameServerQuery | ||
| Groups: | php.pear.dev | ||
| Request: | Send a blank email to pear-dev+get-26592@lists.php.net to get a copy of this message | ||
Aidan Lister (http://pear.php.net/user/aidan) has edited the proposal for
Networking::Net_GameServerQuery.
Change comment:
I've made _massive_ changes to the entire package.
In a stroke of genious, I decided to return a result object from a successful query(). This solves
all problems associated with quering multiple servers and restrictive (poor) API behaviour.
The second major change was to the protocol handler. (Another stroke of genious).
Instead of constants (which lead to numerous problems adding new protocols, and testing for
validity), there is a seperate file (protocol.php) with an array of supported games, and protocol
used. In a seperate array, the details for each protocol as used by the class.
This makes the game protocol independent (protocol is not required to be known by the end user) and
allows additions of new protocols and games by editing an array. I'm very happy with the end
result.
I've reworded the package description, and changed links to the source files.
The package is still in heavy development, so hold off on the reviews until I've stabilised it.
Please re-review the package:
http://pear.php.net/pepr/pepr-proposal-show.php?id=34
--
Sent by PEPr, the automatic proposal system at http://pear.php.net