try-with-resources e multicast