cCiTransportConnection Class Reference

Collaboration diagram for cCiTransportConnection:

Collaboration graph
[legend]

List of all members.

Public Member Functions

 cCiTransportConnection (void)
 ~cCiTransportConnection ()
int Slot (void) const
int SendData (int Length, const uint8_t *Data)
int RecvData (void)
const uint8_t * Data (int &Length)
void Reset (void)

Private Member Functions

void Init (int Fd, uint8_t Slot, uint8_t Tcid)
int SendTPDU (uint8_t Tag, int Length=0, const uint8_t *Data=NULL)
int RecvTPDU (void)
int CreateConnection (void)
int Poll (void)
eState State (void)
int LastResponse (void)
bool DataAvailable (void)

Private Attributes

int fd
uint8_t slot
uint8_t tcid
eState state
cTPDUtpdu
int lastResponse
bool dataAvailable

Friends

class cCiTransportLayer


Detailed Description

Definition at line 271 of file ci.c.


Constructor & Destructor Documentation

cCiTransportConnection::cCiTransportConnection ( void   ) 

Definition at line 300 of file ci.c.

References Init(), and tpdu.

Here is the call graph for this function:

cCiTransportConnection::~cCiTransportConnection (  ) 

Definition at line 306 of file ci.c.

References tpdu.


Member Function Documentation

void cCiTransportConnection::Init ( int  Fd,
uint8_t  Slot,
uint8_t  Tcid 
) [private]

Definition at line 311 of file ci.c.

References dataAvailable, ERROR, fd, lastResponse, slot, state, stIDLE, tcid, and tpdu.

Referenced by cCiTransportConnection(), cCiTransportLayer::NewConnection(), RecvTPDU(), and Reset().

int cCiTransportConnection::SendTPDU ( uint8_t  Tag,
int  Length = 0,
const uint8_t *  Data = NULL 
) [private]

Definition at line 324 of file ci.c.

References fd, slot, tcid, and cTPDU::Write().

Referenced by CreateConnection(), Poll(), RecvData(), RecvTPDU(), and SendData().

Here is the call graph for this function:

int cCiTransportConnection::RecvTPDU ( void   )  [private]

Definition at line 332 of file ci.c.

References CAM_READ_TIMEOUT, DATA_INDICATOR, dataAvailable, ERROR, esyslog, FATALERRNO, fd, Init(), lastResponse, OK, cTPDU::Read(), SendTPDU(), slot, stACTIVE, state, cTPDU::Status(), stCREATION, stDELETION, stIDLE, T_CTC_REPLY, T_DATA_LAST, T_DATA_MORE, T_DELETE_TC, T_DTC_REPLY, T_REQUEST_TC, T_SB, cTPDU::Tag(), tcid, cTPDU::Tcid(), and tpdu.

Referenced by CreateConnection(), Poll(), RecvData(), and SendData().

Here is the call graph for this function:

int cCiTransportConnection::CreateConnection ( void   )  [private]

Definition at line 407 of file ci.c.

References dsyslog, ERROR, MAX_CONNECT_RETRIES, OK, RecvTPDU(), SendTPDU(), state, stCREATION, stIDLE, T_CREATE_TC, and T_CTC_REPLY.

Here is the call graph for this function:

int cCiTransportConnection::Poll ( void   )  [private]

Definition at line 430 of file ci.c.

References ERROR, OK, RecvTPDU(), SendTPDU(), stACTIVE, state, and T_DATA_LAST.

Referenced by cCiTransportLayer::Process().

Here is the call graph for this function:

eState cCiTransportConnection::State ( void   )  [inline, private]

Definition at line 286 of file ci.c.

Referenced by cCiTransportLayer::Process().

int cCiTransportConnection::LastResponse ( void   )  [inline, private]

Definition at line 287 of file ci.c.

Referenced by cCiTransportLayer::Process().

bool cCiTransportConnection::DataAvailable ( void   )  [inline, private]

Definition at line 288 of file ci.c.

Referenced by cCiTransportLayer::Process().

int cCiTransportConnection::Slot ( void   )  const [inline]

Definition at line 292 of file ci.c.

Referenced by cCiHandler::CreateSession(), and cCiTransportLayer::Process().

int cCiTransportConnection::SendData ( int  Length,
const uint8_t *  Data 
)

Definition at line 376 of file ci.c.

References ERROR, MAX_TPDU_DATA, OK, RecvTPDU(), SendTPDU(), stACTIVE, state, T_DATA_LAST, T_DATA_MORE, and T_SB.

Referenced by cCiHandler::Send(), and cCiSession::SendData().

Here is the call graph for this function:

int cCiTransportConnection::RecvData ( void   ) 

Definition at line 393 of file ci.c.

References ERROR, OK, RecvTPDU(), SendTPDU(), and T_RCV.

Referenced by cCiTransportLayer::Process().

Here is the call graph for this function:

const uint8_t * cCiTransportConnection::Data ( int &  Length  ) 

Definition at line 400 of file ci.c.

References cTPDU::Data(), and tpdu.

Referenced by cCiHandler::Process().

Here is the call graph for this function:

void cCiTransportConnection::Reset ( void   ) 

Definition at line 439 of file ci.c.

References Init().

Referenced by cCiTransportLayer::ResetSlot().

Here is the call graph for this function:


Friends And Related Function Documentation

friend class cCiTransportLayer [friend]

Definition at line 272 of file ci.c.


Member Data Documentation

int cCiTransportConnection::fd [private]

Definition at line 274 of file ci.c.

Referenced by Init(), RecvTPDU(), and SendTPDU().

uint8_t cCiTransportConnection::slot [private]

Definition at line 275 of file ci.c.

Referenced by Init(), RecvTPDU(), and SendTPDU().

uint8_t cCiTransportConnection::tcid [private]

Definition at line 276 of file ci.c.

Referenced by Init(), RecvTPDU(), and SendTPDU().

eState cCiTransportConnection::state [private]

Definition at line 277 of file ci.c.

Referenced by CreateConnection(), Init(), Poll(), RecvTPDU(), and SendData().

cTPDU* cCiTransportConnection::tpdu [private]

Definition at line 278 of file ci.c.

Referenced by cCiTransportConnection(), Data(), Init(), RecvTPDU(), and ~cCiTransportConnection().

int cCiTransportConnection::lastResponse [private]

Definition at line 279 of file ci.c.

Referenced by Init(), and RecvTPDU().

bool cCiTransportConnection::dataAvailable [private]

Definition at line 280 of file ci.c.

Referenced by Init(), and RecvTPDU().


The documentation for this class was generated from the following file:
Generated on Tue Nov 6 20:06:24 2007 for VDR by  doxygen 1.5.3-20071008