Questions tagged [rabbitmq-c]

This is a C-language AMQP client library for use with v2.0+ of the RabbitMQ broker.

38 questions
1
vote
1 answer

How to troubleshoot failure to open a socket - amqp / rabbitmq-c

I am trying to Hello World the rabbitmq-c implementation of AMQP. I have a small script adopted from the example included with the rabbitmq-c source. Here's a snippet: socket = amqp_tcp_socket_new(conn); if (!socket) { die("creating TCP…
masonk
  • 9,176
  • 2
  • 47
  • 58
0
votes
0 answers

Publisher confirm in rabbitmq-c?

How to implement publisher confirms in rabbitmq-c? In an example written by alanxz this is the approach: amqp_frame_t frame; amqp_simple_wait_frame(conn, &frame); if (frame.method == AMQP_BASIC_ACK) { // Message successfully…
sriganesh
  • 19
  • 4
0
votes
0 answers

How to check for the existence of a queue using rabbitmq-c?

I am trying to use rabbitmq-c to write a program that inserts messages into a queue that already exists. The queue should have already been created by a different process. If the queue does not exist it should report an error. The program takes the…
sriganesh
  • 19
  • 4
0
votes
1 answer

Declare a queue with x-max-length programmatically using Rabbitmq-c

I am implementing a RPC function for my C application , and try to programmatically declare a queue which limits maximum number of pending messages, after reading the declaration of amqp_table_entry_t and amqp_field_value_t in amqp.h , here's my…
Ham
  • 703
  • 8
  • 17
0
votes
1 answer

AMQP Message properties not being published to RabbitMQ hub

I have used vcpkg to build rabbitmq-c as described in the https://github.com/alanxz/rabbitmq-c build instructions: git clone https://github.com/Microsoft/vcpkg.git cd vcpkg ./bootstrap-vcpkg.sh ./vcpkg integrate install ./vcpkg install…
Humayun Khan
  • 63
  • 1
  • 5
0
votes
1 answer

Whats the difference between a frame and an envelope in rabbitmq-c?

What is the difference between a frame and an envelope in the context of rabbitmq-c. The examples seem to use them interchangeably, and its not clear what the difference is.
cjae
  • 13
  • 2
0
votes
1 answer

RabbitMQ - SimpleAmqpClient - I am trying to send headers along with my message but the headers are not being sent; what am I doing wrong?

I am using the following: https://github.com/alanxz/SimpleAmqpClient I am trying to send headers along with my message but the headers are not being sent; what am I doing wrong? Here is how my code looks like. I have a configuration object with some…
Humayun Khan
  • 63
  • 1
  • 5
0
votes
1 answer

When/why would you need to use CACert in a TLS negotiation?

I am trying to understand the parameters used to configure TLS (specifically for rabbitmq but my question might be more general). There are 4 main entities to consider: Key - private key used by a peer to decrypt messages send to it that have…
Bruce Adams
  • 4,953
  • 4
  • 48
  • 111
0
votes
1 answer

How to read reply_to from message in library for rabbitmq - amqpcpp?

I'm trying to read reply_to param from message with no success. I'm using rabbitcpp C++ library for Message Queue Server RabbitMQ https://github.com/akalend/amqpcpp AMQPQueue * qu2 = amqp.createQueue(); qu2->Declare("test",…
mrgrechkinn
  • 883
  • 8
  • 19
0
votes
0 answers

Linking error for client of rabbitmq-c

I want to implement a small c++ client, that connects to my local RabbitMQ-server. The app is configured with CMakeList as follows: Boost_STATIC_LIBS: ON Boost SHARED_LIBS: ON ENABLE_SSL_SUPPORT: ON Rabbitmqc_INCLUDE_DIR:…
mystic.06
  • 189
  • 8
0
votes
1 answer

Messages getting lost in RabbitMQ C master

I am using alanxz's RabbitMQ C master. The link is as follows: https://github.com/alanxz/rabbitmq-c In the amqp_sendstring.c and amqp_listen.c examples, when I shut down the amqp_listen.c and still continue sending strings using amqp_sendstring.c,…
0
votes
1 answer

Unable to send image via RabbitMQ C master

I am trying to send an image via RabbitMQ C master by using its binary data as message and then transferring it and copying it onto another image file. My code is as follows: Client/sender: #include "amqp_wrapper_library.h" int main(int argc, char…
0
votes
1 answer

How to get right values from requirements in Conan recipe to be used as CMake parameters?

I'm writing recipe for creating package for rabbitmq-c library. When ENABLE_SSL_SUPPORT option in its CMake script is checked it requires OpenSSL library for its build. As it shown on provided screen paths to Debug and Release versions of…
bobeff
  • 3,543
  • 3
  • 34
  • 62
0
votes
1 answer

Rabbitmq-c library doesn't dynamically linked in Debian 8

The goal: make Rabbitmq-c dynamically linked via gcc (https://github.com/alanxz/rabbitmq-c). Project is called storeman: #include #include #include #include #include #include #include…
0
votes
1 answer

rabbitmq-c SSL peer cert verification failed

I'm trying to connect using SSL, SSL is enabled on the server but I'm not able to connect using the rabbitmq-c client. I took the amqps_connect_timeout.c example and this is the error that I'm getting at amqp_socket_open_noblock. SSL peer cert…
Amir Rossert
  • 226
  • 2
  • 15