Lines Matching refs:dtls_event
571 session->dtls_event = COAP_EVENT_DTLS_ERROR; in coap_dtls_info_callback()
609 session->dtls_event = COAP_EVENT_DTLS_RENEGOTIATE; in coap_dtls_info_callback()
2950 session->dtls_event = -1; in coap_dtls_send()
2960 session->dtls_event = COAP_EVENT_DTLS_CLOSED; in coap_dtls_send()
2962 session->dtls_event = COAP_EVENT_DTLS_ERROR; in coap_dtls_send()
2967 if (session->dtls_event >= 0) { in coap_dtls_send()
2969 if (session->dtls_event != COAP_EVENT_DTLS_CLOSED) in coap_dtls_send()
2970 coap_handle_event(session->context, session->dtls_event, session); in coap_dtls_send()
2971 if (session->dtls_event == COAP_EVENT_DTLS_ERROR || in coap_dtls_send()
2972 session->dtls_event == COAP_EVENT_DTLS_CLOSED) { in coap_dtls_send()
3066 session->dtls_event = -1; in coap_dtls_receive()
3083 session->dtls_event = COAP_EVENT_DTLS_CLOSED; in coap_dtls_receive()
3085 session->dtls_event = COAP_EVENT_DTLS_ERROR; in coap_dtls_receive()
3088 if (session->dtls_event >= 0) { in coap_dtls_receive()
3090 if (session->dtls_event != COAP_EVENT_DTLS_CLOSED) in coap_dtls_receive()
3091 coap_handle_event(session->context, session->dtls_event, session); in coap_dtls_receive()
3092 if (session->dtls_event == COAP_EVENT_DTLS_ERROR || in coap_dtls_receive()
3093 session->dtls_event == COAP_EVENT_DTLS_CLOSED) { in coap_dtls_receive()
3304 session->dtls_event = -1; in coap_tls_write()
3333 session->dtls_event = COAP_EVENT_DTLS_CLOSED; in coap_tls_write()
3335 session->dtls_event = COAP_EVENT_DTLS_ERROR; in coap_tls_write()
3345 if (session->dtls_event >= 0) { in coap_tls_write()
3347 if (session->dtls_event != COAP_EVENT_DTLS_CLOSED) in coap_tls_write()
3348 coap_handle_event(session->context, session->dtls_event, session); in coap_tls_write()
3349 if (session->dtls_event == COAP_EVENT_DTLS_ERROR || in coap_tls_write()
3350 session->dtls_event == COAP_EVENT_DTLS_CLOSED) { in coap_tls_write()
3370 session->dtls_event = -1; in coap_tls_read()
3396 session->dtls_event = COAP_EVENT_DTLS_CLOSED; in coap_tls_read()
3398 session->dtls_event = COAP_EVENT_DTLS_ERROR; in coap_tls_read()
3408 if (session->dtls_event >= 0) { in coap_tls_read()
3410 if (session->dtls_event != COAP_EVENT_DTLS_CLOSED) in coap_tls_read()
3411 coap_handle_event(session->context, session->dtls_event, session); in coap_tls_read()
3412 if (session->dtls_event == COAP_EVENT_DTLS_ERROR || in coap_tls_read()
3413 session->dtls_event == COAP_EVENT_DTLS_CLOSED) { in coap_tls_read()