[Xorp-hackers] Migrating Routing Process to XORP

Rafael Paoliello Guimaraes rafael.guimaraes@ac.upc.es
Wed, 03 Nov 2004 17:31:29 +0100


Hello,

I am trying to migrate a routing process to XORP but I am having some 
problems on understanding somethings. I have already mapped in the 
routing process code everywhere it uses sockets to send/receive control 
packets and the first thing I want to do is to migrate this 
functionality to XORP. But I confess that I am a bit lost. At first I 
though that I should use the XrlSocketServer class for this, but looking 
at the RIP example code I found no reference to this class. So, what how 
should I do it?

Maybe it could be easier to understand from an example. The original 
code is based on a "select", i.e., it creates a socket server for 
listening the interface and an infinite loop keeps monitoring the 
arrival of packets (through a select) so that they can be processed. How 
can I convert this kind of construction to go through XORP?

Cheers,
Rafael