You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@qpid.apache.org by aconway <ac...@redhat.com> on 2015/09/04 22:53:43 UTC

C++ binding for proton

I have committed the C++ binding for proton to the master branch. This
is a roll-up of the cjansen-cpp-client branch. Outstanding work is
listed inproton-c/bindings/cpp/README.md. The documentation is at 
http://qpid.apache.org/releases/qpid-proton-master/index.html

Here's the info from the commit:

PROTON-865: C++ reactor binding for proton.
    

This is a C++ interface to proton, providing an event-driven API
similar to the
python reactive API.

Each of the proton "classes" such as pn_link_t, pn_connection_t etc. is
represented by a C++ "facade" class that provides the relevant member
functions. These classes take up no memory, they are actually pointers
to the
proton C structs with some casting magic to translate C++ member
function calls
into C function calls.

A C++ smart pointer, proton::counted_ptr, automates proton reference
counting. It can be converted automatically to standard C++ shared_ptr,
unique_ptr etc. with the expected semantics.

The goal is to provide very low overhead access to the proton C library
with the
convenience and safety of C++. There is no additional memory allocation
or
reference counting imposed by the C++ layer. It is possible to mix C
and C++
code.

The C++ documentation includes a tutorial and examples similar to the
python
tutorial/examples.

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@qpid.apache.org
For additional commands, e-mail: users-help@qpid.apache.org