def send_request(self, request):
        logging.debug("Sending request:\n<\n%s>", request)
        self.last_sent_request = request
        payload = request.SerializeToString()
        size = struct.pack(b'!L', len(payload))
        self.transport.write(size + payload)
        # TODO: add a timeout.
Serialize and send the given proto request object.
dataset/ETHPy150Open katharosada/botchallenge/client/botchallenge/client.py/RobotClientProtocol.send_request