Home
last modified time | relevance | path

Searched refs:ep (Results 1 – 4 of 4) sorted by relevance

/net-tools-3.4.0/libcoap/src/
Dcoap_io.c62 static struct coap_endpoint_t ep; in coap_malloc_contiki_endpoint() local
68 return &ep; in coap_malloc_contiki_endpoint()
73 coap_free_contiki_endpoint(struct coap_endpoint_t *ep) { in coap_free_contiki_endpoint() argument
79 struct coap_endpoint_t *ep = coap_malloc_contiki_endpoint(); in coap_new_endpoint() local
81 if (ep) { in coap_new_endpoint()
82 memset(ep, 0, sizeof(struct coap_endpoint_t)); in coap_new_endpoint()
83 ep->handle.conn = udp_new(NULL, 0, NULL); in coap_new_endpoint()
85 if (!ep->handle.conn) { in coap_new_endpoint()
86 coap_free_endpoint(ep); in coap_new_endpoint()
90 coap_address_init(&ep->addr); in coap_new_endpoint()
[all …]
Dcoap_io_lwip.c54 coap_endpoint_t *ep = (coap_endpoint_t*)arg; in coap_recv() local
62 coap_handle_message(ep->context, packet); in coap_recv()
93 void coap_free_endpoint(coap_endpoint_t *ep) in coap_free_endpoint() argument
95 udp_remove(ep->pcb); in coap_free_endpoint()
96 coap_free_type(COAP_ENDPOINT, ep); in coap_free_endpoint()
/net-tools-3.4.0/libcoap/include/coap/
Dcoap_io.h64 void coap_free_endpoint(coap_endpoint_t *ep);
97 ssize_t coap_network_read(coap_endpoint_t *ep, coap_packet_t **packet);
Dnet.h129 ssize_t (*network_read)(coap_endpoint_t *ep, coap_packet_t **packet);