Ejemplo n.º 1
0
//////////////////////////////////////////////////////////////////////////
// Simple-App-Server
TSAppSrv::TSAppSrv(const int& PortN, const TSAppSrvFunV& SrvFunV, 
        const PNotify& Notify): TWebSrv(PortN, true, Notify) {

    // initiaize hash-table with mappings
    for (int SrvFunN = 0; SrvFunN < SrvFunV.Len(); SrvFunN++) {
        PSAppSrvFun SrvFun =  SrvFunV[SrvFunN];
        FunNmToFunH.AddDat(SrvFun->GetFunNm(), SrvFun);
    }
	// initialize XML header
	XmlHdStr = "<?xml version=\"1.0\" encoding=\"ISO-8859-1\" ?>\n";
}
Ejemplo n.º 2
0
TSAppSrv::TSAppSrv(const int& PortN, const TSAppSrvFunV& SrvFunV, const PNotify& Notify, 
		const bool& _ShowParamP, const bool& _ListFunP): TWebSrv(PortN, true, Notify), 
		Favicon(Favicon_bf, Favicon_len) {

    ShowParamP = _ShowParamP;
    ListFunP = _ListFunP;
    // initiaize hash-table with mappings
    for (int SrvFunN = 0; SrvFunN < SrvFunV.Len(); SrvFunN++) {
        PSAppSrvFun SrvFun =  SrvFunV[SrvFunN];
        FunNmToFunH.AddDat(SrvFun->GetFunNm(), SrvFun);
    }
}