4 // Fraunhofer Institute for Open Communication Systems (FOKUS)
5 // Competence Center NETwork research (NET), St. Augustin, GERMANY
6 // Thorsten Horstmann <tho@berlios.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.
24 \brief DVBDemuxHandles public header */
26 #ifndef HH_DVBDemuxHandles_
27 #define HH_DVBDemuxHandles_ 1
30 #include "../../../Socket/FramingPolicy.hh"
31 #include "../../../Socket/CommunicationPolicy.hh"
32 #include "../../../Socket/ReadWritePolicy.hh"
33 #include "../../../Socket/ProtocolClientSocketHandle.hh"
34 #include "DVBDemuxSocketProtocol.hh"
36 //#include "DVBDemuxHandles.mpp"
37 ///////////////////////////////hh.p////////////////////////////////////////
41 /// \addtogroup concrete_protocol_group
44 typedef MakeSocketPolicy<
46 DatagramFramingPolicy,
47 UnconnectedCommunicationPolicy,
50 >::policy DVBDemux_Policy; ///< Socket Policy for xxxx
54 class DVBDemuxSectionSocketProtocol
55 : public ConcreteSocketProtocol<DVBDemux_Policy, DVBDemuxSectionSocketProtocol>,
56 public DVBDemuxSocketProtocol
59 ///////////////////////////////////////////////////////////////////////////
65 void init_client(unsigned short adapter=0, unsigned short device=0) const; ///< xxx
66 /**< \note This member is implicitly called from the
67 ProtocolClientSocketHandle::ProtocolClientSocketHandle()
71 ///\name Abstract Interface Implementation
74 unsigned available() const;
78 void setSectionFilter(struct dmx_sct_filter_params *filter) const;
81 typedef ProtocolClientSocketHandle<DVBDemuxSectionSocketProtocol> DVBDemuxSectionHandle;
83 // ----------------------------------------------------------------
87 class DVBDemuxPESSocketProtocol
88 : public ConcreteSocketProtocol<DVBDemux_Policy,DVBDemuxPESSocketProtocol>,
89 public DVBDemuxSocketProtocol
92 ///////////////////////////////////////////////////////////////////////////
98 void init_client(unsigned short adapter=0, unsigned short device=0) const; ///< xxx
99 /**< \note This member is implicitly called from the
100 ProtocolClientSocketHandle::ProtocolClientSocketHandle()
104 ///\name Abstract Interface Implementation
107 unsigned available() const;
111 void setPESFilter(struct dmx_pes_filter_params *filter) const;
114 typedef ProtocolClientSocketHandle<DVBDemuxPESSocketProtocol> DVBDemuxPESHandle;
117 // ----------------------------------------------------------------
122 class DVBDvrSocketProtocol
123 : public ConcreteSocketProtocol<DVBDemux_Policy, DVBDvrSocketProtocol>,
124 public DVBDemuxSocketProtocol
127 ///////////////////////////////////////////////////////////////////////////
128 // internal interface
130 ///\name Constructors
133 void init_client(unsigned short adapter=0, unsigned short device=0) const; ///< xxx
134 /**< \note This member is implicitly called from the
135 ProtocolClientSocketHandle::ProtocolClientSocketHandle()
139 ///\name Abstract Interface Implementation
142 unsigned available() const;
147 typedef ProtocolClientSocketHandle<DVBDvrSocketProtocol> DVBDvrHandle;
153 ///////////////////////////////hh.e////////////////////////////////////////
154 //#include "DVBDemuxHandles.cci"
155 //#include "DVBDemuxHandles.ct"
156 //#include "DVBDemuxHandles.cti"
163 // c-file-style: "senf"
164 // indent-tabs-mode: nil
165 // ispell-local-dictionary: "american"
166 // compile-command: "scons -u test"
167 // comment-column: 40