/third_party/skia/third_party/externals/microhttpd/src/platform/ |
H A 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/examples/contiki/ |
H A D | server.c | 49 coap_address_t listen_addr; in init_coap_server() local 54 uip_ipaddr_copy(&listen_addr.addr, &my_address->ipaddr); in init_coap_server() 55 coap_address_set_port(&listen_addr, COAP_DEFAULT_PORT); in init_coap_server() 57 *ctx = coap_new_context(&listen_addr); in init_coap_server()
|
/third_party/libcoap/src/ |
H A D | coap_tcp.c | 205 const coap_address_t *listen_addr, 215 sock->fd = socket(listen_addr->addr.sa.sa_family, SOCK_STREAM, 0); 243 switch (listen_addr->addr.sa.sa_family) { 267 if (bind(sock->fd, &listen_addr->addr.sa, 269 listen_addr->addr.sa.sa_family == AF_INET ? 272 (socklen_t)listen_addr->size) == COAP_SOCKET_ERROR) { 204 coap_socket_bind_tcp(coap_socket_t *sock, const coap_address_t *listen_addr, coap_address_t *bound_addr) global() argument
|
H A D | coap_netif.c | 41 const coap_address_t *listen_addr) { in coap_netif_dgrm_listen() 42 if (!coap_socket_bind_udp(&endpoint->sock, listen_addr, in coap_netif_dgrm_listen() 159 const coap_address_t *listen_addr) { in coap_netif_strm_listen() 160 if (!coap_socket_bind_tcp(&endpoint->sock, listen_addr, in coap_netif_strm_listen() 40 coap_netif_dgrm_listen(coap_endpoint_t *endpoint, const coap_address_t *listen_addr) coap_netif_dgrm_listen() argument 158 coap_netif_strm_listen(coap_endpoint_t *endpoint, const coap_address_t *listen_addr) coap_netif_strm_listen() argument
|
H A D | coap_io_contiki.c | 84 const coap_address_t *listen_addr, in coap_socket_bind_udp() 100 udp_bind(sock->udp_conn, listen_addr->port); in coap_socket_bind_udp() 83 coap_socket_bind_udp(coap_socket_t *sock, const coap_address_t *listen_addr, coap_address_t *bound_addr) coap_socket_bind_udp() argument
|
H A D | coap_io_lwip.c | 350 const coap_address_t *listen_addr, in coap_socket_bind_udp() 353 coap_address_t l_listen = *listen_addr; in coap_socket_bind_udp() 462 const coap_address_t *listen_addr, in coap_socket_bind_tcp() 465 (void)listen_addr; in coap_socket_bind_tcp() 349 coap_socket_bind_udp(coap_socket_t *sock, const coap_address_t *listen_addr, coap_address_t *bound_addr) coap_socket_bind_udp() argument 461 coap_socket_bind_tcp(coap_socket_t *sock, const coap_address_t *listen_addr, coap_address_t *bound_addr) coap_socket_bind_tcp() argument
|
H A D | coap_io.c | 147 const coap_address_t *listen_addr, 161 sock->fd = socket(listen_addr->addr.sa.sa_family, SOCK_DGRAM, 0); 180 switch (listen_addr->addr.sa.sa_family) { 222 if (bind(sock->fd, &listen_addr->addr.sa, 224 listen_addr->addr.sa.sa_family == AF_INET ? 227 (socklen_t)listen_addr->size) == COAP_SOCKET_ERROR) { 243 listen_addr->addr.sin6.sin6_scope_id; 146 coap_socket_bind_udp(coap_socket_t *sock, const coap_address_t *listen_addr, coap_address_t *bound_addr) global() argument
|
H A D | coap_session.c | 1844 coap_new_endpoint(coap_context_t *context, const coap_address_t *listen_addr, coap_proto_t proto) { in coap_new_endpoint() argument 1848 assert(listen_addr); in coap_new_endpoint() 1899 if (!coap_netif_dgrm_listen(ep, listen_addr)) in coap_new_endpoint() 1906 if (!coap_netif_strm_listen(ep, listen_addr)) in coap_new_endpoint()
|
H A D | coap_net.c | 471 coap_new_context(const coap_address_t *listen_addr) { in coap_new_context() argument 475 (void)listen_addr; in coap_new_context() 541 if (listen_addr) { in coap_new_context() 542 coap_endpoint_t *endpoint = coap_new_endpoint(c, listen_addr, COAP_PROTO_UDP); in coap_new_context()
|
/third_party/libcoap/include/coap3/ |
H A D | coap_netif_internal.h | 52 * @param listen_addr The local address to bind. 57 const coap_address_t *listen_addr); 119 * @param listen_addr The local address to bind. 124 const coap_address_t *listen_addr);
|
H A D | coap_tcp_internal.h | 76 * @param listen_addr The address to be listening for new incoming sessions 83 const coap_address_t *listen_addr,
|
H A D | coap_io_internal.h | 96 const coap_address_t *listen_addr,
|
H A D | coap_session.h | 389 * @param listen_addr Address the endpoint will listen for incoming requests 397 coap_endpoint_t *coap_new_endpoint(coap_context_t *context, const coap_address_t *listen_addr,
|
H A D | coap_net.h | 155 coap_context_t *coap_new_context(const coap_address_t *listen_addr);
|
/third_party/ltp/testcases/kernel/syscalls/bind/ |
H A 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()
|
H A 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/ |
H A 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_OK(uv_ip4_addr("127.0.0.1", TEST_PORT, &listen_addr)); in test_tcp() 398 (const struct sockaddr*) &listen_addr, in test_tcp()
|
H A D | benchmark-pump.c | 52 static struct sockaddr_in listen_addr; variable 382 ASSERT_OK(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/ |
H A D | udp_proxy.c | 92 " listen_addr=%%s default: localhost\n" \ 140 const char *listen_addr; /* address for accepting client connections */ member 183 opt.listen_addr = DFL_LISTEN_ADDR; in get_options() 204 } else if (strcmp(p, "listen_addr") == 0) { in get_options() 205 opt.listen_addr = q; in get_options() 820 opt.listen_addr, opt.listen_port); in main() 823 if ((ret = mbedtls_net_bind(&listen_fd, opt.listen_addr, opt.listen_port, in main()
|