def can_receive_messages(self):
with self.lock:<EOL><INDENT>return not self._state.is_waiting_for_start() andnot self._state.is_connection_closed()<EOL><DEDENT>
Whether tihs communication is ready to receive messages.]

        :rtype: bool

        .. code:: python

            assert not communication.can_receive_messages()
            communication.start()
            assert communication.can_receive_messages()
            communication.stop()
            assert not communication.can_receive_messages()