[Xorp-hackers] Fw: Problem with writing a xorp prorocess

Nguyen Van Nam van_nam_78 at yahoo.com
Tue Jul 29 02:18:26 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 (in the file attached).

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/19877ede/attachment-0001.html 
-------------- next part --------------
A non-text attachment was scrubbed...
Name: Screenshot.png
Type: image/png
Size: 58109 bytes
Desc: not available
Url : http://mailman.ICSI.Berkeley.EDU/pipermail/xorp-hackers/attachments/20080729/19877ede/attachment-0001.bin 


More information about the Xorp-hackers mailing list