21 #include "mongo/bson/util/builder.h"
22 #include "mongo/platform/hash_namespace.h"
27 template <
typename T>
class StatusWith;
68 Status initialize(
const StringData& s);
72 bool operator!=(
const HostAndPort& r)
const {
return !(*
this == r); }
80 bool isLocalHost()
const;
85 std::string toString()
const;
97 const std::string& host()
const {
102 bool hasPort()
const {
111 MONGO_CLIENT_API std::ostream& MONGO_CLIENT_FUNC operator<<(std::ostream& os,
const HostAndPort& hp);
115 MONGO_HASH_NAMESPACE_START
122 MONGO_HASH_NAMESPACE_END
std::stringstream deals with locale so this is a lot faster than std::stringstream for UTF8 ...
Definition: builder.h:53
the main MongoDB namespace
Definition: bulk_operation_builder.h:24
Definition: sasl_client_conversation.h:27
Name of a process on the network.
Definition: hostandport.h:36
MONGO_CLIENT_API Status(MONGO_CLIENT_FUNC *saslClientAuthenticate)(DBClientWithCommands *client
Attempts to authenticate "client" using the SASL protocol.