MongoDB  2.7.0
Deprecated List
Member mongo::BSONObjBuilder::appendOID (const StringData &fieldName, OID *oid=0, bool generateIfBlank=false)
Generally, it is preferred to use the append append(name, oid) method for this.
Member mongo::DBClientConnection::connect (const char *hostname, string &errmsg)
please use HostAndPort
Returns
false if fails to connect.