Commit 87307701eb197f32fa9d39c540afc46184851b5e
1 parent
e6b1cba6
添加demo
Showing
1 changed file
with
43 additions
and
0 deletions
demo/test.cpp
0 → 100644
1 | + | |
2 | +#include "WebSocketServer.h" | |
3 | + | |
4 | +#include <thread> | |
5 | +#include <chrono> | |
6 | + | |
7 | +using namespace std; | |
8 | + | |
9 | + | |
10 | +int main(int argc, char *argv[]) { | |
11 | + | |
12 | + // if (argc <= 1) | |
13 | + // { | |
14 | + // printf("请输入待获取的摄像头的视频通道编码ID。"); | |
15 | + // return -1; | |
16 | + // } | |
17 | + | |
18 | + WebSocketServer server; | |
19 | + server.start(); | |
20 | + | |
21 | + // const char* sipid = "34020000001310000001"; | |
22 | + // const char* sipid = argv[1]; | |
23 | + // char oper = 'g'; | |
24 | + // while (oper != 'q') { | |
25 | + // oper = getchar(); | |
26 | + // switch (oper) | |
27 | + // { | |
28 | + // case 'g': | |
29 | + // break; | |
30 | + // case 'i': | |
31 | + // { | |
32 | + // pServer->RequestInvite_UDP(sipid, rtp_port); | |
33 | + // } | |
34 | + // break; | |
35 | + // case 'b': | |
36 | + // break; | |
37 | + // default: | |
38 | + // break; | |
39 | + // } | |
40 | + // } | |
41 | + | |
42 | + return 0; | |
43 | +} | |
0 | 44 | \ No newline at end of file | ... | ... |