Updated to use microedition udp api.