Home » Networking » Net_Server
Generic server class
This package is unmaintained.
Download latest release 1.0.3 (archived versions might be outdated)
License: PHP License
Description
Generic server class based on ext/sockets, used to develop any kind of server.
Documentation
Maintainers
- Stephan Schmidt (schst) — lead, active
- Luca Mariano (lucamariano) — lead, active
- Christian Weiske (cweiske) — lead, active
Dependencies
Required
- PHP (>= 4.2.0)
- PEAR Installer (>= 1.4.0b1)
- PEAR
- sockets (extension)
Optional
- PHP_Fork
- pcntl (extension)
Releases
- 1.0.3 (stable, 2012-01-26)
Release notes
License: PHP License
QA release
Bug #17457 No way to close connection without exiting
closeConnection() no longer calls exit() directly.
Doc Bug #11884
Bug #12743 Bug in Net_Server_Driver::readFromSocket - 1.0.2 (stable, 2006-11-16)
Release notes
License: PHP License
Using package.xml v2
- 1.0.1 (stable, 2006-06-27)
Release notes
License: PHP License
- Fixing bug #8006: readEndCharacter size wasn't taken into account
and stopped HTTP_Server functioning - 1.0.0 (stable, 2006-06-22)
Release notes
License: PHP License
After two years of being alpha, this is the first stable version.
Many bugs have been fixed:
- Fixing bug #2761
- Fixing request #5907: setEndCharacter
- Fixing request #4462IPv6 support
- Fixing bug: If the server is under full load, it can happen that
two data packets are delivered when doing a single
socket_read() call. If that happens, the two packets are
delivered as one.
- Adding onIdle handler - 0.12.0 (alpha, 2004-08-21)
- 0.11.5 (alpha, 2004-07-25)
- 0.11.4 (alpha, 2004-07-17)
Release notes
License: PHP License
- fixed bug #1890 (Server.php needs PEAR.php)
- fixed notices in Fork.php
- added missing dependencies - 0.11.3 (alpha, 2004-07-02)
Release notes
License: PHP License
- fixed bug with autodetection of connection abort
- 0.11.2 (alpha, 2004-07-02)
- 0.11 (alpha, 2004-01-02)
Release notes
License: PHP License
Added auto-detect for clients that use no readEndCharacter
Restructuring:
* added driver base class
* moved code from Net_Server to Net_Server_Driver - 0.10 (alpha, 2003-10-31)
Release notes
License: PHP
BC breakage release:
Net_Server is now working with drivers
and callback handlers inseatd of extending
a base class
Driver based on pcntl is now included that
forks new processes.
Bugs
| ID | Status | Type | Version | Date | Summary |
|---|---|---|---|---|---|
| #673 | Closed | Bug | 2004-02-03 | $this used in static function | |
| #706 | Closed | Bug | 2004-02-07 | using an undefined var | |
| #1244 | Closed | Bug | 2004-04-20 | Error occure when function socket_create not available | |
| #1429 | Closed | Bug | 2004-05-18 | readFromSocket fails on \'0\' | |
| #1787 | Closed | Req | 2004-07-04 | onIdle() Handler | |
| #1890 | Closed | Bug | 2004-07-16 | package throws PEAR::Error without PEAR.php included | |
| #1945 | Closed | Bug | 2004-07-22 | strange behaviour of debug | |
| #1946 | Closed | Req | 2004-07-22 | more info in debug | |
| #1972 | Closed | Bug | 2004-07-24 | CRITICAL! forked server instance does not end | |
| #2092 | Closed | Bug | 2004-08-09 | Little write-error... | |
| #2157 | Closed | Req | 2004-08-18 | socket_shutdown and onShutdown callback | |
| #2757 | Bogus | Bug | 2004-11-15 | Dep on Net_Fork and pcntl not listed | |
| #2761 | Closed | Bug | 2004-11-15 | readEndCharacter problem | |
| #3054 | Closed | Bug | 2004-12-29 | Incorrectly reads the line-end character | |
| #3991 | Closed | Req | 2005-03-29 | Fork.php doesn't work in conjunction with pcntl_alarm | |
| #4462 | Closed | Req | 2005-05-28 | IPv6 support | |
| #5907 | Closed | Req | 2005-11-09 | setEndCharacter | |
| #6098 | Closed | Req | 2005-11-28 | Net_Server onIdle hook | |
| #8006 | Closed | Bug | 1.0.0 | 2006-06-26 | readLeftOver causing problems with HTTP_Server |
| #9083 | No Feedback | Bug | 1.0.1 | 2006-10-18 | multiprocess not working |
| #10287 | Bogus | Bug | 1.0.2 | 2007-03-06 | onIdle should idle regardless if incoming requests exist |
| #11884 | Closed | Doc | 2007-08-21 | User note that is a documentation problem | |
| #12743 | Closed | Bug | 2007-12-21 | Bug in Net_Server_Driver::readFromSocket | |
| #14968 | No Feedback | Bug | 1.0.2 | 2008-11-07 | Last data packet lost |
| #15030 | Duplicate | Bug | 1.0.2 | 2008-11-14 | Poblem with readEndCharacters set is null |
| #15780 | Wont fix | Req | 1.0.2 | 2009-01-26 | Please add posix_setuid() |
| #17457 | Closed | Bug | 1.0.2 | 2010-06-02 | No way to close connection without exiting |
| #18017 | Open | Req | 1.0.2 | 2010-10-31 | Signature for sendData() not the same in all drivers. |
| #19335 | Open | Req | 1.0.3 | 2012-03-16 | IPv6 support |
| #19553 | Feedback | Bug | 1.0.3 | 2012-08-08 | Net_Server_Driver_Sequential::broadcastData |