nghttp3_conn_client_new
Synopsis
#include <nghttp3/nghttp3.h>
-
int nghttp3_conn_client_new(nghttp3_conn **pconn, const nghttp3_callbacks *callbacks, const nghttp3_settings *settings, const nghttp3_mem *mem, void *conn_user_data)
nghttp3_conn_client_new()createsnghttp3_conn, and initializes it for client use. The pointer to the object is stored in *pconn. If mem isNULL, the memory allocator returned bynghttp3_mem_default()is used.This function returns 0 if it succeeds, or one of the following negative error codes:
NGHTTP3_ERR_NOMEMOut of memory.