xrtHttpServerMuxStartTls

启动按有效请求 Host 选择 Router 的 TLS HTTP/1 Server。

xhttpserver* xrtHttpServerMuxStartTls( xnetengine* pEngine, const xhttpserverconfig* pConfig, const xhttpservertlsconfig* pTls, xhttpservermux* pMux, const xhttpserverevents* pEvents );
参数说明
xnetengine* pEngine网络引擎
const xhttpserverconfig* pConfig配置结构
const xhttpservertlsconfig* pTlsTls 参数
xhttpservermux* pMuxMux 参数
const xhttpserverevents* pEvents事件回调表
返回:启动按有效请求 Host 选择 Router 的 TLS HTTP/1 Server。

示例已编译验证

/* 启动按有效请求 Host 选择 Router 的 TLS HTTP/1 Server。 */
result = xrtHttpServerMuxStartTls(pEngine, pConfig, pTls, pMux, pEvents);