Home | History | Annotate | Download | only in adb

Lines Matching refs:hostname

67 bool parse_tcp_socket_spec(const std::string& spec, std::string* hostname, int* port,
102 if (hostname) {
103 *hostname = std::move(hostname_value);
113 static bool tcp_host_is_local(const std::string& hostname) {
115 return hostname.empty() || hostname == "localhost";
137 std::string hostname;
138 if (!parse_tcp_socket_spec(spec, &hostname, nullptr, &error)) {
141 return tcp_host_is_local(hostname);
146 std::string hostname;
148 if (!parse_tcp_socket_spec(spec, &hostname, &port, error)) {
153 if (tcp_host_is_local(hostname)) {
157 result = network_connect(hostname, port, SOCK_STREAM, 0, error);
191 std::string hostname;
193 if (!parse_tcp_socket_spec(spec, &hostname, &port, error)) {
198 if (hostname.empty() && gListenAll) {
200 } else if (tcp_host_is_local(hostname)) {
204 *error = "listening on specified hostname currently unsupported";