Home
last modified time | relevance | path

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

/system/core/adb/
Dtransport_local.cpp248 int serverfd, fd; in server_socket_thread() local
253 serverfd = -1; in server_socket_thread()
255 if(serverfd == -1) { in server_socket_thread()
257 serverfd = network_inaddr_any_server(port, SOCK_STREAM, &error); in server_socket_thread()
258 if(serverfd < 0) { in server_socket_thread()
263 close_on_exec(serverfd); in server_socket_thread()
267 fd = adb_socket_accept(serverfd, nullptr, nullptr); in server_socket_thread()
Dsysdeps.h266 extern int adb_socket_accept(int serverfd, struct sockaddr* addr, socklen_t *addrlen);
633 static __inline__ int adb_socket_accept(int serverfd, struct sockaddr* addr, socklen_t *addrlen) in adb_socket_accept() argument
637 fd = TEMP_FAILURE_RETRY( accept( serverfd, addr, addrlen ) ); in adb_socket_accept()
Dsysdeps_win32.cpp918 int adb_socket_accept(int serverfd, struct sockaddr* addr, socklen_t *addrlen) in adb_socket_accept() argument
920 FH serverfh = _fh_from_int(serverfd, __func__); in adb_socket_accept()
923 D("adb_socket_accept: invalid fd %d", serverfd); in adb_socket_accept()
938 LOG(ERROR) << "adb_socket_accept: accept on fd " << serverfd << in adb_socket_accept()
946 D( "adb_socket_accept on fd %d returns fd %d", serverfd, fd ); in adb_socket_accept()