2 nghttp2_session_client_new3
3 ===========================
8 *#include <nghttp2/nghttp2.h>*
10 .. function:: int nghttp2_session_client_new3( nghttp2_session **session_ptr, const nghttp2_session_callbacks *callbacks, void *user_data, const nghttp2_option *option, nghttp2_mem *mem)
13 Like `nghttp2_session_client_new2()`, but with additional custom
14 memory allocator specified in the *mem*.
16 The *mem* can be ``NULL`` and the call is equivalent to
17 `nghttp2_session_client_new2()`.
19 This function does not take ownership *mem*. The application is
20 responsible for freeing *mem*.
22 The library code does not refer to *mem* pointer after this
23 function returns, so the application can safely free it.
25 This function returns 0 if it succeeds, or one of the following
28 :macro:`NGHTTP2_ERR_NOMEM`