#include <senf/Socket/Protocols/DVB/DVBDemuxSocketProtocol.hh>
Public Member Functions | |
void | setBufferSize (unsigned long size) const |
set the size of the circular buffer used for filtered data. More... | |
void | startFiltering () const |
void | stopFiltering () const |
Public Member Functions inherited from senf::SocketProtocol | |
virtual SocketPolicyBase const & | policy () const =0 |
Access the policy instance. More... | |
virtual unsigned | available () const =0 |
Return (maximum) number of bytes available for reading without < blocking. More... | |
virtual void | close () |
Close socket. More... | |
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 |
Abstract Interface Implementation | |
bool | eof () const |
Check for end-of-file condition. More... | |
Additional Inherited Members | |
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... | |
Definition at line 35 of file DVBDemuxSocketProtocol.hh.
|
virtual |
Check for end-of-file condition.
This is another check which (like available()) is extremely protocol dependent. This member will return true
only, if at end-of-file. If the protocol does not support the notion of EOF, this member should always return false
.
Implements senf::SocketProtocol.
Definition at line 54 of file DVBDemuxSocketProtocol.cc.
void senf::DVBDemuxSocketProtocol::setBufferSize | ( | unsigned long | size | ) | const |
set the size of the circular buffer used for filtered data.
The default size is two maximum sized sections, i.e. if this function is not called a buffer size of 2 * 4096 bytes will be used.
[in] | size | Size of circular buffer. |
Definition at line 31 of file DVBDemuxSocketProtocol.cc.
void senf::DVBDemuxSocketProtocol::startFiltering | ( | ) | const |
Definition at line 40 of file DVBDemuxSocketProtocol.cc.
void senf::DVBDemuxSocketProtocol::stopFiltering | ( | ) | const |
Definition at line 47 of file DVBDemuxSocketProtocol.cc.