'Connect to remote host and set up client-side SSL. Note that if the socket\'s
connect_ex method doesn\'t return 0, SSL won\'t be initialized.
:param addr: A remove address
:return: What the socket\'s connect_ex method returns'

def connect_ex(self, addr):

    connect_ex = self._socket.connect_ex
    self.set_connect_state()
    return connect_ex(addr)
