cwWebSockSvr.cpp : Updates websockSrvTest() to replace hard coded parameters with cfg. provided values.
This commit is contained in:
parent
c0666b42ec
commit
1475f1e365
@ -198,8 +198,18 @@ cw::rc_t cw::websockSrvTest( const object_t* cfg )
|
|||||||
};
|
};
|
||||||
|
|
||||||
|
|
||||||
if((rc = cfg->getv("physRootDir",physRootDirArg,"dfltHtmlPageFn",dfltHtmlPageFn)) != kOkRC )
|
if((rc = cfg->getv("physRootDir",physRootDirArg,
|
||||||
|
"dfltHtmlPageFn",dfltHtmlPageFn,
|
||||||
|
"port",port,
|
||||||
|
"rcvBufByteN",rcvBufByteN,
|
||||||
|
"xmtBufByteN",xmtBufByteN,
|
||||||
|
"queueBlkCnt",queueBlkCnt,
|
||||||
|
"queueBlkByteCnt",queueBlkByteCnt,
|
||||||
|
"timeOutMs",timeOutMs
|
||||||
|
)) != kOkRC )
|
||||||
|
{
|
||||||
return cwLogError(rc,"Args parse failed.");
|
return cwLogError(rc,"Args parse failed.");
|
||||||
|
}
|
||||||
|
|
||||||
char* physRootDir = cw::filesys::expandPath(physRootDirArg);
|
char* physRootDir = cw::filesys::expandPath(physRootDirArg);
|
||||||
unsigned protocolN = sizeof(protocolA)/sizeof(protocolA[0]);
|
unsigned protocolN = sizeof(protocolA)/sizeof(protocolA[0]);
|
||||||
|
Loading…
Reference in New Issue
Block a user