MongoDB C++ Driver  mongocxx-3.10.2
Public Member Functions | List of all members
mongocxx::v_noabi::events::server_opening_event Class Reference

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::v_noabi::stdx::string_view host () const
 Returns the server host name. More...
 
std::uint16_t port () const
 Returns the server port. More...
 
const bsoncxx::v_noabi::oid topology_id () const
 An opaque id, unique to this topology for this mongocxx::v_noabi::client or mongocxx::v_noabi::pool. More...
 

Detailed Description

An event notification sent when the driver adds a MongoDB server to the topology description and begins monitoring it.

See also
"ServerOpeningEvent" in https://github.com/mongodb/specifications/blob/master/source/server-discovery-and-monitoring/server-discovery-and-monitoring.rst

Member Function Documentation

◆ host()

bsoncxx::v_noabi::stdx::string_view mongocxx::v_noabi::events::server_opening_event::host ( ) const

Returns the server host name.

Returns
The host name.

◆ port()

std::uint16_t mongocxx::v_noabi::events::server_opening_event::port ( ) const

Returns the server port.

Returns
The port.

◆ topology_id()

const bsoncxx::v_noabi::oid mongocxx::v_noabi::events::server_opening_event::topology_id ( ) const

An opaque id, unique to this topology for this mongocxx::v_noabi::client or mongocxx::v_noabi::pool.

Returns
The id.

The documentation for this class was generated from the following file: