PHP Class Workerman\Events\Libevent

Inheritance: implements Workerman\Events\EventInterface
Show file Open project: walkor/workerman

Protected Properties

Property Type Description
$_allEvents array All listeners for read/write event.
$_eventBase resource Event base.
$_eventSignal array Event listeners of signal.
$_eventTimer array [func, args, event, flag, time_interval]

Public Methods

Method Description
__construct ( ) construct
add ( $fd, $flag, $func, $args = [] )
clearAllTimer ( )
del ( $fd, $flag )
loop ( )

Protected Methods

Method Description
timerCallback ( mixed $_null1, integer $_null2, mixed $timer_id ) Timer callback.

Method Details

__construct() public method

construct
public __construct ( )

add() public method

public add ( $fd, $flag, $func, $args = [] )

clearAllTimer() public method

public clearAllTimer ( )

del() public method

public del ( $fd, $flag )

loop() public method

public loop ( )

timerCallback() protected method

Timer callback.
protected timerCallback ( mixed $_null1, integer $_null2, mixed $timer_id )
$_null1 mixed
$_null2 integer
$timer_id mixed

Property Details

$_allEvents protected property

All listeners for read/write event.
protected array $_allEvents
return array

$_eventBase protected property

Event base.
protected resource $_eventBase
return resource

$_eventSignal protected property

Event listeners of signal.
protected array $_eventSignal
return array

$_eventTimer protected property

[func, args, event, flag, time_interval]
protected array $_eventTimer
return array