1MONGOC_URI_GET_SERVICE(3) libmongoc MONGOC_URI_GET_SERVICE(3)
2
3
4
6 Deprecated since version 1.21.0: This function is deprecated and
7 should not be used in new code.
8
9 Please use mongoc_uri_get_srv_hostname() in new code.
10
11
13 const char *
14 mongoc_uri_get_service (const mongoc_uri_t *uri)
15 BSON_GNUC_DEPRECATED_FOR (mongoc_uri_get_srv_hostname);
16
18 • uri: A mongoc_uri_t.
19
20 Returns the SRV host and domain name of a MongoDB URI.
21
23 A string if this URI's scheme is "mongodb+srv://", or NULL if the
24 scheme is "mongodb://".
25
27 MongoDB, Inc
28
30 2017-present, MongoDB, Inc
31
32
33
34
351.25.1 Nov 08, 2023 MONGOC_URI_GET_SERVICE(3)