[olsr-dev] Plugin messages
Yann .
(spam-protected)
Tue Dec 14 18:42:05 CET 2004
Hello,
I'm not sure to understand what you ask. But if you want to know how many
bytes are still free in the output buffer, maybe you can do the difference
between *maxmessagesize (obtained with GETD__MAXMESSAGESIZE) and *outputsize
(obtained with GETD__OUTPUTSIZE).
Hope this helps,
Yann
_______________________________________________
Hello everybody,
I'm working with the latest version of OLSR and I'm writing a plugin.
I need to create messages with a message body's size that isn't fixed
and can change over time (depending on various factors).
I've studied the powerstatus plugin but there the situation is simpler
because the message body is fixed in dimension.
I think that the situation (and the things to do) is similar to the
production (for example) of MID messages, where the number of interfaces
declaration is previously unknown...
One of the points is that the function net_outbuffer_bytes_left is not
present in olsr_plugin_io etc. and that function is used in MID messages
generation.
So, any suggestion ?
Thanks in advance for the answer
Bye
Andrea Sini
_______________________________________________
olsr-dev mailing list
(spam-protected)
https://www.olsr.org/mailman/listinfo/olsr-dev
_________________________________________________________________
MSN Actions Solidaires : volontaire à l'étranger
http://www.msn.fr/actionssolidaires/Default.asp?Ath=f
More information about the Olsr-dev
mailing list