mirror of
https://github.com/ZLMediaKit/ZLMediaKit.git
synced 2026-07-07 12:18:12 +08:00
add api for ini file
This commit is contained in:
@@ -7,6 +7,14 @@ using namespace ZL::Network;
|
|||||||
|
|
||||||
namespace Config {
|
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 {
|
namespace Broadcast {
|
||||||
const char kBroadcastRtspSessionPlay[] = "kBroadcastRtspSessionPlay";
|
const char kBroadcastRtspSessionPlay[] = "kBroadcastRtspSessionPlay";
|
||||||
|
|||||||
@@ -13,6 +13,8 @@
|
|||||||
using namespace ZL::Util;
|
using namespace ZL::Util;
|
||||||
|
|
||||||
namespace Config {
|
namespace Config {
|
||||||
|
|
||||||
|
void loaIniConfig();
|
||||||
////////////TCP最大连接数///////////
|
////////////TCP最大连接数///////////
|
||||||
#ifdef __x86_64__
|
#ifdef __x86_64__
|
||||||
#define MAX_TCP_SESSION 512
|
#define MAX_TCP_SESSION 512
|
||||||
|
|||||||
Reference in New Issue
Block a user