Telegram-Android/TMessagesProj/jni/voip/tgcalls/v2/ExternalSignalingConnection.cpp

31 lines
660 B
C++
Raw Normal View History

2023-02-18 22:24:25 +01:00
#include "v2/ExternalSignalingConnection.h"
namespace tgcalls {
namespace {
}
ExternalSignalingConnection::ExternalSignalingConnection(std::function<void(const std::vector<uint8_t> &)> onIncomingData, std::function<void(const std::vector<uint8_t> &)> emitData) :
_onIncomingData(onIncomingData),
_emitData(emitData) {
}
ExternalSignalingConnection::~ExternalSignalingConnection() {
}
void ExternalSignalingConnection::start() {
}
void ExternalSignalingConnection::send(const std::vector<uint8_t> &data) {
_emitData(data);
}
void ExternalSignalingConnection::receiveExternal(const std::vector<uint8_t> &data) {
_onIncomingData(data);
}
}