mirror of
https://github.com/ZLMediaKit/ZLMediaKit.git
synced 2024-11-22 10:40:05 +08:00
add api for ini file
This commit is contained in:
parent
f1a41022cb
commit
6a411da024
@ -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";
|
||||
|
@ -13,6 +13,8 @@
|
||||
using namespace ZL::Util;
|
||||
|
||||
namespace Config {
|
||||
|
||||
void loaIniConfig();
|
||||
////////////TCP最大连接数///////////
|
||||
#ifdef __x86_64__
|
||||
#define MAX_TCP_SESSION 512
|
||||
|
Loading…
Reference in New Issue
Block a user