RDK Documentation (Open Sourced RDK Components)
PacketSender Class Reference
Collaboration diagram for PacketSender:
Collaboration graph

Public Member Functions

void Close ()
 
void Flush ()
 
bool Init ()
 
bool Init (const char *socket_path)
 
void SendPacket (PacketPtr &&packet)
 
void senderTask ()
 
bool IsRunning ()
 

Static Public Member Functions

static PacketSenderInstance ()
 

Private Member Functions

void closeSenderTask ()
 
void flushPacketQueue ()
 
void sendPacket (PacketPtr &&pkt)
 
bool initSenderTask ()
 
bool initSocket (const char *socket_path)
 

Private Attributes

std::thread mSendThread
 
int mSubtecSocketHandle
 
std::atomic_bool running
 
std::queue< PacketPtr > mPacketQueue
 
std::mutex mPktMutex
 
std::condition_variable mCv
 
std::mutex mStartMutex
 
int mSockBufSize
 

yes

Definition at line 53 of file PacketSender.hpp.


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