Asyncore
|
Static Public Member Functions | |
static | init (?callable $line_function=null, bool $essential=true) |
static | isInitialized () |
static | getNextLine () |
|
static |
Blocks until the user has submitted a line and then returns it.
BadMethodCallException | if stdin was not initialized via stdin::init |
|
static |
Initializes Asyncore's STDIN handling, if it wasn't already, enabling the "stdin_line" event and the stdin::getNextLine() function. After this, STDIN is in Asyncore's hands, and there's no way out.
callable | null | $line_function | The function to be called when the user has submitted a line. |
bool | $essential | If false, the STDIN loop will be registered as inessential, so it doesn't prevent Asyncore::loop() from returning. |
|
static |