ConscryptEngine.setHostname

This method enables Server Name Indication (SNI) and overrides the {@link PeerInfoProvider} supplied during engine creation. If the hostname is not a valid SNI hostname, the SNI extension will be omitted from the handshake.

class ConscryptEngine
override
void
setHostname
(
string hostname
)

Meta