#include "v2/ExternalSignalingConnection.h" namespace tgcalls { namespace { } ExternalSignalingConnection::ExternalSignalingConnection(std::function &)> onIncomingData, std::function &)> emitData) : _onIncomingData(onIncomingData), _emitData(emitData) { } ExternalSignalingConnection::~ExternalSignalingConnection() { } void ExternalSignalingConnection::start() { } void ExternalSignalingConnection::send(const std::vector &data) { _emitData(data); } void ExternalSignalingConnection::receiveExternal(const std::vector &data) { _onIncomingData(data); } }