MythTV  0.27pre
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Groups Pages
Classes | Enumerations | Functions | Variables
dvbci.cpp File Reference

Go to the source code of this file.

Classes

class  cTPDU
class  cCiTransportConnection
class  cCiTransportLayer
class  cCiSession
class  cCiResourceManager
class  cCiApplicationInformation
class  cCiConditionalAccessSupport
class  cCiDateTime
class  cCiMMI

Enumerations

enum  eState { stIDLE, stCREATION, stACTIVE, stDELETION }

Functions

static ssize_t safe_read (int filedes, void *buffer, size_t size)
static const uint8_t * GetLength (const uint8_t *Data, int &Length)
static uint8_t * SetLength (uint8_t *Data, int Length)
static char * CopyString (int Length, const uint8_t *Data)
static char * GetString (int &Length, const uint8_t **Data)

Variables

static bool DumpTPDUDataTransfer = false
static bool DebugProtocol = false
static bool _connected = false

Enumeration Type Documentation

enum eState
Enumerator:
stIDLE 
stCREATION 
stACTIVE 
stDELETION 

Definition at line 363 of file dvbci.cpp.

Function Documentation

static ssize_t safe_read ( int  filedes,
void buffer,
size_t  size 
)
static

Definition at line 78 of file dvbci.cpp.

Referenced by cTPDU::Read().

static const uint8_t* GetLength ( const uint8_t *  Data,
int Length 
)
static
Parameters
LengthGets the length field from the beginning of Data.
Returns
Returns a pointer to the first byte after the length and stores the length value in Length.

Definition at line 90 of file dvbci.cpp.

Referenced by cTPDU::GetData(), cCiSession::GetData(), and GetString().

static uint8_t* SetLength ( uint8_t *  Data,
int  Length 
)
static
Parameters
LengthSets the length field at the beginning of Data.
Returns
Returns a pointer to the first byte after the length.

Definition at line 105 of file dvbci.cpp.

Referenced by cTPDU::cTPDU(), cCiSession::SendData(), and PESPacket::SetTotalLength().

static char* CopyString ( int  Length,
const uint8_t *  Data 
)
static
Parameters
DataCopies the string at Data.
Returns
Returns a pointer to a newly allocated string.

Definition at line 125 of file dvbci.cpp.

Referenced by GetString(), and cCiMMI::Process().

static char* GetString ( int Length,
const uint8_t **  Data 
)
static
Parameters
DataGets the string at Data.
Returns
Returns a pointer to a newly allocated string, or NULL in case of error. Upon return Length and Data represent the remaining data after the string has been skipped.

Definition at line 135 of file dvbci.cpp.

Referenced by cCiMMI::GetText(), and cCiApplicationInformation::Process().

Variable Documentation

bool DumpTPDUDataTransfer = false
static

Definition at line 58 of file dvbci.cpp.

Referenced by cTPDU::Dump().

bool DebugProtocol = false
static

Definition at line 59 of file dvbci.cpp.

bool _connected = false
static

Definition at line 60 of file dvbci.cpp.

Referenced by cLlCiHandler::connected(), and cCiTransportConnection::CreateConnection().