2 extending HttpRequestPool
6 checkcls('HttpRequestPool');
7 checkurl('at.php.net');
8 checkurl('de.php.net');
9 checkurl('www.php.net');
15 class MyPool extends HttpRequestPool
17 public function send()
19 while ($this->socketPerform()) {
20 if (!$this->socketSelect()) {
21 throw new HttpSocketException;
26 protected final function socketPerform()
28 $result = parent::socketPerform();
31 foreach ($this->getFinishedRequests() as $r) {
32 echo "=", $r->getResponseCode(), "=";
41 new HttpRequest('http://www.php.net/', HTTP_METH_HEAD),
42 new HttpRequest('http://at.php.net/', HTTP_METH_HEAD),
43 new HttpRequest('http://de.php.net/', HTTP_METH_HEAD)
52 \.*=200=\.*=200=\.*=200=