RDK Documentation (Open Sourced RDK Components)
TRM::Connection Class Reference
Inheritance diagram for TRM::Connection:
Inheritance graph
Collaboration diagram for TRM::Connection:
Collaboration graph

Data Structures

class  IdleState
 
class  State
 
class  WaitHeaderState
 
class  WaitPayloadState
 

Public Slots

void onConnected ()
 
void onReadyRead (void)
 
void onBytesWritten (qint64 bytes)
 
void onDisconnected (void)
 
void onSocketError (QAbstractSocket::SocketError socketError)
 
void onStateChanged (QAbstractSocket::SocketState socketState)
 
void onHasMessageToSend (const std::vector< uint8_t > out) const
 

Signals

void disconnected (Connection *)
 
void messageReceived (const Connection &)
 
void readyRead (void)
 
void hasMessageToSend (const std::vector< uint8_t > out) const
 

Public Member Functions

 Connection (QTcpSocket &_tcpSocket)
 
void send (const std::vector< uint8_t > &out) const
 
void sendMessage (const QByteArray &outgoingMessage) const
 
void recvMessage (QByteArray &recvBuffer) const
 
const QByteArray & recvMessage (void) const
 
void sendAsync (const std::vector< uint8_t > &out) const
 

Static Public Member Functions

static bool isTestClient (uint32_t clientId)
 
static bool isXREClient (uint32_t clientId)
 
static bool isTunerAgentClient (uint32_t clientId)
 
static bool isTRMDiagClient (uint32_t clientId)
 
static bool isSDVAgentClient (uint32_t clientId)
 

Static Public Attributes

static const uint32_t kInvalidClientId = (~0)
 
static const uint32_t kRecorderClientId = 0XFFFFFF00
 
static const uint32_t kTunerAgentId = 0XFFFFFF02
 
static const uint32_t kSDVAgentId = 0XFFFFFF03
 
static const uint32_t kTRMMgrClientId = 0XFFFFFF04
 
static const uint32_t kTrmClientId = 0x00000000
 
static const uint32_t kTrmMonitorId = 0xFFFFFFF0
 

Private Member Functions

QAbstractSocket & getSocket (void)
 

Private Attributes

IdleState idleState
 
WaitHeaderState waitHeaderState
 
WaitPayloadState waitPayloadState
 
QAbstractSocket & socket
 
QQueue< QByteArray * > incomingMessages
 
QByteArray * messageByteArray
 
Statestate
 
uint32_t clientId
 

yes

Definition at line 43 of file Connection.h.


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