<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<style type="text/css" style="display:none;"><!-- P {margin-top:0;margin-bottom:0;} --></style>
</head>
<body dir="ltr">
<div id="divtagdefaultwrapper" style="font-size:12pt;color:#000000;font-family:Calibri,Helvetica,sans-serif;" dir="ltr">
<p></p>
<div>Dear all,</div>
<div><br>
</div>
<div>I am trying to adopt NDND(https://github.com/Zhiyi-Zhang/NDND) and PSync.</div>
<div><br>
</div>
<div>I want to discover NDN neighbor hosts which are on the same network. At the same time, I have a Psync producer to publish data and PSync consumer to consume.</div>
<div><br>
</div>
<div>Both of these are seperate class objects have Face.processEvents() callback member function. I am invoking this function from separate threads.</div>
<div><br>
</div>
<div>´´´</div>
<div>std::thread th1(&NDNDClient::run_face, client);</div>
<div>std::thread th2(&PSyncPartialProducer::run_face, simple_producer);</div>
<div>std::thread th3(&PSyncPartialConsumer::run_face, simple_consumer);</div>
<div><br>
</div>
<div>```</div>
<div><br>
</div>
<div>If I do not invoke th1 thread then both producer and consumer works properly. But when I am running th1 then I am getting the following error:</div>
<div><br>
</div>
<div>libc++abi: terminating with uncaught exception of type boost::exception_detail::clone_impl<boost::exception_detail::error_info_injector<psync::ProducerBase::Error> >: authorization rejected</div>
<div><br>
</div>
<div>here is the client code which I have adopted to my codebase:</div>
<div><br>
</div>
<div>https://github.com/Zhiyi-Zhang/NDND/blob/master/nd-client.cpp</div>
<div><br>
</div>
<div>What is it I am missing? Can anybody explain to me how to solve the issue?</div>
<div><br>
</div>
<div>Thank you in advance.</div>
<br>
Best regards,<br>
T M Rayhan Gias
<p></p>
</div>
</body>
</html>