Lines Matching refs:port_value
87 int port_value; in parse_tcp_socket_spec() local
91 if (android::base::ParseInt(&spec[4], &port_value)) { in parse_tcp_socket_spec()
94 if (port_value < 0 || port_value > 65535) { in parse_tcp_socket_spec()
95 *error = StringPrintf("bad port number '%d'", port_value); in parse_tcp_socket_spec()
100 port_value = DEFAULT_ADB_LOCAL_TRANSPORT_PORT; in parse_tcp_socket_spec()
104 if (!android::base::ParseNetAddress(addr, &hostname_value, &port_value, serial, error)) { in parse_tcp_socket_spec()
114 *port = port_value; in parse_tcp_socket_spec()
190 int port_value = port ? *port : 0; in socket_spec_connect() local
191 if (!parse_tcp_socket_spec(address, &hostname, &port_value, serial, error)) { in socket_spec_connect()
196 fd->reset(network_loopback_client(port_value, SOCK_STREAM, error)); in socket_spec_connect()
207 port_value = mdns_info->port; in socket_spec_connect()
215 fd->reset(network_connect(hostname, port_value, SOCK_STREAM, 0, error)); in socket_spec_connect()
233 *port = port_value; in socket_spec_connect()
242 unsigned int port_value = port ? *port : 0; in socket_spec_connect() local
256 if (fragments.size() == 3 && !android::base::ParseUint(fragments[2], &port_value)) { in socket_spec_connect()
262 if (port_value == 0) { in socket_spec_connect()
274 addr.svm_port = port_value; in socket_spec_connect()
277 *serial = android::base::StringPrintf("vsock:%u:%d", cid, port_value); in socket_spec_connect()
287 *port = port_value; in socket_spec_connect()