Home
last modified time | relevance | path

Searched refs:port (Results 1 – 25 of 45) sorted by relevance

12

/system/core/adb/
Dconsole.cpp8 int fd, port; in connect_to_console() local
10 port = adb_get_emulator_console_port(); in connect_to_console()
11 if (port < 0) { in connect_to_console()
12 if (port == -2) in connect_to_console()
18 fd = socket_loopback_client( port, SOCK_STREAM ); in connect_to_console()
20 fprintf(stderr, "error: could not connect to TCP port %d\n", port); in connect_to_console()
Dtransport_local.cpp87 int local_connect(int port) { in local_connect() argument
88 return local_connect_arbitrary_ports(port-1, port); in local_connect()
120 int port = DEFAULT_ADB_LOCAL_TRANSPORT_PORT; in client_socket_thread() local
128 for ( ; count > 0; count--, port += 2 ) { in client_socket_thread()
129 (void) local_connect(port); in client_socket_thread()
140 int port = (int) (uintptr_t) arg; in server_socket_thread() local
146 serverfd = socket_inaddr_any_server(port, SOCK_STREAM); in server_socket_thread()
156 D("server: trying to get new connection from %d\n", port); in server_socket_thread()
162 register_socket_transport(fd, "host", port, 1); in server_socket_thread()
222 const int port = (int) (uintptr_t) arg; in qemu_socket_thread() local
[all …]
Dservices.cpp97 int port = (int) (uintptr_t) cookie; in restart_tcp_service() local
98 if (port <= 0) { in restart_tcp_service()
99 WriteFdFmt(fd, "invalid port %d\n", port); in restart_tcp_service()
105 snprintf(value, sizeof(value), "%d", port); in restart_tcp_service()
107 WriteFdFmt(fd, "restarting in TCP mode port: %d\n", port); in restart_tcp_service()
430 int port = atoi(name + 4); in service_to_fd() local
433 ret = socket_loopback_client(port, SOCK_STREAM); in service_to_fd()
438 ret = socket_network_client(name + 1, port, SOCK_STREAM); in service_to_fd()
486 int port; in service_to_fd() local
487 if (sscanf(name + 6, "%d", &port) != 1) { in service_to_fd()
[all …]
Dadb_client.cpp86 int port; in adb_get_emulator_console_port() local
87 return (sscanf(__adb_serial, "emulator-%d", &port) == 1) ? port : -1; in adb_get_emulator_console_port()
100 int port; in adb_get_emulator_console_port() local
103 if (sscanf(device.c_str(), "emulator-%d", &port) == 1) { in adb_get_emulator_console_port()
110 return port; in adb_get_emulator_console_port()
Dadb_main.cpp207 int port; in adb_main() local
316 if (sscanf(value, "%d", &port) == 1 && port > 0) { in adb_main()
317 printf("using port=%d\n", port); in adb_main()
319 local_init(port); in adb_main()
DSERVICES.TXT35 host:emulator:<port>
37 new emulator starts up. <port> is a decimal number corresponding
38 to the emulator's ADB control port, i.e. the TCP port that the
109 tcp:<port> -> TCP connection on localhost:<port>
114 tcp:<port> -> TCP localhost:<port> on device
184 tcp:<port>
185 Tries to connect to tcp port <port> on localhost.
187 tcp:<port>:<server-name>
188 Tries to connect to tcp port <port> on machine <server-name> from
Dadb_listeners.cpp116 int port; in local_name_to_fd() local
120 port = atoi(name + 4); in local_name_to_fd()
123 ret = socket_inaddr_any_server(port, SOCK_STREAM); in local_name_to_fd()
125 ret = socket_loopback_server(port, SOCK_STREAM); in local_name_to_fd()
Dsysdeps.h189 extern int socket_loopback_client(int port, int type);
190 extern int socket_network_client(const char *host, int port, int type);
191 extern int socket_network_client_timeout(const char *host, int port, int type,
193 extern int socket_loopback_server(int port, int type);
194 extern int socket_inaddr_any_server(int port, int type);
Dadb.h268 int init_socket_transport(atransport *t, int s, int port, int local);
321 void local_init(int port);
322 int local_connect(int port);
/system/bt/stack/rfcomm/
Drfc_utils.c144 i, rfc_cb.port.rfc_mcb[i].state); in rfc_alloc_multiplexer_channel()
146 … rfc_cb.port.rfc_mcb[i].bd_addr[0], rfc_cb.port.rfc_mcb[i].bd_addr[1], in rfc_alloc_multiplexer_channel()
147 … rfc_cb.port.rfc_mcb[i].bd_addr[2], rfc_cb.port.rfc_mcb[i].bd_addr[3], in rfc_alloc_multiplexer_channel()
148 … rfc_cb.port.rfc_mcb[i].bd_addr[4], rfc_cb.port.rfc_mcb[i].bd_addr[5]); in rfc_alloc_multiplexer_channel()
150 if ((rfc_cb.port.rfc_mcb[i].state != RFC_MX_STATE_IDLE) in rfc_alloc_multiplexer_channel()
151 && (!memcmp (rfc_cb.port.rfc_mcb[i].bd_addr, bd_addr, BD_ADDR_LEN))) in rfc_alloc_multiplexer_channel()
155 if (rfc_cb.port.rfc_mcb[i].state == RFC_MX_STATE_CONNECTED) in rfc_alloc_multiplexer_channel()
156 rfc_timer_stop (&rfc_cb.port.rfc_mcb[i]); in rfc_alloc_multiplexer_channel()
158 … is_initiator, rfc_cb.port.rfc_mcb[i].state, &rfc_cb.port.rfc_mcb[i]); in rfc_alloc_multiplexer_channel()
159 return (&rfc_cb.port.rfc_mcb[i]); in rfc_alloc_multiplexer_channel()
[all …]
Dport_api.c256 p_port = &rfc_cb.port.port[handle - 1]; in RFCOMM_RemoveConnection()
292 p_port = &rfc_cb.port.port[handle - 1]; in RFCOMM_RemoveServer()
337 p_port = &rfc_cb.port.port[port_handle - 1]; in PORT_SetEventCallback()
370 p_port = &rfc_cb.port.port[port_handle - 1]; in PORT_ClearKeepHandleFlag()
400 p_port = &rfc_cb.port.port[port_handle - 1]; in PORT_SetDataCallback()
436 p_port = &rfc_cb.port.port[port_handle - 1]; in PORT_SetDataCOCallback()
472 p_port = &rfc_cb.port.port[port_handle - 1]; in PORT_SetEventMask()
509 p_port = &rfc_cb.port.port[handle - 1]; in PORT_CheckConnection()
551 if ((rfc_cb.port.rfc_mcb[xx].state > RFC_MX_STATE_IDLE) && in PORT_IsOpening()
552 (rfc_cb.port.rfc_mcb[xx].state < RFC_MX_STATE_CONNECTED)) in PORT_IsOpening()
[all …]
Dport_utils.c65 tPORT *p_port = &rfc_cb.port.port[0]; in port_allocate_port()
73 p_port = &rfc_cb.port.port[yy]; in port_allocate_port()
288 if ((rfc_cb.port.rfc_mcb[i].state != RFC_MX_STATE_IDLE) in port_find_mcb()
289 && !memcmp (rfc_cb.port.rfc_mcb[i].bd_addr, bd_addr, BD_ADDR_LEN)) in port_find_mcb()
295 i, &rfc_cb.port.rfc_mcb[i], rfc_cb.port.rfc_mcb[i].lcid); in port_find_mcb()
296 return (&rfc_cb.port.rfc_mcb[i]); in port_find_mcb()
334 return (&rfc_cb.port.port[inx - 1]); in port_find_mcb_dlci_port()
354 p_port = &rfc_cb.port.port[i]; in port_find_dlci_port()
389 p_port = &rfc_cb.port.port[i]; in port_find_port()
Dport_rfc.c208 p_port = &rfc_cb.port.port[0]; in PORT_StartCnf()
269 p_port = &rfc_cb.port.port[0]; in PORT_StartInd()
783 p_port = &rfc_cb.port.port[0]; in PORT_CloseInd()
809 p_port = &rfc_cb.port.port[0]; in Port_TimeOutCloseMux()
954 p_port = &rfc_cb.port.port[i]; in PORT_FlowInd()
Drfc_l2cap_if.c182 rfc_cb.port.port[idx - 1].dlci += 1; in RFCOMM_ConnectCnf()
183 … RFCOMM_TRACE_DEBUG ("RFCOMM MX - DLCI:%d -> %d", i, rfc_cb.port.port[idx - 1].dlci); in RFCOMM_ConnectCnf()
/system/core/include/cutils/
Dsockets.h77 extern int socket_loopback_client(int port, int type);
78 extern int socket_network_client(const char *host, int port, int type);
79 extern int socket_network_client_timeout(const char *host, int port, int type,
81 extern int socket_loopback_server(int port, int type);
87 extern int socket_inaddr_any_server(int port, int type);
/system/media/camera/docs/
DREADME.md25 sudo port install py27-beautifulsoup4
26 sudo port install py27-mako
27 sudo port install py27-markdown
28 sudo port install tidy
29 sudo port install libxml2 #xmllint
/system/core/libcutils/
Dsocket_network_client.c36 int socket_network_client(const char *host, int port, int type) in socket_network_client() argument
38 return socket_network_client_timeout(host, port, type, 0); in socket_network_client()
44 int socket_network_client_timeout(const char *host, int port, int type, int timeout) in socket_network_client_timeout() argument
62 addr.sin_port = htons(port); in socket_network_client_timeout()
Dsocket_loopback_client.c36 int socket_loopback_client(int port, int type) in socket_loopback_client() argument
43 addr.sin_port = htons(port); in socket_loopback_client()
Dsocket_inaddr_any_server.c35 int socket_inaddr_any_server(int port, int type) in socket_inaddr_any_server() argument
42 addr.sin_port = htons(port); in socket_inaddr_any_server()
Dsocket_loopback_server.c35 int socket_loopback_server(int port, int type) in socket_loopback_server() argument
42 addr.sin_port = htons(port); in socket_loopback_server()
/system/bt/include/
Dbte.h89 UINT8 port; /* port number */ member
94 extern void bte_hcisu_userial_oper( tUSERIAL_MSG_CBACK *p_cback, UINT8 port, UINT8 op, UINT8 option…
97 extern int (*p_bte_hci_send)(UINT16 port, BT_HDR *p_msg);
/system/extras/tests/net_test/
Dcsocket.py57 addr, port, flowinfo, scope_id = addr
59 (addr, port), flowinfo, scope_id = addr, 0, 0
61 return SockaddrIn6((family, socket.ntohs(port), socket.ntohl(flowinfo),
65 addr, port = addr
67 return SockaddrIn((family, socket.ntohs(port), addr))
/system/bt/osi/src/
Dsocket.c101 bool socket_listen(const socket_t *socket, port_t port) { in socket_listen() argument
107 addr.sin_port = htons(port); in socket_listen()
109 LOG_ERROR("%s unable to bind socket to port %u: %s", __func__, port, strerror(errno)); in socket_listen()
114 LOG_ERROR("%s unable to listen on port %u: %s", __func__, port, strerror(errno)); in socket_listen()
/system/netd/server/
DMDnsSdListener.cpp156 const char *domain, const char *host, int port, int txtLen, void *txtRecord) { in serviceRegister() argument
159 interfaceName, serviceName, serviceType, domain, host, port, txtLen); in serviceRegister()
163 port = htons(port); in serviceRegister()
173 serviceType, domain, host, port, txtLen, txtRecord, &MDnsSdListenerRegisterCallback, in serviceRegister()
245 const char *hosttarget, uint16_t port, uint16_t txtLen, in MDnsSdListenerResolveCallback() argument
250 port = ntohs(port); in MDnsSdListenerResolveCallback()
258 asprintf(&msg, "%d %s %s %d %d", refNumber, quotedFullName, quotedHostTarget, port, txtLen); in MDnsSdListenerResolveCallback()
264 refNumber, fullname, hosttarget, port, txtLen); in MDnsSdListenerResolveCallback()
427 int port = atoi(argv[5]); in runCommand() local
453 serviceType, domain, host, port, ptr - txtRecord, txtRecord); in runCommand()
/system/bt/udrv/ulinux/
Duipc_linux.h28 unsigned int port; member

12