Searched refs:nextpdu (Results 1 – 6 of 6) sorted by relevance
453 coap_queue_t *nextpdu; in main() local501 nextpdu = coap_peek_next( ctx ); in main()504 while (nextpdu && nextpdu->t <= now - ctx->sendqueue_basetime) { in main()506 nextpdu = coap_peek_next( ctx ); in main()509 if ( nextpdu && nextpdu->t <= COAP_RESOURCE_CHECK_TIME ) { in main()511 tv.tv_usec = ((nextpdu->t) % COAP_TICKS_PER_SECOND) * 1000000 / COAP_TICKS_PER_SECOND; in main()512 tv.tv_sec = (nextpdu->t) / COAP_TICKS_PER_SECOND; in main()
679 coap_queue_t *nextpdu; in main() local720 nextpdu = coap_peek_next( ctx ); in main()723 while ( nextpdu && nextpdu->t <= now ) { in main()725 nextpdu = coap_peek_next( ctx ); in main()728 if ( nextpdu && nextpdu->t <= now + COAP_RESOURCE_CHECK_TIME_SEC ) { in main()730 tv.tv_usec = ((nextpdu->t - now) % COAP_TICKS_PER_SECOND) * 1000000 / COAP_TICKS_PER_SECOND; in main()731 tv.tv_sec = (nextpdu->t - now) / COAP_TICKS_PER_SECOND; in main()
680 coap_queue_t *nextpdu; in main() local726 nextpdu = coap_peek_next( ctx ); in main()729 while ( nextpdu && nextpdu->t <= now ) { in main()731 nextpdu = coap_peek_next( ctx ); in main()734 if ( nextpdu && nextpdu->t <= now + COAP_RESOURCE_CHECK_TIME ) { in main()737 tv.tv_usec = ((nextpdu->t - now) % COAP_TICKS_PER_SECOND) * 1000000 / COAP_TICKS_PER_SECOND; in main()738 tv.tv_sec = (nextpdu->t - now) / COAP_TICKS_PER_SECOND; in main()
1033 coap_queue_t *nextpdu; in main() local1213 nextpdu = coap_peek_next( ctx ); in main()1216 while (nextpdu && nextpdu->t <= now - ctx->sendqueue_basetime) { in main()1218 nextpdu = coap_peek_next( ctx ); in main()1221 if (nextpdu && nextpdu->t < min(obs_wait ? obs_wait : max_wait, max_wait) - now) { in main()1223 tv.tv_usec = ((nextpdu->t) % COAP_TICKS_PER_SECOND) * 1000000 / COAP_TICKS_PER_SECOND; in main()1224 tv.tv_sec = (nextpdu->t) / COAP_TICKS_PER_SECOND; in main()
758 coap_queue_t *nextpdu; in coap_send_confirmed() local760 nextpdu = coap_peek_next(context); in coap_send_confirmed()761 assert(nextpdu); /* we have just inserted a node */ in coap_send_confirmed()765 etimer_set(&context->retransmit_timer, nextpdu->t); in coap_send_confirmed()1656 coap_queue_t *nextpdu; local1667 nextpdu = coap_peek_next(&the_coap_context);1670 while (nextpdu && nextpdu->t <= now) {1672 nextpdu = coap_peek_next(&the_coap_context);1677 nextpdu ? nextpdu->t - now : 0xFFFF);
1584 coap_queue_t *nextpdu; local1811 nextpdu = coap_peek_next(coap_ctx);1814 while (nextpdu && nextpdu->t <=1817 nextpdu = coap_peek_next(coap_ctx);1820 if (nextpdu && nextpdu->t < min(obs_wait ? obs_wait : max_wait,1822 tv.tv_usec = ((nextpdu->t) % COAP_TICKS_PER_SECOND) *1824 tv.tv_sec = (nextpdu->t) / COAP_TICKS_PER_SECOND;