Code example for MulticastSocket

Methods: leaveGroup

0
        } 
    } 
 
    public void leaveGroup(InetAddress multicastAddress) {
        try { 
            socket.leaveGroup(multicastAddress);
        } catch (IOException e) {
            throw new ChannelException(e);
        } 
    } 
 
    public void leaveGroup( 
            InetSocketAddress multicastAddress, NetworkInterface networkInterface) {
        try { 
            socket.leaveGroup(multicastAddress, networkInterface);
        } catch (IOException e) {
            throw new ChannelException(e);
        } 
    } 
} 
Connect your IDE to all the code out there  Get Codota for Java