def datagramReceived(self, data, host_port):
        """Given a line of data, simply execs it to do whatever."""
        host, port = host_port
        log.msg("Received: %r from %s:%d" % (data, host, port))
        c = data.strip()
        if len(c) > 0:
            mlab = self.mlab
            engine = self.engine
            scene = self.scene
            camera = scene.camera
            try:
                exec(c, locals(), globals())
            except:
                log.err()
            scene.render()


###############################################################################
# `M2TCP` protocol
###############################################################################
dataset/ETHPy150Open enthought/mayavi/mayavi/tools/server.py/M2UDP.datagramReceived/original