Revert "Revert "Added basic UDP datagram support""

This reverts commit 998e5a9a56d151e1f8ed37aa6f8d20ddf844870d.