Add support for udp
Pass mode along with the file descriptor
Add multicast APIs