Class for working with a MongoDB replica set.
Member Functions: findMaster, isMaster
const std::vector < Net::SocketAddress > & addresses
Creates the ReplicaSet using the given server addresses.
Destroys the ReplicaSet.
Tries to find the master MongoDB instance from the addresses passed to the constructor.
Returns the Connection to the master, or null if no master instance was found.
const Net::SocketAddress & host