PHP Class PHPDaemon\IPCManager\IPCManager

Inheritance: extends PHPDaemon\Core\AppInstance
Datei anzeigen Open project: kakserpom/phpdaemon Class Usage Examples

Public Properties

Property Type Description
$conn
$pool
$socketurl

Public Methods

Method Description
ensureConnection ( )
getSocketUrl ( )
importFile ( $workerId, $path ) : boolean
init ( ) : void Constructor.
onShutdown ( boolean $graceful = false ) : boolean Called when application instance is going to shutdown.
sendBroadcastCall ( $appInstance, $method, array $args = [], callable $cb = null )
sendDirectCall ( $workerId, $appInstance, $method, array $args = [], callable $cb = null )
sendPacket ( $packet = null )
sendSingleCall ( $appInstance, $method, array $args = [], callable $cb = null )
updatedWorkers ( )

Protected Methods

Method Description
getConfigDefaults ( ) : array | boolean Setting default config options Overriden from AppInstance::getConfigDefaults

Method Details

ensureConnection() public method

public ensureConnection ( )

getConfigDefaults() protected method

Setting default config options Overriden from AppInstance::getConfigDefaults
protected getConfigDefaults ( ) : array | boolean
return array | boolean

getSocketUrl() public method

public getSocketUrl ( )

importFile() public method

public importFile ( $workerId, $path ) : boolean
$workerId
$path
return boolean

init() public method

Constructor.
public init ( ) : void
return void

onShutdown() public method

Called when application instance is going to shutdown.
public onShutdown ( boolean $graceful = false ) : boolean
$graceful boolean
return boolean Ready to shutdown?

sendBroadcastCall() public method

public sendBroadcastCall ( $appInstance, $method, array $args = [], callable $cb = null )
$appInstance
$method
$args array
$cb callable

sendDirectCall() public method

public sendDirectCall ( $workerId, $appInstance, $method, array $args = [], callable $cb = null )
$workerId
$appInstance
$method
$args array
$cb callable

sendPacket() public method

public sendPacket ( $packet = null )
$packet

sendSingleCall() public method

public sendSingleCall ( $appInstance, $method, array $args = [], callable $cb = null )
$appInstance
$method
$args array
$cb callable

updatedWorkers() public method

public updatedWorkers ( )

Property Details

$conn public_oe property

public $conn

$pool public_oe property

public $pool

$socketurl public_oe property

public $socketurl