bkoff_nee exit execs
来自「opnet无线网络编程」· 代码 · 共 21 行
TXT
21 行
// energy calculation check
#ifndef OPD_NO_DEBUG
if ((op_sim_time() > wsn_test_time) && (my_address == wsn_test_address || my_address == wsn_test_address_2) )
{
printf("Node <%d> in BKOFF_NEEDED at time %e \n", my_address, op_sim_time());
if (PERFORM_BACKOFF)
printf("Node <%d> is exiting Backoff and NOT calculating E before going to BACKOFF\n", my_address);
else if (SLEEP_NOW)
printf("Node <%d> is exiting Backoff and IS calculating E before going to SLEEP\n", my_address);
else if (TRANSMIT_FRAME)
printf("Node <%d> is exiting Backoff and IS calculating E before going to TRANSMIT\n", my_address);
}
#endif
// Updates energy on final transition out of BACKOFF State
if (TRANSMIT_FRAME)
Update_Energy();
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?