Category : amqp

Tools: MacOS, C++, Brew, nats.c Hi, there. I’m trying to connect the program with NATS. The library that I used is https://github.com/nats-io/nats.c Small piece of code: #include <iostream> #include "nats/nats.h" using std::cout; using std::endl; using std::string; int main() { cout << "[App] Started" << endl; natsConnection *conn = NULL; natsConnection_ConnectTo(&conn, NATS_DEFAULT_URL); } CMake file: cmake_minimum_required(VERSION ..

Read more

I am currently trying to create a C++ program in Ubuntu that embeds a shared library. For this I have locally the .so file (in my case: libSimpleAmqpClient.so). The library itself also calls preinstalled shared libraries (in my case: librabbitmq.so and librabbitmq.so.4). I use the following CMAKE code: cmake_minimum_required(VERSION 3.19) project(AMQPListener) ## Add SimpleAMQP library ..

Read more

I’m a C++ neophyte and I am totally in over my head, but I’m trying anyway! http://qpid.apache.org/releases/qpid-proton-0.33.0/proton/cpp/examples/simple_recv.cpp.html I am trying to incorporate the above into an existing project and struggling badly. In order to be able to use various instances of the QPID Proton sender/receiver, I need to include their class files. The example is ..

Read more

I’m new to rabbitmq, and try to have a Listener to read from a messagequeue. The server should be fine (not implemented by me, I guess implemented in Java). I use C++ for the consumer, and I use the amqpcpp library. This is what I tried until now: int main(int argc, char* const argv[]) { ..

Read more