GoLang mqseries_put1

request it (184)
GoLang replacement for PHP's mqseries_put1 [edit | history]

Do you know a GoLang replacement for PHP's mqseries_put1? Write it!

PHP mqseries_put1

PHP original manual for mqseries_put1 [ show | php.net ]


(PECL mqseries >= 0.10.0)

mqseries_put1MQSeries MQPUT1


void mqseries_put1 ( resource $hconn , resource &$objDesc , resource &$msgDesc , resource &$pmo , string $buffer , resource &$compCode , resource &$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.



Connection handle.

This handle represents the connection to the queue manager.


Object descriptor. (MQOD)

This is a structure which identifies the queue to which the message is added.


Message descriptor (MQMD).


Put message options (MQPMO).


Completion code.


Reason code qualifying the compCode.

Return Values

No value is returned.

See Also