Skip to content

Commit 6a1f047

Browse files
committed
improved:parameter parse and more parameter supported
1 parent e874b41 commit 6a1f047

File tree

1 file changed

+16
-0
lines changed

1 file changed

+16
-0
lines changed

XEngine_Source/XEngine_MQServiceApp/MQService_Config.cpp

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,22 @@ bool MQ_Service_Parament(int argc, char** argv, XENGINE_SERVERCONFIG* pSt_Startl
3636
{
3737
pSt_StartlParam->nHttpPort = _ttxoi(argv[++i]);
3838
}
39+
else if (0 == _tcsxcmp("-WP", argv[i]))
40+
{
41+
pSt_StartlParam->nWSPort = _ttxoi(argv[++i]);
42+
}
43+
else if (0 == _tcsxcmp("-MP", argv[i]))
44+
{
45+
pSt_StartlParam->nMQTTPort = _ttxoi(argv[++i]);
46+
}
47+
else if (0 == _tcsxcmp("-LL", argv[i]))
48+
{
49+
pSt_StartlParam->st_XLog.nLogLeave = _ttxoi(argv[++i]);
50+
}
51+
else if (0 == _tcsxcmp("-LT", argv[i]))
52+
{
53+
pSt_StartlParam->st_XLog.nLogType = _ttxoi(argv[++i]);
54+
}
3955
else if (0 == _tcsxcmp("-d",argv[i]))
4056
{
4157
pSt_StartlParam->bDeamon = _ttxoi(argv[++i]);

0 commit comments

Comments
 (0)