doc: add basic documentation for UDP functions

(ref #5772)

(cherry picked from commit 1d8e162bc81cf42d4005157cd9de7b7327785837)

correct capitalization for 0.3
fix #9206 and partially fix #7910

(partial backport of commit 9975b704da6072f71395dd218d47a5fe9e335094)