Lines Matching refs:coap_ctx

373 	coap_context_t *coap_ctx;  member
768 pdu = coap_new_request(user_data->coap_ctx, in create_pdu()
811 tid = coap_send_confirmed(user_data->coap_ctx, in send_packets()
812 user_data->coap_ctx->endpoint, in send_packets()
816 tid = coap_send(user_data->coap_ctx, in send_packets()
817 user_data->coap_ctx->endpoint, in send_packets()
861 tid = coap_send_confirmed(user_data->coap_ctx, in try_send()
862 user_data->coap_ctx->endpoint, in try_send()
866 tid = coap_send(user_data->coap_ctx, in try_send()
867 user_data->coap_ctx->endpoint, in try_send()
951 if (dispatch_data(read_data, read_len, user_data->coap_ctx, in read_from_peer()
1079 return coap_read(user_data->coap_ctx); in read_data_from_net()
1099 static bool is_our_own(coap_context_t *coap_ctx, in is_our_own() argument
1108 coap_send_rst(coap_ctx, coap_ctx->endpoint, remote, in is_our_own()
1204 static coap_pdu_t *read_blocks(coap_context_t *coap_ctx, in read_blocks() argument
1226 pdu = coap_new_request(coap_ctx, method, NULL, NULL, 0, in read_blocks()
1240 tid = coap_send_confirmed(coap_ctx, in read_blocks()
1245 tid = coap_send(coap_ctx, in read_blocks()
1335 static void coap_message_handler(struct coap_context_t *coap_ctx, in coap_message_handler() argument
1354 if (!is_our_own(coap_ctx, remote, sent, received)) in coap_message_handler()
1359 coap_send_ack(coap_ctx, endpoint, remote, received); in coap_message_handler()
1379 pdu = read_blocks(coap_ctx, in coap_message_handler()
1408 pdu = coap_new_request(coap_ctx, method, NULL, in coap_message_handler()
1434 tid = coap_send_confirmed(coap_ctx, in coap_message_handler()
1437 tid = coap_send(coap_ctx, in coap_message_handler()
1475 if (pdu && coap_send(coap_ctx, endpoint, in coap_message_handler()
1582 coap_context_t *coap_ctx; local
1706 coap_ctx = get_coap_context(addr_recv, addr_len);
1707 if (!coap_ctx) {
1716 close(coap_ctx->endpoint->handle.fd);
1745 user_data.coap_ctx = coap_ctx;
1746 coap_ctx->endpoint->handle.fd = fd;
1755 coap_register_option(coap_ctx, COAP_OPTION_BLOCK2);
1756 coap_register_response_handler(coap_ctx, coap_message_handler);
1811 nextpdu = coap_peek_next(coap_ctx);
1815 (now - coap_ctx->sendqueue_basetime)) {
1816 coap_retransmit(coap_ctx, coap_pop_next(coap_ctx));
1817 nextpdu = coap_peek_next(coap_ctx);