MongoDB C++ Driver
mongocxx-3.7.0
|
An event notification sent when the driver adds a MongoDB server to the topology description and begins monitoring it. More...
#include <server_opening_event.hpp>
Public Member Functions | |
~server_opening_event () | |
Destroys a server_opening_event. | |
bsoncxx::stdx::string_view | host () const |
Returns the server host name. More... | |
std::uint16_t | port () const |
Returns the server port. More... | |
const bsoncxx::oid | topology_id () const |
An opaque id, unique to this topology for this mongocxx::client or mongocxx::pool. More... | |
An event notification sent when the driver adds a MongoDB server to the topology description and begins monitoring it.
bsoncxx::stdx::string_view mongocxx::events::server_opening_event::host | ( | ) | const |
Returns the server host name.
std::uint16_t mongocxx::events::server_opening_event::port | ( | ) | const |
Returns the server port.
const bsoncxx::oid mongocxx::events::server_opening_event::topology_id | ( | ) | const |
An opaque id, unique to this topology for this mongocxx::client or mongocxx::pool.