HttpRequestPool::socketPerform
HttpRequestPool::socketPerform — ソケットアクションを実行する
説明
protected bool HttpRequestPool::socketPerform ( void )各リクエストがトランザクションを終了するまでの間、TRUE を返します。
返り値
各リクエストがトランザクションを終了するまでの間、TRUE を返します。例
例 818. HttpRequestPool::socketPerform() の例
<?php
class MyPool extends HttpRequestPool
{
    public function send()
    {
        while ($this->socketPerform()) {
            if (!$this->socketSelect()) {
                throw new HttpSocketExcpetion;
            }
        }
    }
    protected final function socketPerform()
    {
        $result = parent::socketPerform();
        foreach ($this->getFinishedRequests() as $r) {
            $this->detach($r);
            // 終了したリクエストのレスポンスを処理します。
        }
        return $result;
    }
}
?>
- HttpRequestPool::socketPerformのページへのリンク

 
                             
                    


