/third_party/libcoap/examples/contiki/ |
D | coap-observer.c | 56 coap_address_t listen_addr; in init_coap() local 58 coap_address_init(&listen_addr); in init_coap() 59 listen_addr.port = UIP_HTONS(COAP_DEFAULT_PORT); in init_coap() 63 uip_ip6addr(&listen_addr.addr, 0xaaaa, 0, 0, 0, 0, 0, 0, 0); in init_coap() 64 uip_ds6_set_addr_iid(&listen_addr.addr, &uip_lladdr); in init_coap() 65 uip_ds6_addr_add(&listen_addr.addr, 0, ADDR_AUTOCONF); in init_coap() 69 uip_debug_ipaddr_print(&listen_addr.addr); in init_coap() 75 listen_addr.addr.u8[0], listen_addr.addr.u8[1], in init_coap() 76 listen_addr.addr.u8[2], listen_addr.addr.u8[3], in init_coap() 77 listen_addr.addr.u8[4], listen_addr.addr.u8[5], in init_coap() [all …]
|
D | server.c | 55 coap_address_t listen_addr; in init_coap_server() local 62 coap_address_init(&listen_addr); in init_coap_server() 63 listen_addr.port = UIP_HTONS(COAP_DEFAULT_PORT); in init_coap_server() 65 uip_ip6addr(&listen_addr.addr, 0xaaaa, 0, 0, 0, 0, 0, 0, NODE_ADDR); in init_coap_server() 67 uip_ds6_prefix_add(&listen_addr.addr, 64, 0, 0, 0, 0); in init_coap_server() 70 uip_ds6_addr_add(&listen_addr.addr, 0, ADDR_MANUAL); in init_coap_server() 78 PRINT6ADDR(&listen_addr.addr); in init_coap_server() 81 *ctx = coap_new_context(&listen_addr); in init_coap_server()
|
/third_party/libcoap/src/ |
D | coap_tcp.c | 195 const coap_address_t *listen_addr, argument 205 sock->fd = socket(listen_addr->addr.sa.sa_family, SOCK_STREAM, 0); 235 switch (listen_addr->addr.sa.sa_family) { 251 if (bind(sock->fd, &listen_addr->addr.sa, 252 listen_addr->addr.sa.sa_family == AF_INET ? 254 (socklen_t)listen_addr->size) == COAP_SOCKET_ERROR) {
|
D | coap_io_lwip.c | 176 const coap_address_t *listen_addr, in coap_socket_bind_udp() argument 210 const coap_address_t *listen_addr, in coap_socket_bind_tcp() argument
|
D | coap_io.c | 104 const coap_address_t *listen_addr, in coap_socket_bind_udp() argument 114 uip_ipaddr_copy(&bound_addr->addr, &listen_addr->addr); in coap_socket_bind_udp() 115 bound_addr->port = listen_addr->port; in coap_socket_bind_udp() 160 const coap_address_t *listen_addr, argument 169 sock->fd = socket(listen_addr->addr.sa.sa_family, SOCK_DGRAM, 0); 193 switch (listen_addr->addr.sa.sa_family) { 222 if (bind(sock->fd, &listen_addr->addr.sa, 223 listen_addr->addr.sa.sa_family == AF_INET ? 225 (socklen_t)listen_addr->size) == COAP_SOCKET_ERROR) {
|
D | coap_session.c | 1300 coap_new_endpoint(coap_context_t *context, const coap_address_t *listen_addr, coap_proto_t proto) { in coap_new_endpoint() argument 1304 assert(listen_addr); in coap_new_endpoint() 1342 if (!coap_socket_bind_udp(&ep->sock, listen_addr, &ep->bind_addr)) in coap_new_endpoint() 1347 if (!coap_socket_bind_tcp(&ep->sock, listen_addr, &ep->bind_addr)) in coap_new_endpoint()
|
D | net.c | 506 const coap_address_t *listen_addr) { in coap_new_context() argument 585 if (listen_addr) { in coap_new_context() 586 coap_endpoint_t *endpoint = coap_new_endpoint(c, listen_addr, COAP_PROTO_UDP); in coap_new_context()
|
/third_party/skia/third_party/externals/microhttpd/src/platform/ |
D | w32functions.c | 567 struct sockaddr_in listen_addr; in MHD_W32_pair_of_sockets_() local 577 listen_addr.sin_family = AF_INET; in MHD_W32_pair_of_sockets_() 578 listen_addr.sin_port = htons(0); in MHD_W32_pair_of_sockets_() 579 listen_addr.sin_addr.s_addr = htonl(INADDR_LOOPBACK); in MHD_W32_pair_of_sockets_() 580 if (0 == bind(listen_s, (struct sockaddr*) &listen_addr, c_addinlen) in MHD_W32_pair_of_sockets_() 582 && 0 == getsockname(listen_s, (struct sockaddr*) &listen_addr, in MHD_W32_pair_of_sockets_() 589 && (0 == connect(client_s, (struct sockaddr*) &listen_addr, c_addinlen) in MHD_W32_pair_of_sockets_()
|
/third_party/libcoap/man/ |
D | coap_endpoint_server.txt.in | 179 coap_address_t listen_addr; 189 coap_address_init(&listen_addr); 190 listen_addr.addr.sa.sa_family = AF_INET; 191 listen_addr.addr.sin.sin_port = htons (5683); 193 endpoint = coap_new_endpoint(context, &listen_addr, COAP_PROTO_UDP); 285 coap_address_t listen_addr; 333 coap_address_init(&listen_addr); 334 listen_addr.addr.sa.sa_family = AF_INET; 335 listen_addr.addr.sin.sin_port = htons (5684); 337 endpoint = coap_new_endpoint(context, &listen_addr, COAP_PROTO_DTLS); [all …]
|
D | coap_encryption.txt.in | 942 coap_address_t listen_addr; 991 coap_address_init(&listen_addr); 992 listen_addr.addr.sa.sa_family = AF_INET; 993 listen_addr.addr.sin.sin_port = htons (5684); 996 endpoint = coap_new_endpoint(context, &listen_addr, COAP_PROTO_DTLS); 1090 coap_address_t listen_addr; 1124 coap_address_init(&listen_addr); 1125 listen_addr.addr.sa.sa_family = AF_INET; 1126 listen_addr.addr.sin.sin_port = htons (5684); 1128 endpoint = coap_new_endpoint(context, &listen_addr, COAP_PROTO_DTLS);
|
/third_party/ltp/testcases/kernel/syscalls/bind/ |
D | bind05.c | 122 struct sockaddr_storage listen_addr, remote_addr; in test_bind() local 146 tc_copy.addrlen = tst_get_connect_address(sock, &listen_addr); in test_bind() 147 tc_copy.address = (struct sockaddr *)&listen_addr; in test_bind()
|
D | bind04.c | 108 struct sockaddr_storage listen_addr, remote_addr; in test_bind() local 133 tc_copy.addrlen = tst_get_connect_address(listen_sock, &listen_addr); in test_bind() 134 tc_copy.address = (struct sockaddr *)&listen_addr; in test_bind()
|
/third_party/libuv/test/ |
D | benchmark-multi-accept.c | 104 static struct sockaddr_in listen_addr; variable 216 (const struct sockaddr*) &listen_addr, in send_listen_handles() 357 (const struct sockaddr*) &listen_addr, in cl_close_cb() 370 ASSERT(0 == uv_ip4_addr("127.0.0.1", TEST_PORT, &listen_addr)); in test_tcp() 398 (const struct sockaddr*) &listen_addr, in test_tcp()
|
D | benchmark-pump.c | 52 static struct sockaddr_in listen_addr; variable 382 ASSERT(0 == uv_ip4_addr("0.0.0.0", TEST_PORT, &listen_addr)); in HELPER_IMPL() 388 r = uv_tcp_bind(&tcpServer, (const struct sockaddr*) &listen_addr, 0); in HELPER_IMPL()
|
/third_party/mbedtls/programs/test/ |
D | udp_proxy.c | 149 const char *listen_addr; /* address for accepting client connections */ member 191 opt.listen_addr = DFL_LISTEN_ADDR; in get_options() 213 opt.listen_addr = q; in get_options() 860 opt.listen_addr, opt.listen_port ); in main() 863 if( ( ret = mbedtls_net_bind( &listen_fd, opt.listen_addr, opt.listen_port, in main()
|
/third_party/libcoap/include/coap3/ |
D | coap_tcp_internal.h | 85 const coap_address_t *listen_addr,
|
D | coap_io_internal.h | 73 const coap_address_t *listen_addr,
|
D | coap_session.h | 361 coap_endpoint_t *coap_new_endpoint(coap_context_t *context, const coap_address_t *listen_addr, coap…
|
D | net.h | 152 coap_context_t *coap_new_context(const coap_address_t *listen_addr);
|