libcoap  4.3.0beta
cov_session_reference_model.c File Reference

Go to the source code of this file.

Data Structures

struct  coap_session_t
 

Typedefs

typedef struct coap_session_t coap_session_t
 

Functions

coap_session_tcoap_session_reference (coap_session_t *session)
 Increment reference counter on a session. More...
 
void coap_session_release (coap_session_t *session)
 Decrement reference counter on a session. More...
 

Typedef Documentation

◆ coap_session_t

Function Documentation

◆ coap_session_reference()

coap_session_t* coap_session_reference ( coap_session_t session)

Increment reference counter on a session.

Parameters
sessionThe CoAP session.
Returns
same as session

Definition at line 9 of file cov_session_reference_model.c.

◆ coap_session_release()

void coap_session_release ( coap_session_t session)

Decrement reference counter on a session.

Note that the session may be deleted as a result and should not be used after this call.

Parameters
sessionThe CoAP session.

Definition at line 14 of file cov_session_reference_model.c.