senf::DVBDemuxSectionSocketProtocol Class Reference
[Protocol Implementations (Concrete Protocol Classes)]

#include <senf/Socket/Protocols/DVB/DVBDemuxHandles.hh>
Inheritance diagram for senf::DVBDemuxSectionSocketProtocol:
Inheritance graph
[legend]

List of all members.


Detailed Description

Definition at line 85 of file DVBDemuxHandles.hh.


Public Member Functions

void  setSectionFilter (unsigned short int pid, unsigned char filter=0x3e, unsigned int flags=DMX_IMMEDIATE_START|DMX_CHECK_CRC, unsigned char mask=0xff, unsigned char mode=0x00, unsigned int timeout=0x00) const

Constructors

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

Abstract Interface Implementation

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

Member Function Documentation

unsigned senf::DVBDemuxSectionSocketProtocol::
available ()

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 55 of file DVBDemuxHandles.cc.

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

xxx

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

Definition at line 44 of file DVBDemuxHandles.cc.

void senf::DVBDemuxSectionSocketProtocol::
setSectionFilter ( unsigned short int  pid,
unsigned char  filter = 0x3e,
unsigned int  flags = DMX_IMMEDIATE_START | DMX_CHECK_CRC,
unsigned char  mask = 0xff,
unsigned char  mode = 0x00,
unsigned int  timeout = 0x00 )

Definition at line 61 of file DVBDemuxHandles.cc.


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