Swarm communication with multidrone

How to do the swarm communication with multi drones. can any one suggest the proper coding’s for the same