Skip to content

Instantly share code, notes, and snippets.

@anilj1
anilj1 / no_interest_recv.cpp
Created May 13, 2015 21:50
Producer not receiving Interest, when starts a new thread.
void
Producer::run() {
// Read the database value for the sensor Id and update the serving router
// Id if the distance is less than the existing one.
std::string ldb_uri = getConfig().getLocationDb().getDbUri();
m_face.setInterestFilter("/",
bind(&Producer::onInterest, this, _1, _2),
RegisterPrefixSuccessCallback(),