mirror of
https://github.com/ZLMediaKit/ZLMediaKit.git
synced 2026-06-20 23:32:22 +08:00
单例接口放置在cpp文件中
This commit is contained in:
@@ -37,6 +37,11 @@ using namespace ZL::Network;
|
||||
namespace ZL {
|
||||
namespace Rtsp {
|
||||
|
||||
MultiCastAddressMaker &MultiCastAddressMaker::Instance() {
|
||||
static MultiCastAddressMaker instance;
|
||||
return instance;
|
||||
}
|
||||
|
||||
static uint32_t addressToInt(const string &ip){
|
||||
struct in_addr addr;
|
||||
bzero(&addr,sizeof(addr));
|
||||
|
||||
Reference in New Issue
Block a user