openHiTLS API openHiTLS 0.1.0-Alpha1

◆ HITLS_CFG_SetAlpnProtosSelectCb()

int32_t HITLS_CFG_SetAlpnProtosSelectCb ( HITLS_Config config,
HITLS_AlpnSelectCb  callback,
void *  userData 
)

Sets the ALPN selection callback on the server.

The callback is used to select the application layer protocol in the handshake phase, cb can be NULL.

参数
config[OUT] Config context.
callback[IN] Server callback implemented by the user.
userData[IN] Product context.
返回值
Ifsuccess, return HITLS_SUCCESS. For details about other error codes, see hitls_error.h.