/system/core/libcutils/ |
H A D | socket_loopback_client.c | 33 /* Connect to port on the loopback IP interface. type is 37 int socket_loopback_client(int port, int type) argument 45 addr.sin_port = htons(port);
|
H A D | socket_inaddr_any_server.c | 35 /* open listen() port on any interface */ 36 int socket_inaddr_any_server(int port, int type) argument 44 addr.sin_port = htons(port);
|
H A D | socket_loopback_server.c | 35 /* open listen() port on loopback interface */ 36 int socket_loopback_server(int port, int type) argument 44 addr.sin_port = htons(port);
|
H A D | socket_network_client.c | 35 /* Connect to port on the IP interface. type is 39 int socket_network_client(const char *host, int port, int type) argument 51 addr.sin_port = htons(port);
|
/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 | adb_client.c | 35 int port; local 75 port = strtol(serial, NULL, 10); 76 return port; 214 fprintf(stdout,"* daemon not running. starting it now on port %d *\n",
|
H A D | services.c | 142 int port = (int)cookie; local 144 if (port <= 0) { 145 snprintf(buf, sizeof(buf), "invalid port\n"); 151 snprintf(value, sizeof(value), "%d", port); 152 property_set("service.adb.tcp.port", value); 153 snprintf(buf, sizeof(buf), "restarting in TCP mode port: %d\n", port); 166 property_set("service.adb.tcp.port", "0"); 347 int port = atoi(name + 4); local 350 ret = socket_loopback_client(port, SOCK_STREA 411 int port; local [all...] |
H A D | transport_local.c | 105 int local_connect(int port) { argument 106 return local_connect_arbitrary_ports(port-1, port); 139 int port = DEFAULT_ADB_LOCAL_TRANSPORT_PORT; local 147 for ( ; count > 0; count--, port += 2 ) { 148 (void) local_connect(port); 159 int port = (int)arg; local 165 serverfd = socket_inaddr_any_server(port, SOCK_STREAM); 175 D("server: trying to get new connection from %d\n", port); 181 register_socket_transport(fd, "host", port, 188 local_init(int port) argument [all...] |
H A D | transport.c | 857 void register_socket_transport(int s, const char *serial, int port, int local) argument 860 D("transport: %p init'ing for socket %d, on port %d\n", t, s, port); 861 if ( init_socket_transport(t, s, port, local) < 0 ) {
|
H A D | adb.c | 477 int port; local 481 port = atoi(name + 4); 482 ret = socket_loopback_server(port, SOCK_STREAM); 825 /* Constructs a local name of form tcp:port. 828 * server_port is the port number to use for the local name. 839 int port; local 888 /* don't listen on a port (default 5037) if running in secure mode */ 929 D("Local port disabled\n"); 939 ** android usb device exists and the "service.adb.tcp.port" and 940 ** "persist.adb.tcp.port" propertie 981 int port, fd; local 1199 int port = atoi(service+9); local [all...] |
H A D | sysdeps_win32.c | 579 int socket_loopback_client(int port, int type) argument 593 addr.sin_port = htons(port); 605 D("socket_loopback_client: could not connect to %s:%d\n", type != SOCK_STREAM ? "udp" : "tcp", port ); 609 snprintf( f->name, sizeof(f->name), "%d(lo-client:%s%d)", _fh_to_int(f), type != SOCK_STREAM ? "udp:" : "", port ); 610 D( "socket_loopback_client: port %d type %s => fd %d\n", port, type != SOCK_STREAM ? "udp" : "tcp", _fh_to_int(f) ); 616 int socket_loopback_server(int port, int type) argument 632 addr.sin_port = htons(port); 656 snprintf( f->name, sizeof(f->name), "%d(lo-server:%s%d)", _fh_to_int(f), type != SOCK_STREAM ? "udp:" : "", port ); 657 D( "socket_loopback_server: port 662 socket_network_client(const char *host, int port, int type) argument 704 socket_inaddr_any_server(int port, int type) argument [all...] |
/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/wlan/ti/wilink_6_1/CUDK/os/linux/src/ |
H A D | os_trans.c | 65 TI_BOOL os_bind (THandle sock, U16 port) argument 72 server_addr.sin_port = htons(port); 134 /* Error writing to port */ 160 /* Error reading from port */
|
/system/wlan/ti/sta_dk_4_0_4_32/pform/linux/inc/ |
H A D | osTIType.h | 164 UINT16 port; member in struct:nwif_clsfr_entry_t
|