Net_Server_Handler::onIdle() – onIdle handler


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.


This function can not be called statically.

onConnectionRefused handler (Previous) onReceiveData handler (Next)
Last updated: Sat, 16 Feb 2019 — Download Documentation
Do you think that something on this page is wrong? Please file a bug report.
View this page in:
  • English

User Notes:

There are no user contributed notes for this page.