I believe the tracker is returned when you call send for a particular
message, and that same tracker is then passed when the
on_tracker_accept etc methods are called after the delivery is
accepted etc. You would use the tracker itself to correlate to a
particular sent message however you wish to.

That package you reference looks like 0.22.0, which is very old now. I
know there are packages of newer releases published at
https://launchpad.net/~qpid/+archive/ubuntu/released, something to
consider.

On Thu, 10 Jun 2021 at 11:09, Xu Wang <wilyxe...@gmail.com> wrote:
>
> Hi, proton developers,
>
> I'm using the qpid-proton-cpp library from ubuntu packages[1], and I
> was wondering as for the interface `on_tracker_accept()` inside the
> proton::messaging_handler, how can we learn which message tracker has
> been accepted? I'm planning to integrate some callbacks for sent
> messages.
>
> From the provided examples[1][2], the sender client only records how
> many times `on_tracker_accept()` is called, however, [4] tells that we
> can track a specific message is accepted or not. So how should a
> sender invoke a specific callback for the sent message when dealing
> with different  tracker states?
>
> Please correct me if I'm wrong. And Thanks in advance.
>
> Best,
> Xu
>
> [1] https://packages.ubuntu.com/focal/libqpid-proton-cpp12
> [2] 
> https://github.com/apache/qpid-proton/blob/main/cpp/examples/direct_send.cpp#L75
> [3] 
> https://github.com/apache/qpid-proton/blob/main/cpp/examples/simple_send.cpp#L81
> [4] 
> https://qpid.apache.org/releases/qpid-proton-0.34.0/proton/cpp/api/overview_page.html#autotoc_md8
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscr...@qpid.apache.org
> For additional commands, e-mail: users-h...@qpid.apache.org
>

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

Reply via email to