cwWebSockSvr.cpp : Moved protocalA[] defn. in websockSrvTest() to use the cfg. provided values.
This commit is contained in:
parent
dc7edd2e46
commit
68747ef0a8
@ -191,13 +191,6 @@ cw::rc_t cw::websockSrvTest( const object_t* cfg )
|
||||
kWebsockSrvProtocolId = 2
|
||||
};
|
||||
|
||||
websock::protocol_t protocolA[] =
|
||||
{
|
||||
{ "http", kHttpProtocolId, 0, 0},
|
||||
{ "websocksrv_test_protocol",kWebsockSrvProtocolId,rcvBufByteN,xmtBufByteN}
|
||||
};
|
||||
|
||||
|
||||
if((rc = cfg->getv("physRootDir",physRootDirArg,
|
||||
"dfltHtmlPageFn",dfltHtmlPageFn,
|
||||
"port",port,
|
||||
@ -211,6 +204,13 @@ cw::rc_t cw::websockSrvTest( const object_t* cfg )
|
||||
return cwLogError(rc,"Args parse failed.");
|
||||
}
|
||||
|
||||
websock::protocol_t protocolA[] =
|
||||
{
|
||||
{ "http", kHttpProtocolId, 0, 0},
|
||||
{ "websocksrv_test_protocol",kWebsockSrvProtocolId,rcvBufByteN,xmtBufByteN}
|
||||
};
|
||||
|
||||
|
||||
char* physRootDir = cw::filesys::expandPath(physRootDirArg);
|
||||
unsigned protocolN = sizeof(protocolA)/sizeof(protocolA[0]);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user