Searched refs:conn (Results 1 – 5 of 5) sorted by relevance
/net-tools-3.7.0/tinydtls-0.8.2/examples/contiki/ |
D | dtls-server.c | 97 struct uip_udp_conn *conn = (struct uip_udp_conn *)dtls_get_app_data(ctx); in send_to_peer() local 99 uip_ipaddr_copy(&conn->ripaddr, &session->addr); in send_to_peer() 100 conn->rport = session->port; in send_to_peer() 103 PRINT6ADDR(&conn->ripaddr); in send_to_peer() 104 PRINTF(":%u\n", uip_ntohs(conn->rport)); in send_to_peer() 106 uip_udp_packet_send(conn, data, len); in send_to_peer() 109 memset(&conn->ripaddr, 0, sizeof(conn->ripaddr)); in send_to_peer() 110 memset(&conn->rport, 0, sizeof(conn->rport)); in send_to_peer()
|
D | dtls-client.c | 112 struct uip_udp_conn *conn = (struct uip_udp_conn *)dtls_get_app_data(ctx); in send_to_peer() local 114 uip_ipaddr_copy(&conn->ripaddr, &session->addr); in send_to_peer() 115 conn->rport = session->port; in send_to_peer() 118 PRINT6ADDR(&conn->ripaddr); in send_to_peer() 119 PRINTF(":%u\n", uip_ntohs(conn->rport)); in send_to_peer() 121 uip_udp_packet_send(conn, data, len); in send_to_peer() 125 memset(&conn->ripaddr, 0, sizeof(conn->ripaddr)); in send_to_peer() 126 memset(&conn->rport, 0, sizeof(conn->rport)); in send_to_peer()
|
/net-tools-3.7.0/libcoap/src/ |
D | coap_io.c | 83 ep->handle.conn = udp_new(NULL, 0, NULL); in coap_new_endpoint() 85 if (!ep->handle.conn) { in coap_new_endpoint() 93 udp_bind((struct uip_udp_conn *)ep->handle.conn, addr->port); in coap_new_endpoint() 101 if (ep->handle.conn) { in coap_free_endpoint() 102 uip_udp_remove((struct uip_udp_conn *)ep->handle.conn); in coap_free_endpoint() 333 uip_udp_packet_sendto((struct uip_udp_conn *)ep->handle.conn, data, datalen, in coap_network_send()
|
/net-tools-3.7.0/libcoap/include/coap/ |
D | coap_io.h | 43 void *conn; /**< opaque connection (e.g. uip_conn in Contiki) */ member
|
D | net.h | 98 struct uip_udp_conn *conn; /**< uIP connection object */ member
|