Code example for MulticastSocket

Methods: leaveGroup

0
		groupAddr = group.getGroupAddress();
		socket.joinGroup(groupAddr);		
	} 
 
	public void unregisterFromGroup(MulticastGroup group) throws IOException {
		socket.leaveGroup(group.getGroupAddress());
		//socket.close();   
	} 
 
}