Code example for MulticastSocket

Methods: close, disconnect

0
	} 
 
	public void stopReceive() { 
		Log.d(TAG, "######## stop MulticastClient ##########");
		this.mScan = false;
		mMultiSocket.disconnect();
		mMultiSocket.close();
		mMultiSocket = null;
	} 
 
	@Override 
	public void run() { 
		scanReceive(); 
	} 
 
	private String receiveStr = "";
 
	private void scanReceive() { 
 
		while (mScan) {
			try {