cwWebSockSvr.cpp : Updates websockSrvTest() to replace hard coded parameters with cfg. provided values.

This commit is contained in:
kevin 2024-11-29 16:41:38 -05:00
parent c0666b42ec
commit 1475f1e365

View File

@ -198,9 +198,19 @@ 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.");
}
char* physRootDir = cw::filesys::expandPath(physRootDirArg);
unsigned protocolN = sizeof(protocolA)/sizeof(protocolA[0]);