4 // Fraunhofer Institut fuer offene Kommunikationssysteme (FOKUS)
5 // Kompetenzzentrum fuer Satelitenkommunikation (SatCom)
6 // Stefan Bund <stefan.bund@fokus.fraunhofer.de>
8 // This program is free software; you can redistribute it and/or modify
9 // it under the terms of the GNU General Public License as published by
10 // the Free Software Foundation; either version 2 of the License, or
11 // (at your option) any later version.
13 // This program is distributed in the hope that it will be useful,
14 // but WITHOUT ANY WARRANTY; without even the implied warranty of
15 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
16 // GNU General Public License for more details.
18 // You should have received a copy of the GNU General Public License
19 // along with this program; if not, write to the
20 // Free Software Foundation, Inc.,
21 // 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
27 #ifndef HH_DVBDemuxHandles_
28 #define HH_DVBDemuxHandles_ 1
31 #include "BufferingPolicy.hh"
32 #include "FramingPolicy.hh"
33 #include "CommunicationPolicy.hh"
34 #include "ReadWritePolicy.hh"
35 #include "ProtocolClientSocketHandle.hh"
36 #include "DVBDemuxProtocol.hh"
38 //#include "DVBDemuxHandles.mpp"
39 ///////////////////////////////hh.p////////////////////////////////////////
43 /// \addtogroup concrete_protocol_group
46 typedef MakeSocketPolicy<
48 DatagramFramingPolicy,
49 UnconnectedCommunicationPolicy,
53 >::policy DVBDemux_Policy; ///< Socket Policy for xxxx
57 class DVBDemuxSectionProtocol
58 : public ConcreteSocketProtocol<DVBDemux_Policy>,
59 public DVBDemuxProtocol
62 ///////////////////////////////////////////////////////////////////////////
68 void init_client() const; ///< xxx
69 /**< \note This member is implicitly called from the
70 ProtocolClientSocketHandle::ProtocolClientSocketHandle()
74 ///\name Abstract Interface Implementation
76 unsigned available() const;
78 std::auto_ptr<SocketProtocol> clone() const;
82 void setSectionFilter(struct dmx_sct_filter_params *filter) const;
85 typedef ProtocolClientSocketHandle<DVBDemuxSectionProtocol> DVBDemuxSectionHandle;
87 // ----------------------------------------------------------------
91 class DVBDemuxPESProtocol
92 : public ConcreteSocketProtocol<DVBDemux_Policy>,
93 public DVBDemuxProtocol
96 ///////////////////////////////////////////////////////////////////////////
102 void init_client() const; ///< xxx
103 /**< \note This member is implicitly called from the
104 ProtocolClientSocketHandle::ProtocolClientSocketHandle()
108 ///\name Abstract Interface Implementation
110 unsigned available() const;
112 std::auto_ptr<SocketProtocol> clone() const;
116 void setPESFilter(struct dmx_pes_filter_params *filter) const;
119 typedef ProtocolClientSocketHandle<DVBDemuxPESProtocol> DVBDemuxPESHandle;
122 // ----------------------------------------------------------------
128 : public ConcreteSocketProtocol<DVBDemux_Policy>,
129 public DVBDemuxProtocol
132 ///////////////////////////////////////////////////////////////////////////
133 // internal interface
135 ///\name Constructors
138 void init_client() const; ///< xxx
139 /**< \note This member is implicitly called from the
140 ProtocolClientSocketHandle::ProtocolClientSocketHandle()
144 ///\name Abstract Interface Implementation
146 unsigned available() const;
148 std::auto_ptr<SocketProtocol> clone() const;
154 typedef ProtocolClientSocketHandle<DVBDvrProtocol> DVBDvrHandle;
158 ///////////////////////////////hh.e////////////////////////////////////////
159 //#include "DVBDemuxHandles.cci"
160 //#include "DVBDemuxHandles.ct"
161 //#include "DVBDemuxHandles.cti"
168 // c-file-style: "senf"
169 // indent-tabs-mode: nil
170 // ispell-local-dictionary: "american"
171 // compile-command: "scons -u test"
172 // comment-column: 40