Property | Type | Description | |
---|---|---|---|
$block_send | boolean | ||
$ipc_filename | string | ||
$key_t | |||
$maxsize | integer | ||
$msg_type | channel | ||
$option_receive | integer | ||
$queue | |||
$serialize_needed | boolean |
Method | Description | |
---|---|---|
__construct ( string $ipc_filename = __FILE__, integer $channel = 1, boolean $serialize_needed = true, boolean $block_send = true, integer $option_receive = MSG_IPC_NOWAIT, integer $maxsize = 100000 ) | ||
__destruct ( ) | ||
__wakeup ( ) | init when wakeup | |
get ( boolean $block = false ) : boolean | string | get message | |
getIpcKey ( $ipc_filename, $msg_type ) : integer | ||
put ( $message ) : boolean | put message | |
queueExists ( $key ) : boolean | check if the queue is exists or not | |
remove ( ) : boolean | remove queue | |
setMaxQueueSize ( $size ) : boolean | update the max size of queue need root | |
setStatus ( string $key, integer $value ) : boolean | allows you to change the values of the msg_perm.uid, msg_perm.gid, msg_perm.mode and msg_qbytes fields of the underlying message queue data structure | |
size ( ) : mixed | get the size of queue | |
status ( ) |
Method | Description | |
---|---|---|
initQueue ( $ipc_filename, $msg_type ) | init queue |
Method | Description | |
---|---|---|
checkSetPrivilege ( $key ) | check the privilege of update the queue's status |
public __construct ( string $ipc_filename = __FILE__, integer $channel = 1, boolean $serialize_needed = true, boolean $block_send = true, integer $option_receive = MSG_IPC_NOWAIT, integer $maxsize = 100000 ) | ||
$ipc_filename | string | ipc file to make ipc key. if it does not exists, it will try to create the file. |
$channel | integer | message type |
$serialize_needed | boolean | serialize or not |
$block_send | boolean | if block when the queue is full |
$option_receive | integer | if the value is MSG_IPC_NOWAIT it will not going to wait a message coming. if the value is null, it will block and wait a message |
$maxsize | integer | the max size of queue |
protected initQueue ( $ipc_filename, $msg_type ) | ||
$ipc_filename | ||
$msg_type |
public queueExists ( $key ) : boolean | ||
$key | ||
return | boolean |
public setMaxQueueSize ( $size ) : boolean | ||
$size | ||
return | boolean |