[Tinyos-help] really confuzed about a comment in the file
MultiHopEngineM.nc of tinyos1.x
Renee Azhen
azhen_renee at yahoo.com.cn
Mon Dec 10 22:29:40 PST 2007
dear all:
I am reading the file MultiHopEngineM.nc,
in function mForward, there is a comment:
// Failures at the send level do not cause the seq. number space to be
// rolled back properly. This is somewhat broken.
I am really confuzed about this and could anyone help me to make it clear??
or How to contact the author who write this file?
thanks
Sam
static TOS_MsgPtr mForward(TOS_MsgPtr pMsg, uint8_t id) {
TOS_MsgPtr pNewBuf = pMsg;
if (((iFwdBufHead + 1) % FWD_QUEUE_SIZE) == iFwdBufTail)
return pNewBuf;
if ((call RouteSelect.selectRoute(pMsg,id)) != SUCCESS)
return pNewBuf;
// I am Confuzed here:
// Failures at the send level do not cause the seq. number space to be
// rolled back properly. This is somewhat broken.
if (call SendMsg.send[id](pMsg->addr,pMsg->length,pMsg) == SUCCESS) {
pNewBuf = FwdBufList[iFwdBufHead];
FwdBufList[iFwdBufHead] = pMsg;
iFwdBufHead++; iFwdBufHead %= FWD_QUEUE_SIZE;
}
return pNewBuf;
}
---------------------------------
进入雅虎游戏嘉年华,赢取液晶显示器!
-------------- next part --------------
An HTML attachment was scrubbed...
URL: https://www.millennium.berkeley.edu/pipermail/tinyos-help/attachments/20071211/f0bedbdb/attachment.htm
More information about the Tinyos-help
mailing list