vdr  2.2.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 (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 248 of file ci.c.

Constructor & Destructor Documentation

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

Definition at line 260 of file ci.c.

References camSlot, lastScrambledTime, and numTsPackets.

cCaActivationReceiver::~cCaActivationReceiver ( )
virtual

Definition at line 268 of file ci.c.

References cReceiver::Detach().

Member Function Documentation

void cCaActivationReceiver::Receive ( 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 273 of file ci.c.

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

Member Data Documentation

cCamSlot* cCaActivationReceiver::camSlot
private

Definition at line 250 of file ci.c.

Referenced by cCiTransportConnection::CamSlot(), cCaActivationReceiver(), and Receive().

time_t cCaActivationReceiver::lastScrambledTime
private

Definition at line 251 of file ci.c.

Referenced by cCaActivationReceiver(), and Receive().

int cCaActivationReceiver::numTsPackets
private

Definition at line 252 of file ci.c.

Referenced by cCaActivationReceiver(), and Receive().


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