统计TcpServer个数

This commit is contained in:
xiongziliang 2021-01-24 21:59:55 +08:00
parent 272d1a8bd9
commit bad9553ec4
2 changed files with 2 additions and 1 deletions

@ -1 +1 @@
Subproject commit 6a21c58fa2e21416306c5a9cc88f943b882253e6 Subproject commit 57165f6dd5291c1cf794cac531a58ec2f3016b8a

View File

@ -1031,6 +1031,7 @@ void installWebApi() {
val["data"]["MediaSource"] = (Json::UInt64)(ObjectStatistic<MediaSource>::count()); val["data"]["MediaSource"] = (Json::UInt64)(ObjectStatistic<MediaSource>::count());
val["data"]["MultiMediaSourceMuxer"] = (Json::UInt64)(ObjectStatistic<MultiMediaSourceMuxer>::count()); val["data"]["MultiMediaSourceMuxer"] = (Json::UInt64)(ObjectStatistic<MultiMediaSourceMuxer>::count());
val["data"]["TcpServer"] = (Json::UInt64)(ObjectStatistic<TcpServer>::count());
val["data"]["TcpSession"] = (Json::UInt64)(ObjectStatistic<TcpSession>::count()); val["data"]["TcpSession"] = (Json::UInt64)(ObjectStatistic<TcpSession>::count());
val["data"]["TcpClient"] = (Json::UInt64)(ObjectStatistic<TcpClient>::count()); val["data"]["TcpClient"] = (Json::UInt64)(ObjectStatistic<TcpClient>::count());
val["data"]["Socket"] = (Json::UInt64)(ObjectStatistic<Socket>::count()); val["data"]["Socket"] = (Json::UInt64)(ObjectStatistic<Socket>::count());