PHP kézikönyv
Előző |  | Következő

# HttpRequestPool::socketPerform

(no version information, might be only in CVS)

HttpRequestPool::socketPerform -- Perform socket actions

## Leírás

protectedbool HttpRequestPool::socketPerform ( void )

Returns TRUE until each request has finished its transaction.

## Visszatérési értékek

Returns TRUE until each request has finished its transaction.

## Példák

Példa 1. A HttpRequestPool::socketPerform() example

`<?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); // handle response of finished request } return $result; } } ?>`

Előző | Tartalom | Következő
HttpRequestPool::send | Fel | HttpRequestPool::socketSelect