Home
last modified time | relevance | path

Searched refs:addrlen (Results 1 – 5 of 5) sorted by relevance

/packages/modules/adb/sysdeps/posix/
Dnetwork.cpp38 static sockaddr* loopback_addr4(sockaddr_storage* addr, socklen_t* addrlen, int port) { in loopback_addr4() argument
40 *addrlen = sizeof(*addr4); in loopback_addr4()
48 static sockaddr* loopback_addr6(sockaddr_storage* addr, socklen_t* addrlen, int port) { in loopback_addr6() argument
50 *addrlen = sizeof(*addr6); in loopback_addr6()
66 socklen_t addrlen = sizeof(addr_storage); in _network_loopback_client() local
67 sockaddr* addr = (ipv6 ? loopback_addr6 : loopback_addr4)(&addr_storage, &addrlen, 0); in _network_loopback_client()
69 if (bind(s.get(), addr, addrlen) != 0) { in _network_loopback_client()
74 addr = (ipv6 ? loopback_addr6 : loopback_addr4)(&addr_storage, &addrlen, port); in _network_loopback_client()
76 if (connect(s.get(), addr, addrlen) != 0) { in _network_loopback_client()
104 socklen_t addrlen = sizeof(addr_storage); in _network_loopback_server() local
[all …]
/packages/modules/adb/
Dsysdeps.h191 extern int adb_socket_accept(borrowed_fd serverfd, struct sockaddr* addr, socklen_t* addrlen);
196 int adb_getsockname(borrowed_fd fd, struct sockaddr* sockaddr, socklen_t* addrlen);
617 socklen_t* addrlen) { in adb_socket_accept() argument
620 fd = TEMP_FAILURE_RETRY(accept(serverfd.get(), addr, addrlen)); in adb_socket_accept()
629 inline int adb_getsockname(borrowed_fd fd, struct sockaddr* sockaddr, socklen_t* addrlen) { in adb_getsockname() argument
630 return getsockname(fd.get(), sockaddr, addrlen); in adb_getsockname()
Dsysdeps_win32.cpp829 int adb_bind(borrowed_fd fd, const sockaddr* addr, socklen_t addrlen) { in adb_bind() argument
838 if (bind(fh->fh_socket, addr, addrlen) == SOCKET_ERROR) { in adb_bind()
1228 int adb_socket_accept(borrowed_fd serverfd, struct sockaddr* addr, socklen_t* addrlen) { in adb_socket_accept() argument
1244 fh->fh_socket = accept(serverfh->fh_socket, addr, addrlen); in adb_socket_accept()
/packages/modules/adb/libs/adbconnection/
Dadbconnection_server.cpp43 socklen_t addrlen = JDWP_CONTROL_NAME_LEN + sizeof(addr.sun_family); in adbconnection_listen() local
54 if (bind(s.get(), reinterpret_cast<sockaddr*>(&addr), addrlen) < 0) { in adbconnection_listen()
/packages/modules/DnsResolver/
DDnsProxyListener.cpp148 socklen_t addrlen);
793 socklen_t addrlen) { in addIpAddrWithinLimit() argument
799 if (getnameinfo(addr, addrlen, ip_addr, sizeof(ip_addr), nullptr, 0, NI_NUMERICHOST) == 0) { in addIpAddrWithinLimit()