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

NAME

6       mongoc_client_pool_set_appname - mongoc_client_pool_set_appname()
7

SYNOPSIS

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

PARAMETERS

19pool: A mongoc_client_pool_t.
20
21appname:  The  application  name,  of  length  at  most  MONGOC_HAND‐
22         SHAKE_APPNAME_MAX.
23

RETURNS

25       Returns true if appname was set. If appname is too long, returns  false
26       and logs an error.
27

THREAD SAFETY

29       This function can only be called once on a pool, and must be called be‐
30       fore the first call to mongoc_client_pool_pop.
31

AUTHOR

33       MongoDB, Inc
34
36       2017-present, MongoDB, Inc
37
38
39
40
411.17.6                           Jun 03, 2021MONGOC_CLIENT_POOL_SET_APPNAME(3)
Impressum