doc: add basic documentation for UDP functions

(ref #5772)