<html><head><style type="text/css"><!-- DIV {margin:0px;} --></style></head><body><div style="font-family:times new roman, new york, times, serif;font-size:12pt"><div style="font-family: times new roman,new york,times,serif; font-size: 12pt;">Hi,<br>I have changed many ways to fix the errors.<br>Firstly, if i place : wait_until_xrl_router_is_ready(...), it produces the errors: Assertion ..._cb==true failed.<br>Secondly, not using wait_until_xrl_router_is_ready(...), i have called only _ospf.get_eventloop().run() and next the xrl command (_xrl_ospf_loopfree.send_notify_lsdb_change). The following errors occur: [xrl_router.cc send ] NO FINDER.<br>More than that, I have placed the code source not only in area_router.cc but also in xrl_io.cc and xrl_target.cc (in these cases, i want to use XrlRouter and EventLoop of the two classes). The result is: error NO FINDER.<br>I don't really understand why?<br>Thank you so much for explaining me<br>NGuyen Van
Nam<br><br>///----------------------------------------------------------------------<br>try<br> {<br> //EventLoop eventloop;<br><br> <br> XrlStdRouter xrl_router(_ospf.get_eventloop(), "area_router");<br> <br> //debug_msg("Waiting for router");<br> xrl_router.finalize();<br><br> XrlOspfLoopfreeV0p1Client xrl_ospf_loopfree_client(&xrl_router);<br> <br> <br> //cout<<"Test"<<endl;<br> //wait_until_xrl_router_is_ready(_ospf.get_eventloop(), xrl_router);<br> //debug_msg("\n");<br> //event loop run<br> //cout<<"Test1"<<endl;<br> <br> bool
success=false;<br> <br> while (!success)<br> {<br><br> _ospf.get_eventloop().run(); <br> success=xrl_ospf_loopfree_client.send_reveive_lsdb_change("ospf_loopfree",<br> callback(this,&AreaRouter::send_reveive_lsdb_change_cb ));<br> <br> <br> }<br><br> //if (success) cout<< "LSDB change"<<endl;<br> //}<br> //success=false;<br> }<br> catch (...) {<br>
xorp_catch_standard_exceptions(); }<br>//----------------------------------------------------------------------------------------------------------------------------------<br><br><div style="font-family: arial,helvetica,sans-serif; font-size: 13px;">----- Original Message ----<br>From: Bruce M Simpson <bms@incunabulum.net><br>To: Nguyen Van Nam <van_nam_78@yahoo.com><br>Cc: xorp-hackers <xorp-hackers@icir.org><br>Sent: Tuesday, July 29, 2008 10:54:56 PM<br>Subject: Re: [Xorp-hackers] Problem with writing a xorp process<br><br>
Hi,<br><br>Please ignore my earlier comment about multiple callbacks, as it doesn't <br>apply here.<br><br>Nguyen Van Nam wrote:<br>> Hi,<br>> I use telnet localhost 19999 to verify xorp_finder. It is running. But <br>> the error still occurs.<br>> Note that: my source code is place at the module <a target="_blank" href="http://area_router.cc">area_router.cc</a>.<br>> So what should I do now?<br><br>Based on the screenshot you've posted,and the data so far, it seems as <br>though the xorp_ospfv2 process is either not processing event callbacks <br>or is not returning from them.<br><br>Could you have introduced anything into the code which results in the <br>EventLoop not being called? This seems to be the most likely root cause <br>of the problem you're seeing.<br><br>thanks,<br>BMS<br></div></div></div><br>
</body></html>