'Set shutdown state
:param state - bitvector of SENT_SHUTDOWN, RECEIVED_SHUTDOWN.
:return: None'

def set_shutdown(self, state):

    if (not isinstance(state, integer_types)):
        raise TypeError('state    must    be    an    integer')
    _lib.SSL_set_shutdown(self._ssl, state)
