dropr_Client::getIpcChannel PHP Method

getIpcChannel() public method

public getIpcChannel ( )
    public function getIpcChannel()
    {
        return $this->ipcChannel;
    }

Usage Example

Example #1
0
    // use default (INFO)
    $logLevel = LOG_INFO;
}
/*
 * init logging - use syslog in daemon
 */
dropr::setLogger(new dropr_Log_Syslog());
dropr::setLogLevel($logLevel);
dropr::log("logLevel is {$logLevel}", LOG_DEBUG);
dropr::log("********************************************************************", LOG_INFO);
dropr::log("Starting up with que type {$argv['1']} and DSN {$argv['2']}", LOG_INFO);
dropr::log("********************************************************************", LOG_INFO);
try {
    $storage = dropr_Client_Storage_Abstract::factory($argv[1], $argv[2]);
    $qInstance = new dropr_Client($storage);
    $ipcChannel = $qInstance->getIpcChannel();
} catch (Exception $e) {
    dropr::log("Could not startup: {$e->getMessage()} - sleeping 5 seconds and then exiting ...", LOG_ERR);
    sleep(5);
    exit(1);
}
$continue = true;
dropr::log("Startup ok!", LOG_DEBUG);
// todo: make this configurable!!
$sleepTimeout = 20;
$peerTimeout = 60;
$maxMessagesPerLife = 10000;
$maxMessagesPerSend = 1000;
$peerKeyBlackList = array();
$msgCount = 0;
function handleKill($sig)