def set_tlsext_host_name(self, name):
if not isinstance(name, bytes):<EOL><INDENT>raise TypeError("<STR_LIT>")<EOL><DEDENT>elif b"<STR_LIT>" in name:<EOL><INDENT>raise TypeError("<STR_LIT>")<EOL><DEDENT>_lib.SSL_set_tlsext_host_name(self._ssl, name)<EOL>
Set the value of the servername extension to send in the client hello.

:param name: A byte string giving the name.

.. versionadded:: 0.13