Lines Matching refs:async
50 static coap_async_state_t *async = NULL; variable
222 if (async) { in hnd_get_async()
223 if (async->id != request->hdr->id) { in hnd_get_async()
240 async = coap_register_async(ctx, in hnd_get_async()
256 if (!async || now < async->created + (unsigned long)async->appdata) in check_async()
259 response = coap_pdu_init(async->flags & COAP_ASYNC_CONFIRM in check_async()
265 async->appdata = in check_async()
266 (void *)((unsigned long)async->appdata + 15 * COAP_TICKS_PER_SECOND); in check_async()
272 if (async->tokenlen) in check_async()
273 coap_add_token(response, async->tokenlen, async->token); in check_async()
277 if (coap_send(ctx, local_if, &async->peer, response) == COAP_INVALID_TID) { in check_async()
282 coap_remove_async(ctx, async->id, &tmp); in check_async()
283 coap_free_async(async); in check_async()
284 async = NULL; in check_async()