优化代码

整理代码
This commit is contained in:
xiongziliang
2022-11-12 21:59:48 +08:00
parent 6ffbcbfde5
commit 946945ce7b
16 changed files with 22 additions and 40 deletions

View File

@@ -19,8 +19,6 @@ using namespace toolkit;
namespace mediakit{
RtpServer::RtpServer() {}
RtpServer::~RtpServer() {
if (_on_cleanup) {
_on_cleanup();

View File

@@ -31,7 +31,7 @@ public:
using onRecv = std::function<void(const toolkit::Buffer::Ptr &buf)>;
enum TcpMode { NONE = 0, PASSIVE, ACTIVE };
RtpServer();
RtpServer() = default;
~RtpServer();
/**