From 8bf677e3c8e925118123c03f77703aee3f695dcf Mon Sep 17 00:00:00 2001 From: winlin Date: Sat, 19 Sep 2020 10:53:55 +0800 Subject: [PATCH] Refine code --- trunk/src/app/srs_app_gb28181.hpp | 2 ++ trunk/src/app/srs_app_gb28181_sip.hpp | 4 +++- trunk/src/utest/srs_utest_service.hpp | 2 ++ 3 files changed, 7 insertions(+), 1 deletion(-) diff --git a/trunk/src/app/srs_app_gb28181.hpp b/trunk/src/app/srs_app_gb28181.hpp index 4793708b0..3f215b1d9 100644 --- a/trunk/src/app/srs_app_gb28181.hpp +++ b/trunk/src/app/srs_app_gb28181.hpp @@ -347,6 +347,8 @@ private: // Interface ISrsOneCycleThreadHandler public: virtual srs_error_t cycle(); +// Interface ISrsConnection. +public: virtual std::string remote_ip(); virtual const SrsContextId& get_id(); virtual std::string desc(); diff --git a/trunk/src/app/srs_app_gb28181_sip.hpp b/trunk/src/app/srs_app_gb28181_sip.hpp index 6e5eb393d..d3480fe9b 100644 --- a/trunk/src/app/srs_app_gb28181_sip.hpp +++ b/trunk/src/app/srs_app_gb28181_sip.hpp @@ -142,7 +142,9 @@ public: // Interface ISrsOneCycleThreadHandler public: - virtual srs_error_t cycle(); + virtual srs_error_t cycle(); +// Interface ISrsConnection. +public: virtual std::string remote_ip(); virtual const SrsContextId& get_id(); virtual std::string desc(); diff --git a/trunk/src/utest/srs_utest_service.hpp b/trunk/src/utest/srs_utest_service.hpp index 96a0c01ab..ab4ed8ea3 100644 --- a/trunk/src/utest/srs_utest_service.hpp +++ b/trunk/src/utest/srs_utest_service.hpp @@ -40,6 +40,8 @@ public: public: MockSrsConnection(); virtual ~MockSrsConnection(); +// Interface ISrsConnection. +public: virtual const SrsContextId& get_id(); virtual std::string desc(); virtual std::string remote_ip();