Gossip-based multicast. When given a group of peers to send to and a group of peers who may be involved in gossip, choose a peer at random, exchange digests of messages and send those that your peer does not have. Termination conditions are flexible; typically time elapsed is appropriate. There are thousands of variations on gossip. This is the vanilla sort.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.