add api for ini file

This commit is contained in:
xiongziliang 2017-05-05 18:03:23 +08:00
parent f1a41022cb
commit 6a411da024
2 changed files with 10 additions and 0 deletions

View File

@ -7,6 +7,14 @@ using namespace ZL::Network;
namespace Config {
void loaIniConfig(){
auto &ini = ZL::Util::mINI::Instance();
try{
ini.parseFile(exePath() + ".ini");
}catch (std::exception &ex) {
ini.dumpFile(exePath() + ".ini");
}
}
////////////广播名称///////////
namespace Broadcast {
const char kBroadcastRtspSessionPlay[] = "kBroadcastRtspSessionPlay";

View File

@ -13,6 +13,8 @@
using namespace ZL::Util;
namespace Config {
void loaIniConfig();
////////////TCP最大连接数///////////
#ifdef __x86_64__
#define MAX_TCP_SESSION 512