Home
last modified time | relevance | path

Searched refs:listen_addr (Results 1 - 19 of 19) sorted by relevance

/third_party/skia/third_party/externals/microhttpd/src/platform/
H A Dw32functions.c567 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 Dserver.c49 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 Dcoap_tcp.c205 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 Dcoap_netif.c41 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 Dcoap_io_contiki.c84 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 Dcoap_io_lwip.c350 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 Dcoap_io.c147 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 Dcoap_session.c1844 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 Dcoap_net.c471 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 Dcoap_netif_internal.h52 * @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 Dcoap_tcp_internal.h76 * @param listen_addr The address to be listening for new incoming sessions
83 const coap_address_t *listen_addr,
H A Dcoap_io_internal.h96 const coap_address_t *listen_addr,
H A Dcoap_session.h389 * @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 Dcoap_net.h155 coap_context_t *coap_new_context(const coap_address_t *listen_addr);
/third_party/ltp/testcases/kernel/syscalls/bind/
H A Dbind05.c122 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 Dbind04.c108 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 Dbenchmark-multi-accept.c104 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 Dbenchmark-pump.c52 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 Dudp_proxy.c92 " 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()

Completed in 19 milliseconds