Questions tagged [rabbitmq-c]

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

38 questions
4
votes
0 answers

RabbitMQ close lost connections

I would like to know if there is a way to configure RabbitMQ to close lost connections regardless the heartbeat. My issue is that if a connection was opened with heartbeat set to 0 and the connection is lost (like disabling the network interface)…
Amir Rossert
  • 226
  • 2
  • 15
4
votes
2 answers

How to abort code when publish message on non exist queue in rabbitmq

I have wrote server-client application. Server Side server will initilise a queue queue1 with routing key key1 on direct exchange. After initilise and declaration it consume data whenever someone write on it. Client Side client will publish some…
Chintan Patel
  • 173
  • 3
  • 14
2
votes
2 answers

Using rabbitmq-c as static library gives error: fatal error: amqp.h: No such file or directory

I am trying to build rabbitmq-c as a static library so I can use in AWS lambda. I am able to build the examples following the documentation and those are working fine. But now I am trying to use in my own project. Below are the steps I took: Cloned…
ashutosh sharma
  • 192
  • 2
  • 8
2
votes
1 answer

Send Images using RabbitMQ

I want to transfer an image from a client to the server using RabbitMQ. However, from whatever I read, I understood that RabbitMQ can only transfer a stream of text. So how to transfer an image?
2
votes
1 answer

RabbitMQ-C build error (with openSSL)

i'm trying to build RabbitMQ-C (https://github.com/alanxz/rabbitmq-c) with SSL support. I have downloaded & built last openSSL version (https://github.com/openssl/openssl) , and added it. (the openssl libraries are in openssl root folder). My…
user3206558
  • 392
  • 1
  • 12
1
vote
1 answer

rabbitmq-c send nlohmann json

Want to send image through RabbitMQ-C but the image file too big. Receiver cannot retrieve the image. So, I converted image to base64 then put it in JSON. const char *msg; FILE *image1; if (image1 = fopen(path, "rb")) { fseek(image1,…
nunu
  • 21
  • 5
1
vote
1 answer

RabbitMQ Consumer/Reciever not working in C# Windows Form

I am currently working with the rabbitMQ server, As when i try working in c# console application, the publish exchange working and successfully save in the server and the message will lively appear in the console but when i apply my source code in…
1
vote
1 answer

amqp_basic_qos not having any effect

I am trying to code a simple consumer using librabbitmq. It is working, but when I do execute amqp_basic_consume, it consumes the entire queue. What I want is for it to get a single message, process it and repeat. I tried using a basic_qos to have…
1
vote
2 answers

compile the c++ amqp-cpp demo program err, make err

I want to write a test program with amqpcppCopernicaMarketingSoftware/AMQP-CPP. But the compiler(g++) complains: g++ main.cpp rabbitmq_handler.cpp -std=c++11 -lamqpcpp -lpthread -ldl In file included from /usr/local/include/amqpcpp/linux_tcp.h:2:0, …
jam dc
  • 28
  • 5
1
vote
1 answer

Error while trying to make a RabbitMQ C-master project

I am trying to build my own project, i.e., smart_parking using RabbitMQ C-master. The link to the C APIs is: https://github.com/alanxz/rabbitmq-c I made a folder with the name smart_parking in the rabbitmq folder. I also wrote the CMakeLists.txt…
1
vote
1 answer

rabbitmq-c consumer not receving all messages

I have ACK enabled on consumer and producer sending 2000 messages to server. What I see is only around 1700 messages are received at consumer. Can someone tell what is wrong? I am running provided example code from rabbitmq-c library ./amqp_producer…
mav3rick
  • 31
  • 3
1
vote
1 answer

Converting amqp_cstring_bytes back to C string

The AMQP messaging library for C has a function that takes a C string and converts it into it's own byte format for handling amqp_cstring_bytes. Is there an inverse of this function to take it's byte format and convert it back into a C string?
Shiri
  • 1,972
  • 7
  • 24
  • 46
1
vote
1 answer

rabbitmq binding same queue with multiple binding keys

All, I am trying to bind a queue with multiple binding keys. However, not all keys are known upfront. So, I do amqp_queue_bind with one known key and then amqp_basic_consume and later amqp_queue_bind again whren second key is known. The second…
Ashish Vyas
  • 617
  • 1
  • 5
  • 19
1
vote
1 answer

RabbitMq C API : emulating "rabbitmqctl cluster_status -n rabbit@" from C API

I'm trying to get the list of nodes in a cluster using only the C API. More or less what the following shell command returns, but from C API rabbitmqctl cluster_status -n rabbit@ I'd like to avoid calling rabbitmqctl from the C…
1
vote
1 answer

SimpleAmqpClient & rabbitmq-c binaries

Are there pre-built per-platform binaries for the AMQP libraries SimpleAmqpClient & rabbitmq-c (and if no, what would be the reason)?
grunt
  • 662
  • 1
  • 8
  • 24
1
2 3