[jjo] add UDP support

FYI tested ok with and udp endpoint, didn't test TCP (although from the edit, it should be unchanged).