21 #include "mongo/bson/util/builder.h"
22 #include "mongo/platform/hash_namespace.h"
82 bool isLocalHost()
const;
87 std::string toString()
const;
99 const std::string& host()
const {
104 bool hasPort()
const {
113 MONGO_CLIENT_API std::ostream& MONGO_CLIENT_FUNC
114 operator<<(std::ostream& os,
const HostAndPort& hp);
118 MONGO_HASH_NAMESPACE_START
125 MONGO_HASH_NAMESPACE_END
Status represents an error state or the absence thereof.
Definition: status.h:50
std::stringstream deals with locale so this is a lot faster than std::stringstream for UTF8 ...
Definition: builder.h:53
A StringData object wraps a 'const string&' or a 'const char*' without copying its contents...
Definition: string_data.h:43
Utility functions for parsing numbers from strings.
Definition: compare_numbers.h:20
Definition: status_with.h:43
Name of a process on the network.
Definition: hostandport.h:37
MONGO_CLIENT_API Status(MONGO_CLIENT_FUNC *saslClientAuthenticate)(DBClientWithCommands *client
Attempts to authenticate "client" using the SASL protocol.