Loading adb/sysdeps_win32.c +7 −0 Original line number Diff line number Diff line Loading @@ -701,6 +701,13 @@ int socket_network_client(const char *host, int port, int type) } int socket_network_client_timeout(const char *host, int port, int type, int timeout) { // TODO: implement timeouts for Windows. return socket_network_client(host, port, type); } int socket_inaddr_any_server(int port, int type) { FH f = _fh_alloc( &_fh_socket_class ); Loading libcutils/Android.mk +9 −8 Original line number Diff line number Diff line Loading @@ -27,13 +27,6 @@ commonSources := \ hashmap.c \ atomic.c.arm \ native_handle.c \ socket_inaddr_any_server.c \ socket_local_client.c \ socket_local_server.c \ socket_loopback_client.c \ socket_loopback_server.c \ socket_network_client.c \ sockets.c \ config_utils.c \ cpu_info.c \ load_file.c \ Loading Loading @@ -67,7 +60,15 @@ endif ifneq ($(WINDOWS_HOST_ONLY),1) commonSources += \ fs.c \ multiuser.c multiuser.c \ socket_inaddr_any_server.c \ socket_local_client.c \ socket_local_server.c \ socket_loopback_client.c \ socket_loopback_server.c \ socket_network_client.c \ sockets.c \ endif Loading libcutils/socket_network_client.c +0 −10 Original line number Diff line number Diff line Loading @@ -21,13 +21,11 @@ #include <string.h> #include <unistd.h> #ifndef HAVE_WINSOCK #include <sys/socket.h> #include <sys/select.h> #include <sys/types.h> #include <netinet/in.h> #include <netdb.h> #endif #include <cutils/sockets.h> Loading Loading @@ -68,13 +66,6 @@ int socket_network_client_timeout(const char *host, int port, int type, int time s = socket(hp->h_addrtype, type, 0); if (s < 0) return -1; #ifdef HAVE_WINSOCK if (connect(s, (struct sockaddr *) &addr, sizeof(addr)) < 0) { close(s); return -1; } return s; #else if ((flags = fcntl(s, F_GETFL, 0)) < 0) { close(s); return -1; Loading Loading @@ -132,5 +123,4 @@ done: } return s; #endif } Loading
adb/sysdeps_win32.c +7 −0 Original line number Diff line number Diff line Loading @@ -701,6 +701,13 @@ int socket_network_client(const char *host, int port, int type) } int socket_network_client_timeout(const char *host, int port, int type, int timeout) { // TODO: implement timeouts for Windows. return socket_network_client(host, port, type); } int socket_inaddr_any_server(int port, int type) { FH f = _fh_alloc( &_fh_socket_class ); Loading
libcutils/Android.mk +9 −8 Original line number Diff line number Diff line Loading @@ -27,13 +27,6 @@ commonSources := \ hashmap.c \ atomic.c.arm \ native_handle.c \ socket_inaddr_any_server.c \ socket_local_client.c \ socket_local_server.c \ socket_loopback_client.c \ socket_loopback_server.c \ socket_network_client.c \ sockets.c \ config_utils.c \ cpu_info.c \ load_file.c \ Loading Loading @@ -67,7 +60,15 @@ endif ifneq ($(WINDOWS_HOST_ONLY),1) commonSources += \ fs.c \ multiuser.c multiuser.c \ socket_inaddr_any_server.c \ socket_local_client.c \ socket_local_server.c \ socket_loopback_client.c \ socket_loopback_server.c \ socket_network_client.c \ sockets.c \ endif Loading
libcutils/socket_network_client.c +0 −10 Original line number Diff line number Diff line Loading @@ -21,13 +21,11 @@ #include <string.h> #include <unistd.h> #ifndef HAVE_WINSOCK #include <sys/socket.h> #include <sys/select.h> #include <sys/types.h> #include <netinet/in.h> #include <netdb.h> #endif #include <cutils/sockets.h> Loading Loading @@ -68,13 +66,6 @@ int socket_network_client_timeout(const char *host, int port, int type, int time s = socket(hp->h_addrtype, type, 0); if (s < 0) return -1; #ifdef HAVE_WINSOCK if (connect(s, (struct sockaddr *) &addr, sizeof(addr)) < 0) { close(s); return -1; } return s; #else if ((flags = fcntl(s, F_GETFL, 0)) < 0) { close(s); return -1; Loading Loading @@ -132,5 +123,4 @@ done: } return s; #endif }