Searched refs:port (Results 1 - 25 of 38) sorted by relevance

12

/system/core/adb/
H A Dconsole.cpp8 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 Dtransport_local.cpp87 int local_connect(int port) { argument
88 return local_connect_arbitrary_ports(port-1, port);
120 int port = DEFAULT_ADB_LOCAL_TRANSPORT_PORT; local
128 for ( ; count > 0; count--, port += 2 ) {
129 (void) local_connect(port);
140 int port = (int) (uintptr_t) arg; local
146 serverfd = socket_inaddr_any_server(port, SOCK_STREAM);
156 D("server: trying to get new connection from %d\n", port);
162 register_socket_transport(fd, "host", port,
222 const int port = (int) (uintptr_t) arg; local
280 local_init(int port) argument
[all...]
H A Dservices.cpp97 int port = (int) (uintptr_t) cookie; local
98 if (port <= 0) {
99 WriteFdFmt(fd, "invalid port %d\n", port);
105 snprintf(value, sizeof(value), "%d", port);
106 property_set("service.adb.tcp.port", value);
107 WriteFdFmt(fd, "restarting in TCP mode port: %d\n", port);
112 property_set("service.adb.tcp.port", "0");
430 int port local
486 int port; local
552 int port = DEFAULT_ADB_LOCAL_TRANSPORT_PORT; local
[all...]
H A Dtransport.h51 int register_socket_transport(int s, const char* serial, int port, int local);
H A Dadb_client.cpp86 int port; local
87 return (sscanf(__adb_serial, "emulator-%d", &port) == 1) ? port : -1;
100 int port; local
103 if (sscanf(device.c_str(), "emulator-%d", &port) == 1) {
110 return port;
222 fprintf(stdout,"* daemon not running. starting it now on port %d *\n",
H A Dadb_main.cpp207 int port; local
275 /* don't listen on a port (default 5037) if running in secure mode */
288 D("Local port disabled\n");
309 // If one of these properties is set, also listen on that port
311 // listen on the default port.
312 property_get("service.adb.tcp.port", value, "");
314 property_get("persist.adb.tcp.port", value, "");
316 if (sscanf(value, "%d", &port) == 1 && port > 0) {
317 printf("using port
[all...]
H A Dadb_listeners.cpp116 int port; local
120 port = atoi(name + 4);
123 ret = socket_inaddr_any_server(port, SOCK_STREAM);
125 ret = socket_loopback_server(port, SOCK_STREAM);
H A Dadb.h217 /* A listener is an entity which binds to a local port
218 ** and, upon receiving a connection on that port, creates
268 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/udrv/ulinux/
H A Duipc_linux.h28 unsigned int port; member in struct:__anon1300
/system/core/include/cutils/
H A 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/bt/stack/rfcomm/
H A Dport_api.c83 ** to establish serial port connection to the peer device,
142 /* For the server side always allocate a new port. On the client side */
146 /* if existing port is also a client port */
205 /* server doesn't need to release port when closing */
256 p_port = &rfc_cb.port.port[handle - 1];
275 ** Description This function is called to close the server port.
292 p_port = &rfc_cb.port.port[handl
[all...]
H A Drfc_utils.c143 RFCOMM_TRACE_DEBUG("rfc_alloc_multiplexer_channel rfc_cb.port.rfc_mcb[%d].state:%d",
144 i, rfc_cb.port.rfc_mcb[i].state);
145 RFCOMM_TRACE_DEBUG("(rfc_cb.port.rfc_mcb[i].bd_addr:%02x:%02x:%02x:%02x:%02x:%02x",
146 rfc_cb.port.rfc_mcb[i].bd_addr[0], rfc_cb.port.rfc_mcb[i].bd_addr[1],
147 rfc_cb.port.rfc_mcb[i].bd_addr[2], rfc_cb.port.rfc_mcb[i].bd_addr[3],
148 rfc_cb.port.rfc_mcb[i].bd_addr[4], rfc_cb.port.rfc_mcb[i].bd_addr[5]);
150 if ((rfc_cb.port
[all...]
H A Dport_utils.c65 tPORT *p_port = &rfc_cb.port.port[0];
73 p_port = &rfc_cb.port.port[yy];
84 /* During the open set default state for the port connection */
88 RFCOMM_TRACE_DEBUG("rfc_cb.port.port[%d]:%p allocated, last_port:%d", yy, p_port, rfc_cb.rfc.last_port);
104 ** Description Set defualt port parameters
202 ** Description Release port infor control block.
288 if ((rfc_cb.port
[all...]
H A Drfc_l2cap_if.c182 rfc_cb.port.port[idx - 1].dlci += 1;
183 RFCOMM_TRACE_DEBUG ("RFCOMM MX - DLCI:%d -> %d", i, rfc_cb.port.port[idx - 1].dlci);
301 ** the checksum and dispatch event to multiplexer or port
347 /* If this is a SABME on the new port, check if any appl is waiting for it */
/system/core/libcutils/
H A Dsocket_inaddr_any_server.c34 /* 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 Dsocket_loopback_client.c32 /* 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 Dsocket_loopback_server.c34 /* open listen() port on loopback interface */
35 int socket_loopback_server(int port, int type) argument
42 addr.sin_port = htons(port);
H A Dsocket_network_client.c32 /* 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
62 addr.sin_port = htons(port);
/system/bt/include/
H A Dbte.h45 BTE_MODE_SERIAL_APP, /* OUT OUT OFF OFF OFF Sample serial port application */
76 #define BT_HCISU_USERIAL_OPEN (0) /* open serial port calling USERIAL_Open() */
77 #define BT_HCISU_USERIAL_CLOSE (1) /* close userial port */
89 UINT8 port; /* port number */ member in struct:tHCISU_USERIAL_MSG_tag
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/bt/hci/include/
H A Duserial.h19 // This module manages the serial port over which HCI commands
52 // Opens the given serial port. Returns true if successful, false otherwise.
54 // buffers from data read off the serial port. If you wish to pause the
57 // serial port was successfully opened and buffer production has started. It
59 bool userial_open(userial_port_t port);
63 // Reads a maximum of |len| bytes from the serial port into |p_buffer|.
68 // Writes a maximum of |len| bytes from |p_data| to the serial port.
/system/extras/tests/net_test/
H A Dcsocket.py31 SockaddrIn = cstruct.Struct("sockaddr_in", "=HH4sxxxxxxxx", "family port addr")
33 "family port flowinfo addr scope_id")
57 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/include/
H A Dsocket.h48 // |port| and the loopback IPv4 address. Returns true on success, false on
49 // failure (e.g. |port| is bound by another socket). |socket| may not be NULL.
50 bool socket_listen(const socket_t *socket, port_t port);
/system/bt/osi/src/
H A Dsocket.c101 bool socket_listen(const socket_t *socket, port_t port) { argument
107 addr.sin_port = htons(port);
109 LOG_ERROR("%s unable to bind socket to port %u: %s", __func__, port, strerror(errno));
114 LOG_ERROR("%s unable to listen on port %u: %s", __func__, port, strerror(errno));
/system/media/camera/docs/
H A Dmetadata-check-dependencies25 if ! which port >& /dev/null
27 echo "Missing port binary, please install from http://www.macports.org/" >& 2
38 echo "sudo port install $1"
/system/netd/server/
H A DMDnsSdListener.h37 DNSServiceErrorType errorCode, const char *fullname, const char *hosttarget, uint16_t port,
119 const char *host, int port, int textLen, void *txtRecord);

Completed in 379 milliseconds

12