This version of the RabbitMQ® C AMQP client library is adapted for KasperskyOS. The project is based on a commit of version 0.13.0 and includes two examples: an AMQP consumer and an AMQP publisher.
The RabbitMQ-C AMQP client library for KasperskyOS provides the ability to send and receive messages between programs using a RabbitMQ message broker as an intermediary. For more information about RabbitMQ, see RabbitMQ.
Communication between the RabbitMQ-C AMQP library and the RabbitMQ message broker is based on an Advanced Message Queuing Protocol (AMQP). For more information about AMQP, see AMQP version 0.9.1.
For more information about KasperskyOS, please refer to the KasperskyOS Community Edition Online Help.
The RabbitMQ-C AMQP client library has a limitation. This implementation supports only AMQP version 0.9.1.
Other limitations and known issues are described in the KasperskyOS Community Edition Online Help.
- Install the KasperskyOS Community Edition SDK. You can download the latest version of the KasperskyOS Community Edition for free from os.kaspersky.com. Minimum required version of the KasperskyOS Community Edition SDK is 1.1.1.13. For more information, see System requirements.
- Copy project sources files to your home directory. Examples of KasperskyOS-based solutions are located in the following directory:
./kos
When you develop a KasperskyOS-based solution, use the recommended structure of project directories to simplify usage of CMake scripts.
To include the RabbitMQ-C AMQP client library in your KasperskyOS-based solution, follow these steps:
- Build the library using the CMake module
ExternalProject
. - Use CMake command
target_include_directories()
to specify the paths to the header file directories. - Link the built library to your program using CMake command
target_link_libraries()
. Examples of implementing this approach are shown in the files:./kos/amqp_consumer/consumer/CMakeLists.txt
and./kos/amqp_publisher/publisher/CMakeLists.txt
. - Add the required header files to your code file to enable calls to library functions:
#include <amqp.h> #include <amqp_framing.h> #include <amqp_tcp_socket.h> ...
./kos/amqp_consumer
—Example of developing a solution that is an implementation of the AMQP consumer../kos/amqp_publisher
—Example of developing a solution that is an implementation of the AMQP publisher.
RabbitMQ® is a trademark of VMware, Inc. in the U.S. and other countries.
Only KasperskyOS-specific changes can be approved. See CONTRIBUTING.md for detailed instructions on code contribution.
This project is licensed under the terms of the MIT license. See LICENSE for more information.