Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
55 commits
Select commit Hold shift + click to select a range
c5d6add
wip: initial version
Nov 15, 2024
4b8c34e
wip: initial version refactoring to new class
Nov 22, 2024
23a6b8f
wip: initial version refactoring, forgotten classes
Nov 22, 2024
dde3d2c
wip: initial version refactoring #2
Nov 29, 2024
b63c09c
wip: initial version refactoring #3
Dec 2, 2024
7b72d73
wip: initial version refactoring #4
Dec 2, 2024
fb428ce
wip: initial version refactoring #5
Dec 2, 2024
cbf9343
wip: initial version refactoring #6
Dec 2, 2024
ca9653c
wip: initial version refactoring #7
Dec 2, 2024
4ee6a3a
wip: initial version refactoring n8
Dec 2, 2024
f7524a9
wip: initial version refactoring n9
Dec 2, 2024
05121e3
missing kpvdr repos
Dec 6, 2024
b77b9f6
missing kpvdr repos
Dec 6, 2024
04fa637
missing kpvdr repos
Dec 6, 2024
bbe36b8
missing kpvdr repos rollback
Dec 6, 2024
43cebc9
copr repositories fix
Dec 13, 2024
5b5143e
transactions now declared within session, connection is accessible fr…
Jan 9, 2025
29da041
transactional receiver first version
Jan 9, 2025
148d4c8
transactional receiver first version fixup
Jan 9, 2025
b49bc71
tx mode recognition fix
Jan 10, 2025
7bb328c
sender tx fixup
Jan 10, 2025
c7d3721
recv tx
Jan 12, 2025
e09b55a
recv tx
Jan 12, 2025
eb0573a
logging
Jan 12, 2025
2b2e8e4
fixups and loging
Jan 16, 2025
9553804
logging update
Jan 17, 2025
51c3657
fixup
Jan 17, 2025
9530594
fixup
Jan 21, 2025
78e9771
fixup
Jan 21, 2025
9c04a4f
refactoring
Jan 24, 2025
9f8e6c0
fixup
Jan 24, 2025
4fa64fb
refactoring
Jan 27, 2025
ff434b3
refactoring
Jan 27, 2025
3030f24
refactoring
Jan 27, 2025
34518f0
refactoring
Jan 27, 2025
615681d
refactoring
Jan 27, 2025
7b669e1
refactoring
Jan 27, 2025
e1fcc1a
align with python
Feb 4, 2025
f85f399
use session insted of transaction argument in event calls
Mar 18, 2025
e9679ea
refactoring
Mar 18, 2025
e084a58
refactoring fixup
Mar 18, 2025
2136703
todo closed
Mar 18, 2025
4ade04f
incorporate recent development changes
Aug 20, 2025
5c3e419
incorporate recent development changes (af4814e1)
Sep 16, 2025
22180a8
get rid of client dep on transaction_handler, handled in session now
Oct 23, 2025
0fb2af6
incorporate recent development changes (3dcb6a78)
Oct 30, 2025
7ddd974
credit handling fix
Nov 5, 2025
cb51f11
passing tx-size fix, default batch size set to 10
Nov 6, 2025
6bfe90d
default endloop tx action is none
Nov 6, 2025
f798dd2
credit handling fix#2
Nov 13, 2025
19f3cb3
incorporate recent development changes (d21f064a)
Nov 28, 2025
2706640
fix cmake warnings
Nov 28, 2025
fe22009
cleanup reactive code from exit calls
Jan 20, 2026
e473912
transactional accept calls
Jan 22, 2026
702a580
explicitly release the rolled back messages due to api change
Apr 1, 2026
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 9 additions & 5 deletions src/api/qpid-proton/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
PROJECT(dtests-proton-cpp)

set(PROTON_DIR /usr CACHE String "QPID Proton base directory")
set(PROTON_DIR /usr CACHE STRING "QPID Proton base directory")

include_directories(
${PROTON_DIR}/include
Expand All @@ -27,10 +27,10 @@ else ()
endif ()


cmake_policy(SET CMP0003 OLD)
cmake_policy(SET CMP0003 NEW)
add_library(
dtests-proton-common

common/ModernClient.cpp
${MODERNClient_tracing_src}
)
Expand All @@ -53,18 +53,22 @@ else (WIN32)
)
endif (WIN32)

