vdr  2.4.0
Public Member Functions | Protected Member Functions | Private Attributes | List of all members
cCaActivationReceiver Class Reference

Public Member Functions

 cCaActivationReceiver (const cChannel *Channel, cCamSlot *CamSlot)
 
virtual ~cCaActivationReceiver ()
 
- Public Member Functions inherited from cReceiver
 cReceiver (const cChannel *Channel=NULL, int Priority=MINPRIORITY)
 
virtual ~cReceiver ()
 
int Priority (void)
 
void SetPriority (int Priority)
 
bool AddPid (int Pid)
 
bool AddPids (const int *Pids)
 
bool AddPids (int Pid1, int Pid2, int Pid3=0, int Pid4=0, int Pid5=0, int Pid6=0, int Pid7=0, int Pid8=0, int Pid9=0)
 
bool SetPids (const cChannel *Channel)
 
void DelPid (int Pid)
 
void DelPids (const int *Pids)
 
tChannelID ChannelID (void)
 
int NumPids (void) const
 
bool IsAttached (void)
 

Protected Member Functions

virtual void Receive (const uchar *Data, int Length)
 
- Protected Member Functions inherited from cReceiver
cDeviceDevice (void)
 
void Detach (void)
 
virtual void Activate (bool On)
 

Private Attributes

cCamSlotcamSlot
 
time_t lastScrambledTime
 
int numTsPackets
 

Detailed Description

Definition at line 277 of file ci.c.

Constructor & Destructor Documentation

◆ cCaActivationReceiver()

cCaActivationReceiver::cCaActivationReceiver ( const cChannel Channel,
cCamSlot CamSlot 
)

Definition at line 289 of file ci.c.

References camSlot, lastScrambledTime, and numTsPackets.

◆ ~cCaActivationReceiver()

cCaActivationReceiver::~cCaActivationReceiver ( )
virtual

Definition at line 297 of file ci.c.

References cReceiver::Detach().

Member Function Documentation

◆ Receive()

void cCaActivationReceiver::Receive ( const uchar Data,
int  Length 
)
protectedvirtual

This function is called from the cDevice we are attached to, and delivers one TS packet from the set of PIDs the cReceiver has requested.

The data packet must be accepted immediately, and the call must return as soon as possible, without any unnecessary delay. Each TS packet will be delivered only ONCE, so the cReceiver must make sure that it will be able to buffer the data if necessary.

Implements cReceiver.

Definition at line 302 of file ci.c.

References camSlot, cDevice::CamSlot(), cReceiver::Detach(), cReceiver::Device(), dsyslog, lastScrambledTime, cCamSlot::MasterSlotNumber(), mtInfo, numTsPackets, cSkins::QueueMessage(), Skins, tr, TS_PACKET_FACTOR, TsIsScrambled(), and UNSCRAMBLE_TIME.

Member Data Documentation

◆ camSlot

cCamSlot* cCaActivationReceiver::camSlot
private

Definition at line 279 of file ci.c.

Referenced by cCaActivationReceiver(), and Receive().

◆ lastScrambledTime

time_t cCaActivationReceiver::lastScrambledTime
private

Definition at line 280 of file ci.c.

Referenced by cCaActivationReceiver(), and Receive().

◆ numTsPackets

int cCaActivationReceiver::numTsPackets
private

Definition at line 281 of file ci.c.

Referenced by cCaActivationReceiver(), and Receive().


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