1MONGOC_CLIENT_POOL_SET_APPNAME(3)  libmongoc MONGOC_CLIENT_POOL_SET_APPNAME(3)
2
3
4

SYNOPSIS

6          bool
7          mongoc_client_pool_set_appname (mongoc_client_pool_t *pool, const char *appname)
8
9       This  function  is  identical to mongoc_client_set_appname() except for
10       client pools.
11
12       Also note that mongoc_client_set_appname() cannot be called on a client
13       retrieved from a client pool.
14

PARAMETERS

16pool: A mongoc_client_pool_t.
17
18appname:  The  application  name,  of  length  at  most  MONGOC_HAND‐
19         SHAKE_APPNAME_MAX.
20

RETURNS

22       Returns true if appname was set. If appname is too long, returns  false
23       and logs an error.
24

THREAD SAFETY

26       This function can only be called once on a pool, and must be called be‐
27       fore the first call to mongoc_client_pool_pop().
28

AUTHOR

30       MongoDB, Inc
31
33       2017-present, MongoDB, Inc
34
35
36
37
381.25.1                           Nov 08, 2023MONGOC_CLIENT_POOL_SET_APPNAME(3)
Impressum