some demo code for receiving udp packets in the event loop.