Re: SimpleAmqpClient

17 views
Skip to first unread message

Alan Antonuk

unread,
Sep 8, 2018, 9:35:51 PM9/8/18
to Мартин Иден, simpleamqpclient-users
That is not intended to be a public API.  Don't use it.

-Alan

On Mon, Aug 6, 2018 at 12:43 AM Мартин Иден <iamstup...@gmail.com> wrote:
Hi, Alan.
English is not my native language😄
I use your SimpleAmqpLibrary, and all was right, when I worked with std::strings. Then I decided to use amqp_bytes_t.
I have connection, exchange, queue, binding between them - all work
but then I wanted to publish amqp_bytes_t_
it is a part of code:

amqp_bytes_t_ amqp_bytes;
amqp_bytes.bytes = pData; // pData is unsigned char*
amqp_bytes.len = (size_t)LenData; // LenData is a size of pData in int;
amqp_basic_properties_t prop;
AmqpClient::BasicMessage::ptr_t msg_send = AmqpClient::BasicMessage::Create(amqp_bytes, &prop);
channel->AmqpClient::BasicPublish("", queue, msg_send); // and there i have an error AmqpExceptionLibrary

what am I doing wrong?

Reply all
Reply to author
Forward
0 new messages