Source code for mids.udp

# meds/run/udp.py
#
#

""" start the udp server, allowing for echoing through udp. """

from mads.udp import UDP
from mads.join import j

from mids import runtime

[docs]def init(event): udp = UDP() udp.start() return udp
[docs]def shutdown(event): udps = runtime.get("UDP", []) for udp in udps: udp.exit()