[Xorp-hackers] Problem with writing a xorp process

Nguyen Van Nam van_nam_78 at yahoo.com
Tue Jul 29 02:22:16 PDT 2008





----- Forwarded Message ----
From: Nguyen Van Nam <van_nam_78 at yahoo.com>
To: xorp-hackers at icir.org
Sent: Tuesday, July 29, 2008 11:16:20 AM
Subject: Problem with writing a xorp prorocess


Hello,
I have written a code source as in the following to detect LSDB change in OSPF protocol.
XrlStdRouter xrl_router(_ospf.get_eventloop(), "ospf_loopfree");
    
        //debug_msg("Waiting for router");
        xrl_router.finalize();

    XrlOspfLoopfreeV0p1Client xrl_ospf_loopfree_client(&xrl_router);
    
    
        wait_until_xrl_router_is_ready(_ospf.get_eventloop(), xrl_router);
        //debug_msg("\n");
    //event loop run

    
    bool success=false;
     
       
          success=xrl_ospf_loopfree_client.send_reveive_lsdb_change("ospf_loopfree",
                            callback(this,&AreaRouter::send_reveive_lsdb_change_cb ));
        

    if (success) cout<< "LSDB change"<<endl;
    }
        catch (...) {
    xorp_catch_standard_exceptions(); }

But I found the errors:
BufferAsyncReader::annouce_event(BufferedAsyncReader::Event): Assertion _cb.is_only()==true failed 

Could you please help me to fix these?
Thanks so much

Nguyen Van Nam 


      
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mailman.ICSI.Berkeley.EDU/pipermail/xorp-hackers/attachments/20080729/1fdb8168/attachment.html 


More information about the Xorp-hackers mailing list