/* * Demux.h * * Created on: 2014. 6. 11. * Author: oskwon */ #ifndef DEMUX_H_ #define DEMUX_H_ #include #include #include "trap.h" #include "Util.h" #include "Http.h" #include "Source.h" //---------------------------------------------------------------------- class Demuxer : public Source { public: int pmt_pid; int video_pid; int audio_pid; private: int fd; int sock; int demux_id; int pat_pid; std::vector pids; protected: std::string webif_reauest(std::string request) throw(http_trap); bool already_exist(std::vector &pidlist, int pid); void set_filter(std::vector &new_pids) throw(trap); bool parse_webif_response(std::string& response, std::vector &new_pids); public: Demuxer(HttpHeader *header) throw(http_trap); virtual ~Demuxer() throw(); int get_fd() const throw(); }; //---------------------------------------------------------------------- #endif /* DEMUX_H_ */