GithubHelp home page GithubHelp logo

amrfaissal / amqp11 Goto Github PK

View Code? Open in Web Editor NEW
1.0 2.0 0.0 164 KB

AMQP Client library for C++11

License: MIT License

CMake 9.13% Makefile 2.78% JavaScript 0.45% C++ 87.64%
rabbitmq cmake cpp11

amqp11's Introduction

AMQP Client library for C++11

Introduction

amqp11 is a small and simple AMQP client library for C++11 of the RabbitMQ

Latest Stable Version

The latest stable version of the amqp11 library can be found at:

Getting started

Building and Installing

Dependencies :

After downloading and extracting the source from a tarball to a directory. ([see above][Latest Stable Version]), the commands to build amqp11 on most systems are:

mkdir build && cd build
cmake ..
cmake --build .

It is also possible to point the CMake GUI tool at the CMakeLists.txt in the root of the source tree and generate build projects or IDE workspace.

Installing the library and optionally specifying a prefix can be done with:

cmake -DCMAKE_INSTALL_PREFIX=/usr/local ..
cmake --build . --target install

More information on CMake can be found on its FAQ.

Running the examples

Arrange for a RabbitMQ or other AMQP server to be running on localhost at TCP port number 5672.

Build the examples:

cd examples && mkdir build && cd build
cmake ..
cmake --build .

In one terminal, run:

$./example_publish

In another terminal,

$./example_consume

You should see output similar to the following in the listener's terminal window:

Received data: Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmodtempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur.Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum. |1: Tag=1 / Content-type:text/plain / Encoding:  / Mode=2

Using amqp11

Please see the examples directory for short examples of the use of the amqp11 library.

amqp11's People

Contributors

amrfaissal avatar

Stargazers

 avatar

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.