mirror of
https://github.com/ZLMediaKit/ZLMediaKit.git
synced 2026-06-13 03:31:45 +08:00
add api for ini file
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user