| 12345678910111213141516171819202122232425262728293031323334353637 |
- #ifndef TINYPLAYER3_RECEIVER_BASE_H
- #define TINYPLAYER3_RECEIVER_BASE_H
- #include "frame_decoder/decoder_base.h"
- #include <boost/asio/io_context.hpp>
- #include <memory>
- enum receiver_type {
- RECEIVER_TCP,
- RECEIVER_UDP,
- RECEIVER_UDP_FEC
- };
- struct receiver_config {
- std::string server_addr;
- uint16_t server_port;
- decoder_base *decoder;
- };
- class receiver_base {
- public:
- receiver_base();
- virtual ~receiver_base();
- void run();
- boost::asio::io_context *get_ctx();
- private:
- struct impl;
- std::unique_ptr<impl> pimpl;
- };
- #endif //TINYPLAYER3_RECEIVER_BASE_H
|