略微加速

PHP官方手册 - 互联网笔记

PHP - Manual: mqseries_put1

2024-04-30

mqseries_put1

(PECL mqseries >= 0.10.0)

mqseries_put1MQSeries MQPUT1

说明

mqseries_put1(
    resource $hconn,
    resource &$objDesc,
    resource &$msgDesc,
    resource &$pmo,
    string $buffer,
    resource &$compCode,
    resource &$reason
): void

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.

返回值

没有返回值。

参见

add a noteadd a note

User Contributed Notes

There are no user contributed notes for this page.

官方地址:https://www.php.net/manual/en/function.mqseries-put1.php

北京半月雨文化科技有限公司.版权所有 京ICP备12026184号-3