Added support for dgram sockets.