protected void leaveGroup ( SocketAddress mcastaddr , NetworkInterface netIf ) throws IOException { if ( mcastaddr == null || ! ( mcastaddr instanceof InetSocketAddress ) ) throw new IllegalArgumentException ( "Unsupported address type" ) ; leave ( ( ( InetSocketAddress ) mcastaddr ) . getAddress ( ) , netIf ) ; }
Leave the multicast group .