[jdev] router component
m at tthias.net
Wed Jul 7 14:10:59 CDT 2004
Remy HAREL schrieb am 2004-06-22 16:51:56:
> I'm working on the file "router.c", in the router component. I would
> like to log the entire value of the nad, in the _router_sx_callback
> function to study it in a first time. I've found this function header :
> void nad_print(nad_t nad, int elem, char **xml, int *len)
> but I don't understand why I would have to specify 'elem' and how I
> could know the length "len". I would like to print all the nad, not just
> one elem. And does someone know how I could get the value of 'len' ?
Element is there because it might be that you do not want to serialize
the complete NAD. Everything inside the element is serialized as well.
Therefore if you pass "0" as the element you will get the serialization
of the full nad.
In len you get passed _back_ the length of the serialized NAD.
Fon: +49-(0)70 0770 07770 http://web.amessage.info
HAM: DB1MW xmpp:mawis at amessage.info
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Size: 189 bytes
Desc: Digital signature
More information about the JDev