1
0
Fork 0
mirror of https://github.com/ossrs/srs.git synced 2025-02-15 04:42:04 +00:00
srs/trunk/src/srt/srt_data.hpp

24 lines
516 B
C++
Raw Normal View History

2020-01-17 11:43:54 +00:00
#ifndef SRT_DATA_H
#define SRT_DATA_H
#include <string>
#include <memory>
class SRT_DATA_MSG {
public:
2020-01-21 11:20:09 +00:00
SRT_DATA_MSG(unsigned int len, const std::string& path);
2020-01-17 11:43:54 +00:00
SRT_DATA_MSG(unsigned char* data_p, unsigned int len, const std::string& path);
~SRT_DATA_MSG();
unsigned int data_len();
unsigned char* get_data();
std::string get_path();
private:
unsigned int _len;
unsigned char* _data_p;
std::string _key_path;
};
typedef std::shared_ptr<SRT_DATA_MSG> SRT_DATA_MSG_PTR;
#endif