array ( 0 => 'index.php', 1 => 'PHP Manual', ), 'head' => array ( 0 => 'UTF-8', 1 => 'zh', ), 'this' => array ( 0 => 'function.mqseries-put1.php', 1 => 'mqseries_put1', ), 'up' => array ( 0 => 'ref.mqseries.php', 1 => 'mqseries 函数', ), 'prev' => array ( 0 => 'function.mqseries-open.php', 1 => 'mqseries_open', ), 'next' => array ( 0 => 'function.mqseries-put.php', 1 => 'mqseries_put', ), 'alternatives' => array ( ), 'source' => array ( 'lang' => 'en', 'path' => 'reference/mqseries/functions/mqseries-put1.xml', ), ); $setup["toc"] = $TOC; $setup["toc_deprecated"] = $TOC_DEPRECATED; $setup["parents"] = $PARENTS; manual_setup($setup); ?>
(PECL mqseries >= 0.10.0)
mqseries_put1 — MQSeries MQPUT1
$hconn
,&$objDesc
,&$msgDesc
,&$pmo
,$buffer
,&$compCode
,&$reason
The mqseries_put1() (MQPUT1) call puts one message on a queue. The queue need not be open.
You can use both the mqseries_put() and mqseries_put1() calls to put messages on a queue; which call to use depends on the circumstances. Use the mqseries_put() (MQPUT) call to place multiple messages on the same queue. Use the mqseries_put1() (MQPUT1) call to put only one message on a queue. This call encapsulates the MQOPEN, MQPUT, and MQCLOSE calls into a single call, minimizing the number of calls that must be issued.
hConn
Connection handle.
This handle represents the connection to the queue manager.
objDesc
Object descriptor. (MQOD)
This is a structure which identifies the queue to which the message is added.
msgDesc
Message descriptor (MQMD).
pmo
Put message options (MQPMO).
compCode
Completion code.
reason
Reason code qualifying the compCode.
没有返回值。