1MONGOC_CLIENT_POOL_SET_APPNAME(3) libmongoc MONGOC_CLIENT_POOL_SET_APPNAME(3)
2
3
4
6 mongoc_client_pool_set_appname - mongoc_client_pool_set_appname()
7
9 bool
10 mongoc_client_pool_set_appname (mongoc_client_pool_t *pool, const char *appname)
11
12 This function is identical to mongoc_client_set_appname() except for
13 client pools.
14
15 Also note that mongoc_client_set_appname() cannot be called on a client
16 retrieved from a client pool.
17
19 · pool: A mongoc_client_pool_t.
20
21 · appname: The application name, of length at most MONGOC_HAND‐
22 SHAKE_APPNAME_MAX.
23
25 Returns true if appname was set. If appname is too long, returns false
26 and logs an error.
27
29 This function can only be called once on a pool, and must be called
30 before the first call to mongoc_client_pool_pop.
31
33 MongoDB, Inc
34
36 2017-present, MongoDB, Inc
37
38
39
40
411.17.4 Feb 04, 2021MONGOC_CLIENT_POOL_SET_APPNAME(3)