nghttp2_conn_submit_ping
Synopsis
#include <nghttp2v2/nghttp2.h>
-
int nghttp2_conn_submit_ping(nghttp2_conn *conn, const nghttp2_ping_data *data)
nghttp2_conn_submit_ping()submits PING frame with the given data. data must point to the buffer that contains at least 8 bytes of data. At most 1 PING is allowed in flight. When PING frame with ACK flag is set is received from the remote endpoint,nghttp2_recv_ping_ackcallback is called.NGHTTP2_ERR_INVALID_STATEAnother PING is already in-flight.