Lines Matching defs:context
47 coap_lwip_set_input_wait_handler(coap_context_t *context,
50 context->input_wait = handler;
51 context->input_arg = input_arg;
56 coap_context_t *context = (coap_context_t *)arg;
62 timeout = coap_io_prepare_io(context, NULL, 0, &num_sockets, before);
63 if (context->timer_configured) {
64 sys_untimeout(coap_io_process_timeout, (void *)context);
65 context->timer_configured = 0;
75 sys_timeout(timeout, coap_io_process_timeout, context);
76 context->timer_configured = 1;
80 coap_io_process(coap_context_t *context, uint32_t timeout_ms) {
87 timeout = coap_io_prepare_io(context, NULL, 0, &num_sockets, before);
95 if (context->timer_configured) {
96 sys_untimeout(coap_io_process_timeout, (void *)context);
97 context->timer_configured = 0;
107 sys_timeout(timeout, coap_io_process_timeout, context);
108 context->timer_configured = 1;
112 if (context->input_wait) {
113 context->input_wait(context->input_arg, timeout);
181 coap_dispatch(session->context, session, pdu);
269 coap_dispatch(ep->context, session, pdu);