Searched refs:session (Results 1 - 2 of 2) sorted by relevance
/vendor/hisilicon/hispark_pegasus/demo/coap_demo/ |
H A D | coap_client.c | 28 static void MessageHandler(struct coap_context_t *ctx, coap_session_t *session, coap_pdu_t *sent, in MessageHandler() argument 34 (void)session; in MessageHandler() 96 coap_session_t *session = NULL; in CoapClientSendMsg() local 108 /* try to reuse existed session */ in CoapClientSendMsg() 109 session = coap_session_get_by_peer(g_cliCtx, &dst_addr, 0); in CoapClientSendMsg() 110 if (session == NULL) { in CoapClientSendMsg() 114 session = coap_new_client_session(g_cliCtx, &listen_addr, &dst_addr, COAP_PROTO_UDP); in CoapClientSendMsg() 115 if (session == NULL) { in CoapClientSendMsg() 116 printf("[%s][%d] new client session failed\n", __FUNCTION__, __LINE__); in CoapClientSendMsg() 119 session in CoapClientSendMsg() [all...] |
H A D | coap_service.c | 30 static void HelloHandler(coap_context_t *ctx, struct coap_resource_t *resource, coap_session_t *session, in HelloHandler() argument 40 (void)session; in HelloHandler()
|
Completed in 2 milliseconds