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* pTls | Tls 参数 |
| xhttpservermux* pMux | Mux 参数 |
| const xhttpserverevents* pEvents | 事件回调表 |
返回:启动按有效请求 Host 选择 Router 的 TLS HTTP/1 Server。
示例已编译验证
/* 启动按有效请求 Host 选择 Router 的 TLS HTTP/1 Server。 */ result = xrtHttpServerMuxStartTls(pEngine, pConfig, pTls, pMux, pEvents);