|
SASC
DVBSoftCAM
|
Inheritance diagram for cCardClientAroureos:Public Member Functions | |
| cCardClientAroureos (const char *Name) | |
| virtual bool | Init (const char *config) |
| virtual bool | Login (void) |
| virtual bool | ProcessECM (const cEcmInfo *ecm, const unsigned char *source, unsigned char *cw) |
| virtual bool | ProcessEMM (int caSys, const unsigned char *source) |
| cCardClientAroureos (const char *Name) | |
| virtual bool | Init (const char *config) |
| virtual bool | Login (void) |
| virtual bool | ProcessECM (const cEcmInfo *ecm, const unsigned char *source, unsigned char *cw) |
| virtual bool | ProcessEMM (int caSys, const unsigned char *source) |
Definition at line 28 of file aroureos.c.
| cCardClientAroureos::cCardClientAroureos | ( | const char * | Name | ) |
Definition at line 41 of file aroureos.c.
References cNetSocket::SetRWTimeout(), and cCardClient::so.
:cCardClient(Name) { so.SetRWTimeout(5*1000); }
| cCardClientAroureos::cCardClientAroureos | ( | const char * | Name | ) |
| bool cCardClientAroureos::Init | ( | const char * | config | ) | [virtual] |
Implements cCardClient.
Definition at line 64 of file aroureos.c.
References cCardClient::Logout(), and cCardClient::ParseStdConfig().
{
cMutexLock lock(this);
Logout();
int num=0;
return ParseStdConfig(config,&num) &&
ParseCardConfig(config,&num);
}
| virtual bool cCardClientAroureos::Init | ( | const char * | config | ) | [virtual] |
Implements cCardClient.
| bool cCardClientAroureos::Login | ( | void | ) | [virtual] |
Implements cCardClient.
Definition at line 73 of file aroureos.c.
References cNetSocket::Connect(), cCardClient::emmAllowed, cCardClient::hostname, L_CC_EMM, L_CC_LOGIN, cCardClient::Logout(), cCardClient::name, cCardClient::port, PRINTF, and cCardClient::so.
| virtual bool cCardClientAroureos::Login | ( | void | ) | [virtual] |
Implements cCardClient.
| virtual bool cCardClientAroureos::ProcessECM | ( | const cEcmInfo * | ecm, |
| const unsigned char * | source, | ||
| unsigned char * | cw | ||
| ) | [virtual] |
Implements cCardClient.
| bool cCardClientAroureos::ProcessECM | ( | const cEcmInfo * | ecm, |
| const unsigned char * | source, | ||
| unsigned char * | cw | ||
| ) | [virtual] |
Implements cCardClient.
Definition at line 102 of file aroureos.c.
References CheckNull(), cNetSocket::Flush(), cCardClient::RecvMsg(), SCT_LEN, cCardClient::SendMsg(), and cCardClient::so.
| bool cCardClientAroureos::ProcessEMM | ( | int | caSys, |
| const unsigned char * | source | ||
| ) | [virtual] |
Reimplemented from cCardClient.
Definition at line 82 of file aroureos.c.
References AUTOMEM, cMsgCache::Cache(), cCardClient::emmAllowed, cMsgCache::Get(), cIdSet::MatchEMM(), cCardClient::msEMM, SCT_LEN, and cCardClient::SendMsg().
{
if(emmAllowed) {
cMutexLock lock(this);
if(MatchEMM(source)) {
const int length=SCT_LEN(source);
int id=msEMM.Get(source,length,0);
if(id>0 || emmAllowed>1) {
unsigned char *buff=AUTOMEM(length+8);
memcpy(buff,"EMM",3);
memcpy(&buff[3],source,length);
SendMsg(buff,length+3);
msEMM.Cache(id,true,0);
}
return true;
}
}
return false;
}
| virtual bool cCardClientAroureos::ProcessEMM | ( | int | caSys, |
| const unsigned char * | source | ||
| ) | [virtual] |
Reimplemented from cCardClient.