add function in controller to receive rules from udp; enforce rules; add a simple java code to send udp