Nagram/TMessagesProj/jni/voip/tgcalls/v2/ExternalSignalingConnection.cpp
2023-02-19 01:24:25 +04:00

31 lines
660 B
C++

#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);
}
}