INNER CODE UNIT · Python

send

unrealcv/unrealcv · client/python/unrealcv/__init__.py:274

    def send(self, message):
        """Send message out, return whether the message was successfully sent"""
        if self.isconnected():
            _L.debug('BaseClient: Send message %s', message)
            return SocketMessage.WrapAndSendPayload(self.sock, message)
        else:
            _L.error('Fail to send message, client is not connected')
            return False

    def raw_message_handler(self, raw_message):
        match = self.raw_message_regexp.match(raw_message)

        if match:
            [message_id, message_body] = (
                int(match.group(1)),
                match.group(2),
            )
            message_body = raw_message[len(match.group(1)) + 1 :]

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…