2 extending HttpRequestPool
6 checkcls('HttpRequestPool');
12 class MyPool extends HttpRequestPool
14 public function send()
16 while ($this->socketPerform()) {
17 if (!$this->socketSelect()) {
18 throw new HttpSocketException;
23 protected final function socketPerform()
25 $result = parent::socketPerform();
28 foreach ($this->getFinishedRequests() as $r) {
29 echo "=", $r->getResponseCode(), "=";
38 new HttpRequest('http://www.php.net/', HTTP_METH_HEAD),
39 new HttpRequest('http://at.php.net/', HTTP_METH_HEAD),
40 new HttpRequest('http://de.php.net/', HTTP_METH_HEAD),
41 new HttpRequest('http://ch.php.net/', HTTP_METH_HEAD)
50 \.+=200=\.+=200=\.+=200=\.+=200=