2 extending HttpRequestPool
6 checkcls('HttpRequestPool');
7 checkurl('www.php.net');
13 class MyPool extends HttpRequestPool
15 public function send()
17 while ($this->socketPerform()) {
18 if (!$this->socketSelect()) {
19 throw new HttpSocketException;
24 protected final function socketPerform()
26 $result = parent::socketPerform();
29 foreach ($this->getFinishedRequests() as $r) {
30 echo "=", $r->getResponseCode(), "=";
39 new HttpRequest('http://www.php.net/', HTTP_METH_HEAD),
40 new HttpRequest('http://www.php.net/', HTTP_METH_HEAD),
41 new HttpRequest('http://www.php.net/', HTTP_METH_HEAD)
50 \.*=200=\.*=200=\.*=200=