Lines Matching refs:coap_context_t
115 static void coap_retransmittimer_restart(coap_context_t *ctx);
141 coap_context_t the_coap_context;
157 coap_adjust_basetime(coap_context_t *ctx, coap_tick_t now) { in coap_adjust_basetime()
274 coap_peek_next(coap_context_t *context) { in coap_peek_next()
282 coap_pop_next(coap_context_t *context) { in coap_pop_next()
388 int coap_context_set_psk(coap_context_t *ctx, in coap_context_set_psk()
408 int coap_context_set_psk2(coap_context_t *ctx, in coap_context_set_psk2()
422 int coap_context_set_pki(coap_context_t *ctx, in coap_context_set_pki()
437 int coap_context_set_pki_root_cas(coap_context_t *ctx, in coap_context_set_pki_root_cas()
447 void coap_context_set_keepalive(coap_context_t *context, unsigned int seconds) { in coap_context_set_keepalive()
452 coap_context_set_max_idle_sessions(coap_context_t *context, in coap_context_set_max_idle_sessions()
458 coap_context_get_max_idle_sessions(const coap_context_t *context) { in coap_context_get_max_idle_sessions()
463 coap_context_set_max_handshake_sessions(coap_context_t *context, in coap_context_set_max_handshake_sessions()
469 coap_context_get_max_handshake_sessions(const coap_context_t *context) { in coap_context_get_max_handshake_sessions()
474 coap_context_set_csm_timeout(coap_context_t *context, in coap_context_set_csm_timeout()
480 coap_context_get_csm_timeout(const coap_context_t *context) { in coap_context_get_csm_timeout()
485 coap_context_set_session_timeout(coap_context_t *context, in coap_context_set_session_timeout()
491 coap_context_get_session_timeout(const coap_context_t *context) { in coap_context_get_session_timeout()
495 int coap_context_get_coap_fd(const coap_context_t *context) { in coap_context_get_coap_fd()
504 coap_context_t *
507 coap_context_t *c; in coap_new_context()
517 c = coap_malloc_type(COAP_CONTEXT, sizeof(coap_context_t)); in coap_new_context()
533 memset(c, 0, sizeof(coap_context_t)); in coap_new_context()
619 coap_set_app_data(coap_context_t *ctx, void *app_data) { in coap_set_app_data()
625 coap_get_app_data(const coap_context_t *ctx) { in coap_get_app_data()
631 coap_free_context(coap_context_t *context) { in coap_free_context()
694 memset(&the_coap_context, 0, sizeof(coap_context_t)); in coap_free_context()
700 coap_option_check_critical(coap_context_t *ctx, in coap_option_check_critical()
973 coap_wait_ack(coap_context_t *context, coap_session_t *session, in coap_wait_ack()
1337 coap_retransmit(coap_context_t *context, coap_queue_t *node) { in coap_retransmit()
1422 coap_io_do_io(coap_context_t *ctx, coap_tick_t now) { in coap_io_do_io()
1428 coap_handle_dgram_for_proto(coap_context_t *ctx, coap_session_t *session, coap_packet_t *packet) { in coap_handle_dgram_for_proto()
1447 coap_connect_session(coap_context_t *ctx, in coap_connect_session()
1484 coap_write_session(coap_context_t *ctx, coap_session_t *session, coap_tick_t now) { in coap_write_session()
1534 coap_read_session(coap_context_t *ctx, coap_session_t *session, coap_tick_t now) { in coap_read_session()
1682 coap_read_endpoint(coap_context_t *ctx, coap_endpoint_t *endpoint, coap_tick_t now) { in coap_read_endpoint()
1725 coap_write_endpoint(coap_context_t *ctx, coap_endpoint_t *endpoint, coap_tick_t now) { in coap_write_endpoint()
1733 coap_accept_endpoint(coap_context_t *ctx, coap_endpoint_t *endpoint, in coap_accept_endpoint()
1742 coap_io_do_io(coap_context_t *ctx, coap_tick_t now) { in coap_io_do_io()
1793 coap_io_do_epoll(coap_context_t *ctx, struct epoll_event *events, size_t nevents) { in coap_io_do_epoll()
1891 coap_endpoint_t *coap_get_endpoint(const coap_context_t *ctx) in coap_get_endpoint()
1897 coap_handle_dgram(coap_context_t *ctx, coap_session_t *session, in coap_handle_dgram()
1978 coap_cancel_session_messages(coap_context_t *context, coap_session_t *session, in coap_cancel_session_messages()
2015 coap_cancel_all_messages(coap_context_t *context, coap_session_t *session, in coap_cancel_all_messages()
2169 get_wkc_len(coap_context_t *context, coap_opt_t *query_filter) { in get_wkc_len()
2187 coap_wellknown_response(coap_context_t *context, coap_session_t *session, in coap_wellknown_response()
2340 coap_cancel(coap_context_t *context, const coap_queue_t *sent) { in coap_cancel()
2482 handle_request(coap_context_t *context, coap_session_t *session, coap_pdu_t *pdu) { in handle_request()
2897 handle_response(coap_context_t *context, coap_session_t *session, in handle_response()
2940 handle_signaling(coap_context_t *context, coap_session_t *session, in handle_signaling()
2981 coap_dispatch(coap_context_t *context, coap_session_t *session, in coap_dispatch()
3164 coap_handle_event(coap_context_t *context, coap_event_t event, coap_session_t *session) { in coap_handle_event()
3175 coap_can_exit(coap_context_t *context) { in coap_can_exit()
3200 coap_check_async(coap_context_t *context, coap_tick_t now) { in coap_check_async()
3251 coap_register_response_handler(coap_context_t *context, in coap_register_response_handler()
3257 coap_register_nack_handler(coap_context_t *context, in coap_register_nack_handler()
3263 coap_register_ping_handler(coap_context_t *context, in coap_register_ping_handler()
3269 coap_register_pong_handler(coap_context_t *context, in coap_register_pong_handler()
3275 coap_register_option(coap_context_t *ctx, uint16_t type) { in coap_register_option()
3281 coap_join_mcast_group_intf(coap_context_t *ctx, const char *group_name, in coap_join_mcast_group_intf()
3531 coap_join_mcast_group_intf(coap_context_t *ctx COAP_UNUSED, in coap_join_mcast_group_intf()
3601 coap_context_t *ctx = (coap_context_t*)arg; in coap_retransmittimer_execute()
3629 static void coap_retransmittimer_restart(coap_context_t *ctx) { in coap_retransmittimer_restart()