nghttp2_conn_read
Synopsis
#include <nghttp2v2/nghttp2.h>
-
int nghttp2_conn_read(nghttp2_conn *conn, const uint8_t *data, size_t datalen, nghttp2_tstamp ts)
nghttp2_conn_read()processes the incoming data pointed by data of length datalen. ts is the timestamp of this call. This function processes all input data.If this function returns an error code, the error is unrecoverable, therefore the application should close the underlying connection without calling any nghttp2 API for conn.
This function returns 0 if it succeeds, or one of the following negative error codes:
NGHTTP2_ERR_NOMEMOut of memory.
NGHTTP2_ERR_CALLBACK_FAILUREUser callback failed.
NGHTTP2_ERR_EXCESSIVE_LOADThe remote endpoint exhibits the behavior that causes the excessive load to the local endpoint.