#ifndef TGCALLS_DIRECT_CONNECTION_CHANNEL_H #define TGCALLS_DIRECT_CONNECTION_CHANNEL_H #include #include #include namespace tgcalls { class DirectConnectionChannel { public: virtual ~DirectConnectionChannel() = default; virtual std::vector addOnIncomingPacket(std::function>)> &&) = 0; virtual void removeOnIncomingPacket(std::vector &token) = 0; virtual void sendPacket(std::unique_ptr> &&packet) = 0; }; } // namespace tgcalls #endif