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