xxx More...

#include <senf/Socket/Protocols/DVB/DVBDemuxHandles.hh>

Inheritance diagram for senf::DVBDemuxPESSocketProtocol:

Public Member Functions

void setPESFilter (unsigned short int pid, dmx_input_t input, dmx_output_t output, dmx_pes_type_t pesType, unsigned int flags) const
 
- Public Member Functions inherited from senf::ConcreteSocketProtocol< DVBDemux_Policy, DVBDemuxPESSocketProtocol >
Policy const & policy () const
 Access the policy instance. More...
 
 ~ConcreteSocketProtocol ()=0
 
- Public Member Functions inherited from senf::SocketProtocol
virtual void terminate () const
 Forcibly close socket. More...
 
virtual void state (SocketStateMap &map, unsigned lod) const
 Return socket state information. More...
 
int fd () const
 Get file descriptor. More...
 
 SocketProtocol ()
 
virtual ~SocketProtocol ()=0
 
- Public Member Functions inherited from senf::DVBDemuxSocketProtocol
void setBufferSize (unsigned long size) const
 set the size of the circular buffer used for filtered data. More...
 
void startFiltering () const
 
void stopFiltering () const
 
bool eof () const
 Check for end-of-file condition. More...
 
- Public Member Functions inherited from senf::DVBSocketProtocol
 DVBSocketProtocol ()
 
 ~DVBSocketProtocol ()
 
void addWrapper (boost::shared_ptr< DVBProtocolWrapper > wrap)
 
virtual void close ()
 Close socket. More...
 

Constructors

void init_client (unsigned short adapter=0, unsigned short device=0) const
 xxx More...
 

Abstract Interface Implementation

unsigned available () const
 Return (maximum) number of bytes available for reading without < blocking. More...
 

Additional Inherited Members

- Public Types inherited from senf::ConcreteSocketProtocol< DVBDemux_Policy, DVBDemuxPESSocketProtocol >
typedef DVBDemux_Policy Policy
 The protocols policy. More...
 
- Protected Member Functions inherited from senf::ConcreteSocketProtocol< DVBDemux_Policy, DVBDemuxPESSocketProtocol >
ClientSocketHandle< PolicyclientHandle () const
 Get client handle for associated socket. More...
 
ServerSocketHandle< PolicyserverHandle () const
 Get server handle for associated socket. More...
 
- Protected Member Functions inherited from senf::SocketProtocol
FileHandle fh () const
 Get a FileHandle for this instance. More...
 
void fd (int) const
 Initialize file descriptor. More...
 

Detailed Description

xxx

Definition at line 115 of file DVBDemuxHandles.hh.

Member Function Documentation

◆ available()

unsigned senf::DVBDemuxPESSocketProtocol::available ( ) const
virtual

Return (maximum) number of bytes available for reading without < blocking.

This member will check in a (very, sigh) protocol dependent way, how many bytes may be read from a socket in a single (non-blocking) read operation. If the socket does not support reading (viz. NotReadablePolicy is set), this member should always return 0.

Depending on the protocol, it may not be possible to return a good value. In this case, an upper bound may be returned (e.g.: When reading from a socket which returns ethernet frames, returning 1500 from available() is ok). However, this should only be done as a last resort. Also beware, that this number should not be too large since the socket layer will always need to allocate that number of bytes for the data to be read.

Implements senf::SocketProtocol.

Definition at line 80 of file DVBDemuxHandles.cc.

◆ init_client()

void senf::DVBDemuxPESSocketProtocol::init_client ( unsigned short  adapter = 0,
unsigned short  device = 0 
) const

xxx

Note
This member is implicitly called from the ProtocolClientSocketHandle::ProtocolClientSocketHandle() constructor

Definition at line 69 of file DVBDemuxHandles.cc.

◆ setPESFilter()

void senf::DVBDemuxPESSocketProtocol::setPESFilter ( unsigned short int  pid,
dmx_input_t  input,
dmx_output_t  output,
dmx_pes_type_t  pesType,
unsigned int  flags 
) const

Definition at line 86 of file DVBDemuxHandles.cc.


The documentation for this class was generated from the following files: