.\" Man page generated from reStructuredText. . . .nr rst2man-indent-level 0 . .de1 rstReportMargin \\$1 \\n[an-margin] level \\n[rst2man-indent-level] level margin: \\n[rst2man-indent\\n[rst2man-indent-level]] - \\n[rst2man-indent0] \\n[rst2man-indent1] \\n[rst2man-indent2] .. .de1 INDENT .\" .rstReportMargin pre: . RS \\$1 . nr rst2man-indent\\n[rst2man-indent-level] \\n[an-margin] . nr rst2man-indent-level +1 .\" .rstReportMargin post: .. .de UNINDENT . RE .\" indent \\n[an-margin] .\" old: \\n[rst2man-indent\\n[rst2man-indent-level]] .nr rst2man-indent-level -1 .\" new: \\n[rst2man-indent\\n[rst2man-indent-level]] .in \\n[rst2man-indent\\n[rst2man-indent-level]]u .. .TH "MONGOC_CLIENT_POOL_SET_APPNAME" "3" "May 07, 2024" "1.27.1" "libmongoc" .SH SYNOPSIS .INDENT 0.0 .INDENT 3.5 .sp .EX bool mongoc_client_pool_set_appname (mongoc_client_pool_t *pool, const char *appname) .EE .UNINDENT .UNINDENT .sp This function is identical to \fI\%mongoc_client_set_appname()\fP except for client pools. .sp Also note that \fI\%mongoc_client_set_appname()\fP cannot be called on a client retrieved from a client pool. .SH PARAMETERS .INDENT 0.0 .IP \(bu 2 \fBpool\fP: A \fI\%mongoc_client_pool_t\fP\&. .IP \(bu 2 \fBappname\fP: The application name, of length at most \fBMONGOC_HANDSHAKE_APPNAME_MAX\fP\&. .UNINDENT .SH RETURNS .sp Returns true if appname was set. If appname is too long, returns false and logs an error. .SH THREAD SAFETY .sp This function can only be called once on a pool, and must be called before the first call to \fI\%mongoc_client_pool_pop()\fP\&. .SH AUTHOR MongoDB, Inc .SH COPYRIGHT 2017-present, MongoDB, Inc .\" Generated by docutils manpage writer. .