Code example for WifiManager.MulticastLock

Methods: acquire, setReferenceCounted

0
		InetAddress addr = InetAddress.getByAddress( byteaddr );
		Log.d( TAG, "startProbe : wifi address=" + addr.toString() );
 
		// start multicast lock 
		mLock = wifi.createMulticastLock( "mythtv_lock" );
		mLock.setReferenceCounted( true );
		mLock.acquire();
 
		zeroConf = JmDNS.create( addr, HOSTNAME );
		zeroConf.addServiceListener( MYTHTV_FRONTEND_TYPE, this );
 
		Log.v( TAG, "startProbe : exit" );
	} 
 
	/** 
	 * @throws IOException 
	 */ 
	private void stopProbe() throws IOException { 
		Log.v( TAG, "stopProbe : enter" );