mirror of
https://github.com/kunkundi/crossdesk.git
synced 2025-10-27 12:45:35 +08:00
Implementation for user data sending
This commit is contained in:
18
src/rtp/rtp_transceiver.h
Normal file
18
src/rtp/rtp_transceiver.h
Normal file
@@ -0,0 +1,18 @@
|
||||
#ifndef _RTP_TRANSCEIVER_H_
|
||||
#define _RTP_TRANSCEIVER_H_
|
||||
|
||||
#include <functional>
|
||||
|
||||
class RtpTransceiver {
|
||||
public:
|
||||
RtpTransceiver();
|
||||
~RtpTransceiver();
|
||||
|
||||
public:
|
||||
virtual void SetSendDataFunc(
|
||||
std::function<int(const char *, size_t)> data_send_func) = 0;
|
||||
|
||||
virtual void OnReceiveData(const char *data, size_t size) = 0;
|
||||
};
|
||||
|
||||
#endif
|
||||
Reference in New Issue
Block a user