mirror of
https://github.com/ZLMediaKit/ZLMediaKit.git
synced 2024-11-22 19:00:01 +08:00
添加提示
This commit is contained in:
parent
d4506f946d
commit
ca0fc13367
@ -77,6 +77,8 @@ int main(int argc, char *argv[]) {
|
|||||||
//https服务器,支持websocket
|
//https服务器,支持websocket
|
||||||
httpsSrv->start<WebSocketSession<EchoSession,HttpsSession>>(443);//默认443
|
httpsSrv->start<WebSocketSession<EchoSession,HttpsSession>>(443);//默认443
|
||||||
|
|
||||||
|
DebugL << "请打开网页:http://www.websocket-test.com/,连接 ws://127.0.0.1/测试";
|
||||||
|
|
||||||
//设置退出信号处理函数
|
//设置退出信号处理函数
|
||||||
static semaphore sem;
|
static semaphore sem;
|
||||||
signal(SIGINT, [](int) { sem.post(); });// 设置退出信号
|
signal(SIGINT, [](int) { sem.post(); });// 设置退出信号
|
||||||
|
Loading…
Reference in New Issue
Block a user