Repo created
This commit is contained in:
parent
81b91f4139
commit
f8c34fa5ee
22732 changed files with 4815320 additions and 2 deletions
21
TMessagesProj/jni/voip/tgcalls/DirectConnectionChannel.h
Normal file
21
TMessagesProj/jni/voip/tgcalls/DirectConnectionChannel.h
Normal file
|
|
@ -0,0 +1,21 @@
|
|||
#ifndef TGCALLS_DIRECT_CONNECTION_CHANNEL_H
|
||||
#define TGCALLS_DIRECT_CONNECTION_CHANNEL_H
|
||||
|
||||
#include <functional>
|
||||
#include <memory>
|
||||
#include <vector>
|
||||
|
||||
namespace tgcalls {
|
||||
|
||||
class DirectConnectionChannel {
|
||||
public:
|
||||
virtual ~DirectConnectionChannel() = default;
|
||||
|
||||
virtual std::vector<uint8_t> addOnIncomingPacket(std::function<void(std::shared_ptr<std::vector<uint8_t>>)> &&) = 0;
|
||||
virtual void removeOnIncomingPacket(std::vector<uint8_t> &token) = 0;
|
||||
virtual void sendPacket(std::unique_ptr<std::vector<uint8_t>> &&packet) = 0;
|
||||
};
|
||||
|
||||
} // namespace tgcalls
|
||||
|
||||
#endif
|
||||
Loading…
Add table
Add a link
Reference in a new issue