#ifndef TGCALLS_EXTERNAL_SIGNALING_CONNECTION_H_ #define TGCALLS_EXTERNAL_SIGNALING_CONNECTION_H_ #include #include #include "SignalingConnection.h" namespace rtc { class AsyncPacketSocket; } namespace tgcalls { class ExternalSignalingConnection : public SignalingConnection { public: ExternalSignalingConnection(std::function &)> onIncomingData, std::function &)> emitData); virtual ~ExternalSignalingConnection(); virtual void start() override; virtual void send(const std::vector &data) override; virtual void receiveExternal(const std::vector &data) override; private: std::function &)> _onIncomingData; std::function &)> _emitData; }; } // namespace tgcalls #endif // TGCALLS_EXTERNAL_SIGNALING_CONNECTION_H_