UDP APIs

Another comment: you may use a single udp socket in your example.