Hi Remy!

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.


Tot kijk
    Matthias

-- 
Fon: +49-(0)70 0770 07770       http://web.amessage.info
HAM: DB1MW                      xmpp:[EMAIL PROTECTED]

Attachment: signature.asc
Description: Digital signature

_______________________________________________
jdev mailing list
[EMAIL PROTECTED]
https://jabberstudio.org/mailman/listinfo/jdev

Reply via email to