Added support for connectionless UDP sockets, added some extra functions to streams