seems to work; however 2 suspicious things:
1. it has to wait for more than 200ms for sync to finish (after the second guy publishes)
2. sometimes the guy who publishes data sends data interests for his own data, sometimes not
diff --git a/ccnx/sync-app-socket.cc b/ccnx/sync-app-socket.cc
index ce65674..cc97fbf 100644
--- a/ccnx/sync-app-socket.cc
+++ b/ccnx/sync-app-socket.cc
@@ -61,6 +61,7 @@
uint32_t sequence = getNextSeq(prefix, session);
ostringstream contentNameWithSeqno;
contentNameWithSeqno << prefix << "/" << session << "/" << sequence;
+
m_ccnxHandle->publishRawData (contentNameWithSeqno.str (), buf, len, freshness);
SeqNo s(session, sequence + 1);
@@ -82,6 +83,7 @@
{
ostringstream interestName;
interestName << prefix << "/" << seq.getSession() << "/" << seq.getSeq();
+ //std::cout << "Socket " << this << " Send Interest <" << interestName.str() << "> for raw data " << endl;
m_ccnxHandle->sendInterest(interestName.str(), callback, retry);
}