Рекурсивный акроним словосочетания «PHP: Hypertext Preprocessor»
Добро пожаловать на форум PHP программистов!
За последние 24 часа нас посетили 18840 программистов и 1635 роботов. Сейчас ищут 1925 программистов ...
Net_Server_Handler::onIdle
Вернуться к: Net_Server
Net_Server_Handler::onIdle
Net_Server_Handler::onIdle() – onIdle handler
Synopsis
require_once 'ServerHandler.php';
void Net_Server_Handler::onIdle ( )
This handler is called whenever the server is idle (has nothing to do), and that for a given number of seconds (timeout). Currently, only the sequential driver supports this handler.
The timeout can be specified by passing the desired number of seconds to setIdleTimeout(). By default, the timeout is set to NULL, which means that the handler is deactivated.
Note
This function can not be called statically.
Вернуться к: Net_Server