2 extending HttpRequestPool
6 checkcls('HttpRequestPool');
7 checkurl('ch.php.net');
8 checkurl('at.php.net');
9 checkurl('de.php.net');
10 checkurl('www.php.net');
16 class MyPool extends HttpRequestPool
18 public function send()
20 while ($this->socketPerform()) {
21 if (!$this->socketSelect()) {
22 throw new HttpSocketException;
27 protected final function socketPerform()
29 $result = parent::socketPerform();
32 foreach ($this->getFinishedRequests() as $r) {
33 echo "=", $r->getResponseCode(), "=";
42 new HttpRequest('http://www.php.net/', HTTP_METH_HEAD),
43 new HttpRequest('http://at.php.net/', HTTP_METH_HEAD),
44 new HttpRequest('http://de.php.net/', HTTP_METH_HEAD),
45 new HttpRequest('http://ch.php.net/', HTTP_METH_HEAD)
54 \.*=200=\.*=200=\.*=200=\.*=200=