mirror of
https://github.com/kunkundi/crossdesk.git
synced 2025-10-26 20:25:34 +08:00
Add Qos module
This commit is contained in:
5
src/qos/congestion_control.cpp
Normal file
5
src/qos/congestion_control.cpp
Normal file
@@ -0,0 +1,5 @@
|
||||
#include "congestion_control.h"
|
||||
|
||||
CongestionControl::CongestionControl() {}
|
||||
|
||||
CongestionControl::~CongestionControl() {}
|
||||
12
src/qos/congestion_control.h
Normal file
12
src/qos/congestion_control.h
Normal file
@@ -0,0 +1,12 @@
|
||||
#ifndef _CONGESTION_CONTROL_H_
|
||||
#define _CONGESTION_CONTROL_H_
|
||||
|
||||
class CongestionControl {
|
||||
public:
|
||||
CongestionControl();
|
||||
~CongestionControl();
|
||||
|
||||
private:
|
||||
};
|
||||
|
||||
#endif
|
||||
@@ -80,7 +80,7 @@ int IceTransmission::InitIceTransmission(std::string &ip, int port) {
|
||||
}
|
||||
|
||||
int IceTransmission::DestroyIceTransmission() {
|
||||
LOG_INFO("[{}] Destroy ice transmission", user_id_);
|
||||
LOG_INFO("[{}->{}] Destroy ice transmission", user_id_, remote_user_id_);
|
||||
return ice_agent_->DestoryIceAgent();
|
||||
}
|
||||
|
||||
@@ -3,6 +3,7 @@
|
||||
|
||||
#include <iostream>
|
||||
|
||||
#include "congestion_control.h"
|
||||
#include "ice_agent.h"
|
||||
#include "ws_transmission.h"
|
||||
|
||||
@@ -56,6 +57,7 @@ class IceTransmission {
|
||||
private:
|
||||
IceAgent *ice_agent_ = nullptr;
|
||||
WsTransmission *ice_ws_transport_ = nullptr;
|
||||
CongestionControl *congestion_control_ = nullptr;
|
||||
std::function<void(const char *, size_t)> on_receive_ice_msg_cb_ = nullptr;
|
||||
std::string local_sdp_;
|
||||
std::string remote_sdp_;
|
||||
Reference in New Issue
Block a user