Home
last modified time | relevance | path

Searched refs:nextpdu (Results 1 – 6 of 6) sorted by relevance

/net-tools-3.4.0/libcoap/examples/
Dcoap-server.c453 coap_queue_t *nextpdu; in main() local
501 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()
Detsi_iot_01.c679 coap_queue_t *nextpdu; in main() local
720 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()
Dcoap-rd.c680 coap_queue_t *nextpdu; in main() local
726 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()
Dclient.c1033 coap_queue_t *nextpdu; in main() local
1213 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()
/net-tools-3.4.0/libcoap/src/
Dnet.c758 coap_queue_t *nextpdu; in coap_send_confirmed() local
760 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; local
1667 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);
/net-tools-3.4.0/
Dcoap-client.c1584 coap_queue_t *nextpdu; local
1811 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;