/system/core/adb/ |
H A D | console.c | 8 int fd, port; local 10 port = adb_get_emulator_console_port(); 11 if (port < 0) { 12 if (port == -2) 18 fd = socket_loopback_client( port, SOCK_STREAM ); 20 fprintf(stderr, "error: could not connect to TCP port %d\n", port);
|
H A D | transport_local.c | 108 int local_connect(int port) { argument 109 return local_connect_arbitrary_ports(port-1, port); 142 int port = DEFAULT_ADB_LOCAL_TRANSPORT_PORT; local 150 for ( ; count > 0; count--, port += 2 ) { 151 (void) local_connect(port); 162 int port = (int) (uintptr_t) arg; local 168 serverfd = socket_inaddr_any_server(port, SOCK_STREAM); 178 D("server: trying to get new connection from %d\n", port); 184 register_socket_transport(fd, "host", port, 244 const int port = (int) (uintptr_t) arg; local 302 local_init(int port) argument [all...] |
H A D | services.c | 89 int port = (int) (uintptr_t) cookie; local 91 if (port <= 0) { 92 snprintf(buf, sizeof(buf), "invalid port\n"); 98 snprintf(value, sizeof(value), "%d", port); 99 property_set("service.adb.tcp.port", value); 100 snprintf(buf, sizeof(buf), "restarting in TCP mode port: %d\n", port); 109 property_set("service.adb.tcp.port", "0"); 390 int port = atoi(name + 4); local 393 ret = socket_loopback_client(port, SOCK_STREA 455 int port; local 512 int port, fd; local [all...] |
H A D | adb.h | 217 /* A listener is an entity which binds to a local port 218 ** and, upon receiving a connection on that port, creates 292 int init_socket_transport(atransport *t, int s, int port, int local); 299 int register_socket_transport(int s, const char *serial, int port, int local); 362 void local_init(int port); 363 int local_connect(int port);
|
H A D | adb_client.c | 41 int port; local 81 port = strtol(serial, NULL, 10); 82 return port; 229 fprintf(stdout,"* daemon not running. starting it now on port %d *\n",
|
H A D | sysdeps.h | 171 extern int socket_loopback_client(int port, int type); 172 extern int socket_network_client(const char *host, int port, int type); 173 extern int socket_network_client_timeout(const char *host, int port, int type, 175 extern int socket_loopback_server(int port, int type); 176 extern int socket_inaddr_any_server(int port, int type);
|
H A D | sysdeps_win32.c | 580 int socket_loopback_client(int port, int type) argument 594 addr.sin_port = htons(port); 606 D("socket_loopback_client: could not connect to %s:%d\n", type != SOCK_STREAM ? "udp" : "tcp", port ); 610 snprintf( f->name, sizeof(f->name), "%d(lo-client:%s%d)", _fh_to_int(f), type != SOCK_STREAM ? "udp:" : "", port ); 611 D( "socket_loopback_client: port %d type %s => fd %d\n", port, type != SOCK_STREAM ? "udp" : "tcp", _fh_to_int(f) ); 617 int socket_loopback_server(int port, int type) argument 633 addr.sin_port = htons(port); 657 snprintf( f->name, sizeof(f->name), "%d(lo-server:%s%d)", _fh_to_int(f), type != SOCK_STREAM ? "udp:" : "", port ); 658 D( "socket_loopback_server: port 663 socket_network_client(const char *host, int port, int type) argument 705 socket_network_client_timeout(const char *host, int port, int type, int timeout) argument 712 socket_inaddr_any_server(int port, int type) argument [all...] |
H A D | adb.c | 754 int port; local 758 port = atoi(name + 4); 761 ret = socket_inaddr_any_server(port, SOCK_STREAM); 763 ret = socket_loopback_server(port, SOCK_STREAM); 1226 /* Constructs a local name of form tcp:port. 1229 * server_port is the port number to use for the local name. 1299 int port; local 1365 /* don't listen on a port (default 5037) if running in secure mode */ 1378 D("Local port disabled\n"); 1400 // If one of these properties is set, also listen on that port 1668 int port = atoi(service+9); local [all...] |
H A D | transport.c | 1000 int register_socket_transport(int s, const char *serial, int port, int local) argument 1010 D("transport: %s init'ing for socket %d, on port %d\n", serial, s, port); 1011 if (init_socket_transport(t, s, port, local) < 0) {
|
/system/core/include/cutils/ |
H A D | sockets.h | 87 extern int socket_loopback_client(int port, int type); 88 extern int socket_network_client(const char *host, int port, int type); 89 extern int socket_network_client_timeout(const char *host, int port, int type, 91 extern int socket_loopback_server(int port, int type); 97 extern int socket_inaddr_any_server(int port, int type);
|
/system/core/toolbox/ |
H A D | smd.c | 9 int fd, len, r, port = 0; local 15 port = atoi(argv[0] + 1); 20 sprintf(devname,"/dev/smd%d",port);
|
H A D | netstat.c | 74 /* addr + : + port + \0 */ 77 static void addr2str(int af, const void *addr, unsigned port, char *buf) argument 84 if (port) { 85 snprintf(buf+len, ADDR_LEN-len, ":%d", port);
|
/system/core/libcutils/ |
H A D | socket_inaddr_any_server.c | 34 /* open listen() port on any interface */ 35 int socket_inaddr_any_server(int port, int type) argument 42 addr.sin_port = htons(port);
|
H A D | socket_loopback_client.c | 32 /* Connect to port on the loopback IP interface. type is 36 int socket_loopback_client(int port, int type) argument 43 addr.sin_port = htons(port);
|
H A D | socket_loopback_server.c | 34 /* open listen() port on loopback interface */ 35 int socket_loopback_server(int port, int type) argument 42 addr.sin_port = htons(port);
|
H A D | socket_network_client.c | 32 /* Connect to port on the IP interface. type is 36 int socket_network_client(const char *host, int port, int type) argument 38 return socket_network_client_timeout(host, port, type, 0); 41 /* Connect to port on the IP interface. type is SOCK_STREAM or SOCK_DGRAM. 44 int socket_network_client_timeout(const char *host, int port, int type, int timeout) argument 63 addr.sin_port = htons(port);
|
/system/core/fastbootd/ |
H A D | network_discovery.c | 83 uint16_t port = 22; local 93 name, type, domain, host, port,
|
/system/netd/server/ |
H A D | FirewallController.cpp | 109 int FirewallController::setEgressDestRule(const char* addr, int protocol, int port, argument 120 sprintf(portStr, "%d", port);
|
H A D | MDnsSdListener.h | 37 DNSServiceErrorType errorCode, const char *fullname, const char *hosttarget, uint16_t port, 119 const char *host, int port, int textLen, void *txtRecord);
|
H A D | MDnsSdListener.cpp | 156 const char *domain, const char *host, int port, int txtLen, void *txtRecord) { 159 interfaceName, serviceName, serviceType, domain, host, port, txtLen); 163 port = htons(port); 173 serviceType, domain, host, port, txtLen, txtRecord, &MDnsSdListenerRegisterCallback, 245 const char *hosttarget, uint16_t port, uint16_t txtLen, 250 port = ntohs(port); 258 asprintf(&msg, "%d %s %s %d %d", refNumber, quotedFullName, quotedHostTarget, port, txtLen); 264 refNumber, fullname, hosttarget, port, txtLe 154 serviceRegister(SocketClient *cli, int requestId, const char *interfaceName, const char *serviceName, const char *serviceType, const char *domain, const char *host, int port, int txtLen, void *txtRecord) argument 243 MDnsSdListenerResolveCallback(DNSServiceRef , DNSServiceFlags , uint32_t , DNSServiceErrorType errorCode, const char *fullname, const char *hosttarget, uint16_t port, uint16_t txtLen, const unsigned char * , void *inContext) argument 427 int port = atoi(argv[5]); local [all...] |
H A D | CommandListener.cpp | 1310 int port = atoi(argv[3]); local 1314 res |= sFirewallCtrl->setEgressDestRule(addr, PROTOCOL_TCP, port, rule); 1315 res |= sFirewallCtrl->setEgressDestRule(addr, PROTOCOL_UDP, port, rule);
|
/system/media/camera/docs/ |
H A D | metadata-check-dependencies | 25 if ! which port >& /dev/null 27 echo "Missing port binary, please install from http://www.macports.org/" >& 2 38 echo "sudo port install $1"
|