Home
last modified time | relevance | path

Searched refs:serverfd (Results 1 – 4 of 4) sorted by relevance

/packages/modules/adb/daemon/
Dtransport_local.cpp56 unique_fd serverfd; in server_socket_thread() local
59 while (serverfd == -1) { in server_socket_thread()
61 serverfd = listen_func(addr, &error); in server_socket_thread()
65 } else if (serverfd < 0) { in server_socket_thread()
70 close_on_exec(serverfd.get()); in server_socket_thread()
74 D("server: trying to get new connection from fd %d", serverfd.get()); in server_socket_thread()
75 unique_fd fd(adb_socket_accept(serverfd, nullptr, nullptr)); in server_socket_thread()
/packages/modules/adb/
Dsocket_spec.cpp387 unique_fd serverfd(socket(AF_VSOCK, SOCK_STREAM | SOCK_CLOEXEC, 0)); local
388 if (serverfd == -1) {
400 if (bind(serverfd.get(), reinterpret_cast<struct sockaddr*>(&addr), addr_len)) {
403 if (listen(serverfd.get(), 4)) {
406 if (serverfd >= 0 && resolved_port) {
407 if (getsockname(serverfd.get(), reinterpret_cast<sockaddr*>(&addr), &addr_len) == 0) {
413 return serverfd.release();
Dsysdeps.h191 extern int adb_socket_accept(borrowed_fd serverfd, struct sockaddr* addr, socklen_t* addrlen);
616 static inline int adb_socket_accept(borrowed_fd serverfd, struct sockaddr* addr, in adb_socket_accept() argument
620 fd = TEMP_FAILURE_RETRY(accept(serverfd.get(), addr, addrlen)); in adb_socket_accept()
Dsysdeps_win32.cpp1228 int adb_socket_accept(borrowed_fd serverfd, struct sockaddr* addr, socklen_t* addrlen) { in adb_socket_accept() argument
1229 FH serverfh = _fh_from_int(serverfd, __func__); in adb_socket_accept()
1232 D("adb_socket_accept: invalid fd %d", serverfd.get()); in adb_socket_accept()
1247 LOG(ERROR) << "adb_socket_accept: accept on fd " << serverfd.get() in adb_socket_accept()
1255 D("adb_socket_accept on fd %d returns fd %d", serverfd.get(), fd); in adb_socket_accept()