Baseclass for DVBSocketProtocols which want use Wrappers for console. More...

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

Inheritance diagram for senf::DVBSocketProtocol:

Public Member Functions

 DVBSocketProtocol ()
 
 ~DVBSocketProtocol ()
 
void addWrapper (boost::shared_ptr< DVBProtocolWrapper > wrap)
 
virtual void close ()
 Close socket. More...
 
- 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 bool eof () const =0
 Check for end-of-file condition. 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
 

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...
 

Detailed Description

Baseclass for DVBSocketProtocols which want use Wrappers for console.

Definition at line 53 of file DVBDemuxHandles.hh.

Constructor & Destructor Documentation

◆ DVBSocketProtocol()

senf::DVBSocketProtocol::DVBSocketProtocol ( )
inline

Definition at line 57 of file DVBDemuxHandles.hh.

◆ ~DVBSocketProtocol()

senf::DVBSocketProtocol::~DVBSocketProtocol ( )
inline

Definition at line 58 of file DVBDemuxHandles.hh.

Member Function Documentation

◆ addWrapper()

void senf::DVBSocketProtocol::addWrapper ( boost::shared_ptr< DVBProtocolWrapper wrap)
inline
Parameters
wrapBinds a wrapper to a DVBProtocol, so if it is closed the functionality of the wrapper is automatically removed from console.

Definition at line 60 of file DVBDemuxHandles.hh.

◆ close()

virtual void senf::DVBSocketProtocol::close ( )
inlinevirtual

Close socket.

This override will automatically shutdown() the socket whenever it is closed.

Exceptions
senf::SystemException
Fix:
Move into (at least) BSDSOcketProtocol

Reimplemented from senf::SocketProtocol.

Definition at line 65 of file DVBDemuxHandles.hh.


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