On Pong
Called every time a Pong message is received.
Prototype
void HTTPc_WebSockOnPong (HTTPc_CONN_OBJ *p_conn, CPU_CHAR *p_data, CPU_INT16U data_len);
Arguments
p_conn
Pointer to the current HTTPc Connection Object.
p_data
Pointer to the data of the Pong message
data_len
Data length of the Pong message.
Return Values
None.
Required Configuration
- The HTTPc_CFG_WEBSOCKET_EN configuration macro MUST be enabled.
Notes / Warnings
- This hook is set in a HTTPc_WEBSOCK_OBJ using HTTPc_WebSockSetParam() with the parameter HTTPc_PARAM_TYPE_WEBSOCK_ON_PONG.
- Must be set to the HTTPc_WEBSOCK_OBJ before upgrading the connection with HTTPc_WebSockUpgrade().