Gio.NetworkAddress.prototype.get_hostname
function get_hostname(): String { // Gjs wrapper for g_network_address_get_hostname() }
Gets addr's hostname. This might be either UTF-8 or ASCII-encoded, depending on what addr was created with.
Since 2.22
- Returns
addr's hostname