getHostname

open fun getHostname(): String

Gets @addr's hostname. This might be either UTF-8 or ASCII-encoded, depending on what @addr was created with.

Return

@addr's hostname

Since

2.22