Searched refs:serverfd (Results 1 – 4 of 4) sorted by relevance
/system/core/adb/daemon/ |
D | transport_local.cpp | 56 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()
|
/system/core/adb/ |
D | socket_spec.cpp | 371 unique_fd serverfd(socket(AF_VSOCK, SOCK_STREAM, 0)); local 372 if (serverfd == -1) { 384 if (bind(serverfd.get(), reinterpret_cast<struct sockaddr*>(&addr), addr_len)) { 387 if (listen(serverfd.get(), 4)) { 390 if (serverfd >= 0 && resolved_port) { 391 if (getsockname(serverfd.get(), reinterpret_cast<sockaddr*>(&addr), &addr_len) == 0) { 397 return serverfd.release();
|
D | sysdeps.h | 187 extern int adb_socket_accept(borrowed_fd serverfd, struct sockaddr* addr, socklen_t* addrlen); 579 static inline int adb_socket_accept(borrowed_fd serverfd, struct sockaddr* addr, in adb_socket_accept() argument 583 fd = TEMP_FAILURE_RETRY(accept(serverfd.get(), addr, addrlen)); in adb_socket_accept()
|
D | sysdeps_win32.cpp | 1063 int adb_socket_accept(borrowed_fd serverfd, struct sockaddr* addr, socklen_t* addrlen) { in adb_socket_accept() argument 1064 FH serverfh = _fh_from_int(serverfd, __func__); in adb_socket_accept() 1067 D("adb_socket_accept: invalid fd %d", serverfd.get()); in adb_socket_accept() 1082 LOG(ERROR) << "adb_socket_accept: accept on fd " << serverfd.get() in adb_socket_accept() 1090 D("adb_socket_accept on fd %d returns fd %d", serverfd.get(), fd); in adb_socket_accept()
|