Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
45 commits
Select commit Hold shift + click to select a range
1888d19
wip: initial version
Nov 15, 2024
9ae90d6
wip: initial version refactoring to new class
Nov 22, 2024
873b526
wip: initial version refactoring, forgotten classes
Nov 22, 2024
0868f92
wip: initial version refactoring #2
Nov 29, 2024
f158e6f
wip: initial version refactoring #3
Dec 2, 2024
e8de055
wip: initial version refactoring #4
Dec 2, 2024
f942c96
wip: initial version refactoring #5
Dec 2, 2024
7233c5c
wip: initial version refactoring #6
Dec 2, 2024
e0651a0
wip: initial version refactoring #7
Dec 2, 2024
ad9eae9
wip: initial version refactoring n8
Dec 2, 2024
6e58ecb
wip: initial version refactoring n9
Dec 2, 2024
bdc9c29
missing kpvdr repos
Dec 6, 2024
c8c0059
missing kpvdr repos
Dec 6, 2024
6f6a6c0
missing kpvdr repos
Dec 6, 2024
b4b8e8b
missing kpvdr repos rollback
Dec 6, 2024
42a5d87
copr repositories fix
Dec 13, 2024
647d862
transactions now declared within session, connection is accessible fr…
Jan 9, 2025
8d4974e
transactional receiver first version
Jan 9, 2025
260d099
transactional receiver first version fixup
Jan 9, 2025
a815927
tx mode recognition fix
Jan 10, 2025
ab42ae3
sender tx fixup
Jan 10, 2025
6a14ed2
recv tx
Jan 12, 2025
f47e0bf
recv tx
Jan 12, 2025
94636b7
logging
Jan 12, 2025
31e1fe0
fixups and loging
Jan 16, 2025
9b5a967
logging update
Jan 17, 2025
5b6f2b4
fixup
Jan 17, 2025
fdac9a5
fixup
Jan 21, 2025
1118010
fixup
Jan 21, 2025
4ba513f
refactoring
Jan 24, 2025
2d887f6
fixup
Jan 24, 2025
9c5bb5b
refactoring
Jan 27, 2025
a7795bf
refactoring
Jan 27, 2025
010d143
refactoring
Jan 27, 2025
3c34c00
refactoring
Jan 27, 2025
233a3ff
refactoring
Jan 27, 2025
ce7f96a
refactoring
Jan 27, 2025
d80ee5c
align with python
Feb 4, 2025
a49f1db
use session insted of transaction argument in event calls
Mar 18, 2025
72df011
refactoring
Mar 18, 2025
c9ee456
refactoring fixup
Mar 18, 2025
ad85241
todo closed
Mar 18, 2025
5cfb44f
incorporate recent development changes
Aug 20, 2025
2822d88
advance C++ compile standard to c++17
Jul 11, 2024
69e99e7
incorporate recent development changes (af4814e1)
Sep 16, 2025
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
2 changes: 1 addition & 1 deletion BUILD.md
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ This project can be built either with CMake, or with CMake executed by Bazel.
-DProton_DIR=...
-DProtonCpp_DIR=...
-DENABLE_QPID_PROTON=ON
-DCMAKE_USER_C_FLAGS='-std=c++11'
-DCMAKE_USER_C_FLAGS='-std=c++17'

### Bazel command line

Expand Down
4 changes: 2 additions & 2 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ cmake_minimum_required(VERSION 3.20.0)
project(cli-cpp)
enable_language(CXX)

set(CMAKE_CXX_STANDARD 11)
set(CMAKE_CXX_STANDARD 17)
set(CMAKE_CXX_STANDARD_REQUIRED ON)
set(CMAKE_CXX_EXTENSIONS OFF)

Expand Down Expand Up @@ -97,7 +97,7 @@ if(NOT CMAKE_BUILD_TYPE)
endif(NOT CMAKE_BUILD_TYPE)

if (CMAKE_COMPILER_IS_GNUCXX)
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -std=c++11")
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -std=c++17")

set(CMAKE_C_FLAGS "-Wall -Wshadow -fdiagnostics-color=auto" CACHE STRING
"Flags used by the compiler during all build types." FORCE
Expand Down
4 changes: 4 additions & 0 deletions src/api/qpid-proton/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -61,10 +61,14 @@ add_library(
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
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