Lines Matching defs:hostname
34 // literal IP string or a hostname to be resolved later.
35 SocketAddress(const std::string& hostname, int port);
50 // Determines if this is a nil address (empty hostname, any IP, null port)
59 // Changes the IP of this address to the given one, and clears the hostname
63 // Changes the IP of this address to the given one, and clears the hostname.
66 // Changes the hostname of this address to the given one.
68 void SetIP(const std::string& hostname);
70 // Sets the IP address while retaining the hostname. Useful for bypassing
75 // Sets the IP address while retaining the hostname. Useful for bypassing
82 // Returns the hostname.
83 const std::string& hostname() const { return hostname_; }
104 // Returns the 'host' portion of the address (hostname or IP) in a form
105 // suitable for use in a URI. If both IP and hostname are present, hostname
116 // Returns hostname:port or [hostname]:port.
122 // Parses hostname:port and [hostname]:port.
143 // Determines whether the hostname has been resolved to an IP.