On Tue, Mar 2, 2010 at 8:41 AM, Xiaohui Liu <[email protected]> wrote:
> Hi,
>
> I have some questions regarding the event handler of SubSend.sendDone in CTP
> forwarding engine:
>   event void SubSend.sendDone(message_t* msg, error_t error) {
> ...
>     if (qe == NULL || qe->msg != msg) {
>       dbg("Forwarder", "%s: BUG: not our packet (%p != %p)!\n",
> __FUNCTION__, msg, qe->msg);
>       sendDoneBug();      // Not our packet, something is very wrong...
>       return;
> //Why CTP engine gives up because of just one error, even it's serious? Why
> not recover by resetting "sending" to FALSE and try to repost sendTask()?
>     }

Depending on the application and the type of error you typically
encounter in your deployment, you might want to do something like that
to make CTP more robust. So it is a good idea but it comes down to
code overhead/complexity and robustness tradeoff and the choice might
be different depending on your goals.

- om_p

_______________________________________________
Tinyos-help mailing list
[email protected]
https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help

Reply via email to