cmake_policy(SET CMP0003 OLD)
cmake_policy(SET CMP0003 NEW)
add_library(
dtests-proton-reactor

reactor/formatter/ReactorDecoder.cpp
reactor/handler/CommonHandler.cpp
reactor/handler/ConnectorHandler.cpp
reactor/handler/SenderHandler.cpp
reactor/handler/TxSenderHandler.cpp
reactor/handler/ReceiverHandler.cpp
reactor/handler/TxReceiverHandler.cpp
reactor/ConnectingClient.cpp
reactor/SendingClient.cpp
reactor/TxSendingClient.cpp
reactor/ReceivingClient.cpp
reactor/TxReceivingClient.cpp
)

target_link_libraries(
Expand Down Expand Up @@ -100,7 +104,7 @@ set(proton-reactor-clients
)

foreach(client ${proton-reactor-clients})
cmake_policy(SET CMP0003 OLD)
cmake_policy(SET CMP0003 NEW)
add_executable(${client}
clients/${client}.cpp
)
Expand Down
24 changes: 20 additions & 4 deletions src/api/qpid-proton/clients/aac3_receiver.cpp
Original file line number Diff line number Diff line change
@@ -1,17 +1,33 @@
/*
* aac1_sender.cpp
* aac3_sender.cpp
*
* Created on: Apr 14, 2015
* Author: opiske
*/

#include <reactor/ReceivingClient.h>
#include <reactor/TxReceivingClient.h>

using dtests::proton::reactor::ReceivingClient;
using dtests::proton::reactor::TxReceivingClient;

int main(int argc, char** argv)
{
ReceivingClient client = ReceivingClient();
int i = 0;
bool tx_mode = false;
std::string tx_opt = "--tx-";
while (i < argc) {
if (std::string(argv[i]).rfind("--tx-", 0) == 0) { // pos=0 limits the search to the prefix
tx_mode = true;
break;
}
i++;
}

return client.run(argc, argv);
if (tx_mode) {
TxReceivingClient client = TxReceivingClient();
return client.run(argc, argv);
} else {
ReceivingClient client = ReceivingClient();
return client.run(argc, argv);
}
}
32 changes: 21 additions & 11 deletions src/api/qpid-proton/clients/aac3_sender.cpp
Original file line number Diff line number Diff line change
@@ -1,23 +1,33 @@
/*
* aac1_sender.cpp
* aac3_sender.cpp
*
* Created on: Apr 14, 2015
* Author: opiske
*/
#include <cstdlib>

#include <reactor/SendingClient.h>
#include <reactor/TxSendingClient.h>

using dtests::proton::reactor::SendingClient;
using dtests::proton::reactor::TxSendingClient;

int main(int argc, char** argv)
{
SendingClient client = SendingClient();

return client.run(argc, argv);

int i = 0;
bool tx_mode = false;
std::string tx_opt = "--tx-";
while (i < argc) {
if (std::string(argv[i]).rfind("--tx-", 0) == 0) { // pos=0 limits the search to the prefix
tx_mode = true;
break;
}
i++;
}

if (tx_mode) {
TxSendingClient client = TxSendingClient();
return client.run(argc, argv);
} else {
SendingClient client = SendingClient();
return client.run(argc, argv);
}
}




1 change: 1 addition & 0 deletions src/api/qpid-proton/reactor/ReceivingClient.h
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,7 @@ class ReceivingClient : public ModernClient {
private:
typedef ModernClient super;

protected:
void setMessageOptions(const OptionsSetter &setter, message &msg) const;

};
Expand Down
1 change: 1 addition & 0 deletions src/api/qpid-proton/reactor/SendingClient.h
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,7 @@ class SendingClient : public ModernClient {
private:
typedef ModernClient super;

protected:
void setMessageOptions(const OptionsSetter &setter, message &msg) const;
bool nameVal(const string& in, string& name, string& value, string& separator) const;
void setMessageProperty(message *msg, const string &property) const;
Expand Down
Loading
Loading