summaryrefslogtreecommitdiff
path: root/qpid/cpp/src/tests/qpid_send.cpp
diff options
context:
space:
mode:
authorGordon Sim <gsim@apache.org>2010-03-29 19:21:26 +0000
committerGordon Sim <gsim@apache.org>2010-03-29 19:21:26 +0000
commitbeb68a5d1b8d74f4c53299c81911a3ad85011f17 (patch)
tree2d444776e69aed493d522d3efb90990570f42f0d /qpid/cpp/src/tests/qpid_send.cpp
parent3d990371a345d1760cebd7dc0e47365034cfe2d4 (diff)
downloadqpid-python-beb68a5d1b8d74f4c53299c81911a3ad85011f17.tar.gz
QPID-664: renamed headers as properties (to match python); added priority
git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk@928878 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'qpid/cpp/src/tests/qpid_send.cpp')
-rw-r--r--qpid/cpp/src/tests/qpid_send.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/qpid/cpp/src/tests/qpid_send.cpp b/qpid/cpp/src/tests/qpid_send.cpp
index a75d21e0a5..564007958e 100644
--- a/qpid/cpp/src/tests/qpid_send.cpp
+++ b/qpid/cpp/src/tests/qpid_send.cpp
@@ -145,9 +145,9 @@ struct Options : public qpid::Options
std::string name;
std::string value;
if (nameval(property, name, value)) {
- message.getHeaders()[name] = value;
+ message.getProperties()[name] = value;
} else {
- message.getHeaders()[name] = Variant();
+ message.getProperties()[name] = Variant();
}
}
@@ -203,7 +203,7 @@ int main(int argc, char ** argv)
uint txCount = 0;
while (getline(std::cin, content)) {
msg.setContent(content);
- msg.getHeaders()["sn"] = ++sent;
+ msg.getProperties()["sn"] = ++sent;
sender.send(msg);
if (opts.tx && (sent % opts.tx == 0)) {
if (opts.rollbackFrequency && (++txCount % opts.rollbackFrequency == 0)) {
@@ -214,7 +214,7 @@ int main(int argc, char ** argv)
}
}
for (uint i = opts.sendEos; i > 0; --i) {
- msg.getHeaders()["sn"] = ++sent;
+ msg.getProperties()["sn"] = ++sent;
msg.setContent(EOS);//TODO: add in ability to send digest or similar
sender.send(msg);
}