From 1475f1e36563c51e25e6f58652a70a938c51bc60 Mon Sep 17 00:00:00 2001 From: kevin Date: Fri, 29 Nov 2024 16:41:38 -0500 Subject: [PATCH] cwWebSockSvr.cpp : Updates websockSrvTest() to replace hard coded parameters with cfg. provided values. --- cwWebSockSvr.cpp | 14 ++++++++++++-- 1 file changed, 12 insertions(+), 2 deletions(-) diff --git a/cwWebSockSvr.cpp b/cwWebSockSvr.cpp index e3d1528..f23dcba 100644 --- a/cwWebSockSvr.cpp +++ b/cwWebSockSvr.cpp @@ -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]);