def __init__(self, node, client_node, verbose=False, addr=None, time=10,
                 rate=512):
        ClientServerCmd.__init__(self, node, client_node, verbose)
        self.addr = addr
        self.time = time
        self.args = ['mgen', 'event', 'listen udp 5000', 'output',
            '/var/log/mgen.log']
        self.rate = rate
        sendevent = "ON 1 UDP DST %s/5000 PERIODIC [%s]" % \
                (addr, self.mgenrate(self.rate))
        stopevent = "%s OFF 1" % time
        self.client_args = ['mgen', 'event', sendevent, 'event', stopevent,
            'output', '/var/log/mgen.log']
dataset/ETHPy150Open coreemu/core/daemon/examples/netns/wlanemanetests.py/MgenCmd.__init__/original