class Pool (View source)

Properties

$master_pid
$workers

Methods

__construct($worker_num, $ipc_type = null, $msgqueue_key = null, $enable_coroutine = null)

No description

__destruct()

No description

mixed
set(array $settings)

No description

mixed
on(mixed $event_name, callable $callback)

No description

mixed
getProcess(mixed|null $worker_id = null)

No description

mixed
listen(mixed $host, mixed|null $port = null, mixed|null $backlog = null)

No description

mixed
write(mixed $data)

No description

mixed
detach()

No description

mixed
start()

No description

mixed
stop()

No description

mixed
shutdown()

No description

Details

__construct($worker_num, $ipc_type = null, $msgqueue_key = null, $enable_coroutine = null)

No description

Parameters

$worker_num
$ipc_type
$msgqueue_key
$enable_coroutine

__destruct()

No description

mixed set(array $settings)

No description

Parameters

array $settings

Return Value

mixed

mixed on(mixed $event_name, callable $callback)

No description

Parameters

mixed $event_name
callable $callback

Return Value

mixed

mixed getProcess(mixed|null $worker_id = null)

No description

Parameters

mixed|null $worker_id

Return Value

mixed

mixed listen(mixed $host, mixed|null $port = null, mixed|null $backlog = null)

No description

Parameters

mixed $host
mixed|null $port
mixed|null $backlog

Return Value

mixed

mixed write(mixed $data)

No description

Parameters

mixed $data

Return Value

mixed

mixed detach()

No description

Return Value

mixed

mixed start()

No description

Return Value

mixed

mixed stop()

No description

Return Value

mixed

mixed shutdown()

No description

Return Value

mixed