[PATCH 2/3] [mama] Proxy example fix


Ian Bell <IBell@...>
 

From b3b03bec01b3e67d344879dfb5f49d2a03b01297 Mon Sep 17 00:00:00 2001

Message-Id: <b3b03bec01b3e67d344879dfb5f49d2a03b01297.1348734020.git.ibell@...>

In-Reply-To: <332a4a960eb7292e9545e9f2856f1212848cfd8b.1348734020.git.ibell@...>

References: <332a4a960eb7292e9545e9f2856f1212848cfd8b.1348734020.git.ibell@...>

From: Ian Bell <ibell@...>

Date: Thu, 27 Sep 2012 09:17:33 +0100

Subject: [PATCH 2/3] [mama] Proxy example fix

 

Modified this example program to take advantage of the changes in

the DQPublisherManager.  Added sendtime adn removed need to avoid

modifying the message.

 

Signed-off-by: Ian Bell <ibell@...>

---

mama/c_cpp/src/examples/c/mamaproxyc.c |    5 +----

1 file changed, 1 insertion(+), 4 deletions(-)

 

diff --git a/mama/c_cpp/src/examples/c/mamaproxyc.c b/mama/c_cpp/src/examples/c/mamaproxyc.c

index ee8b348..40ebbb5 100644

--- a/mama/c_cpp/src/examples/c/mamaproxyc.c

+++ b/mama/c_cpp/src/examples/c/mamaproxyc.c

@@ -182,10 +182,7 @@ static void createPublisher ()

                                    "_MD",

                                    NULL);

-              // Turn off updateing of the messages as incoming messages

-              // from FH already have seqnum and senderid

-              mamaDQPublisherManager_setSeqNum(gDQPubManager, 0);

-              mamaDQPublisherManager_setSenderId(gDQPubManager, 0);

+    mamaDQPublisherManager_enableSendTime(gDQPubManager, 1);

     if (gSendSync)

     {

         mamaTimer_create (&gSyncTimer, gPubDefaultQueue, syncCallback, 15, gDQPubManager);

--

1.7.9.5

 




Please consider the environment before printing this e-mail.

This e-mail may contain confidential and/or privileged information. If you are not the intended recipient or have received this e-mail in error, please advise the sender immediately by reply e-mail and delete this message and any attachments without retaining a copy.

Any unauthorised copying, disclosure or distribution of the material in this e-mail is strictly forbidden.