udp: add some missing UDP options
udp: improve sending and receiving API