13#ifndef UdpReceiver_HPP
14#define UdpReceiver_HPP
16#include "Svc/UdpReceiver/UdpReceiverComponentAc.hpp"
22 public UdpReceiverComponentBase
34 const char *
const compName
73 static void workerTask(
void* ptr);
79 class UdpSerialBuffer :
86 UdpSerialBuffer&
operator=(
const UdpSerialBuffer& other);
88 UdpSerialBuffer(
const UdpSerialBuffer& other);
93 return sizeof(m_buff);
102 if (loc >= (size-1) ) {
106 return (size - loc - 1);
114 const U8* getBuffAddr()
const {
124 UdpSerialBuffer m_portBuff;
126 U32 m_packetsReceived;
128 U32 m_packetsDropped;
PlatformIntType NATIVE_INT_TYPE
uint8_t U8
8-bit unsigned integer
PlatformUIntType NATIVE_UINT_TYPE
SerializeBufferBase & operator=(const SerializeBufferBase &src)
equal operator
NATIVE_UINT_TYPE getBuffLength() const
returns current buffer size
~UdpReceiverComponentImpl()
void open(const char *port)
Open the connection.
void startThread(NATIVE_UINT_TYPE priority, NATIVE_UINT_TYPE stackSize, NATIVE_UINT_TYPE affinity)
start worker thread
void init(const NATIVE_INT_TYPE instance=0)
static const NATIVE_UINT_TYPE UDP_RECEIVER_MSG_SIZE