[Xorp-hackers] XML-RPC for retrieving information on the router

Bruce Simpson bms at incunabulum.net
Fri Nov 6 05:25:31 PST 2009


Luca Belforte wrote:
> Thanks Bruce for your reply.
>
> I will try to modify the code of show_routes.cc to get a xml file to
> send by rpc ^^".
>
> Just is not easy to understand all the mechanism of XORP XRL.
> Perhaps have you a document who explain it? (i read the documents on
> XORP web site, but they not really help me)
>   

There is a document on libxipc in PDF format on xorp.org (from an older 
tree), which you've probably seen. Normally, developers don't
ever need to touch XRLs directly.

I recently checked in a script, skel-gen, to the community branch, which 
will take a XORP .tgt file and generate skeleton server code. If you're 
writing a XORP service from scratch, this should help cut down the 
amount of manual hacking, just to bootstrap a new service.

I agree, the internals of libxipc are not so well documented. It's 
something I'm having to make notes on as I progress. There are a lot of 
classes in there which exist just to wrap asynchronous operations. This 
isn't something which threading would necessarily 'fix'.

We're going to be sticking to the notion of XRL targets for some time, 
I'm aiming to touch as little code as possible to get Thrift up and running.

thanks,
BMS



More information about the Xorp-hackers mailing list