HttpRequestPool::socketPerform
(PECL pecl_http >= 0.15.0)
HttpRequestPool::socketPerform — Soket işlemleri bitene kadar beklenmesini sağlar
Açıklama
protected
bool HttpRequestPool::socketPerform
( void
)
Her istek kendi işlemlerini tamamlayana kadar TRUE ile döner.
Dönen Değerler
Her istek kendi işlemlerini tamamlayana kadar TRUE döndürür.
Örnekler
Örnek 1 - HttpRequestPool::socketPerform() örneği
<?php
class Havuz 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);
// istek tamamlandı yanıtını alalım
}
return $result;
}
}
?>
HttpRequestPool::socketPerform
There are no user contributed notes for this page.
