F´ Flight Software - C/C++ Documentation
NASA-v1.5.0
A framework for building embedded system applications to NASA flight quality standards.
|
Go to the documentation of this file.
16 #include <Svc/UdpSender/UdpSenderComponentAc.hpp>
18 #include <sys/socket.h>
19 #include <arpa/inet.h>
25 public UdpSenderComponentBase
37 const char *
const compName
107 return sizeof(m_buff);
116 if (loc >= (size-1) ) {
120 return (size - loc - 1);
NATIVE_UINT_TYPE getBuffCapacity(void) const
returns capacity, not current size, of buffer
#define PRIVATE
overridable private for unit testing
uint8_t U8
8-bit unsigned integer
~UdpSenderComponentImpl(void)
U8 m_seq
packet sequence number; used to detect drops on the server end
NATIVE_UINT_TYPE m_bytesSent
number of bytes sent to server
PRIVATE NATIVE_UINT_TYPE context
static const NATIVE_UINT_TYPE UDP_SENDER_MSG_SIZE
void init(const NATIVE_INT_TYPE queueDepth, const NATIVE_INT_TYPE msgSize, const NATIVE_INT_TYPE instance=0)
struct sockaddr_in m_servAddr
server address for sends
const U8 * getBuffAddr(void) const
gets buffer address for data reading, const version
U8 * getBuffAddr(void)
gets buffer address for data filling
unsigned int NATIVE_UINT_TYPE
native unsigned integer type declaration
NATIVE_INT_TYPE m_fd
file descriptor for UDP socket
NATIVE_UINT_TYPE getBuffLength() const
returns current buffer size
NATIVE_UINT_TYPE getBuffSerLeft(void) const
UdpSenderComponentImpl(const char *const compName)
const SerializeBufferBase & operator=(const SerializeBufferBase &src)
equal operator
PRIVATE Fw::SerializeBufferBase & Buffer
Svc::UdpSenderComponentImpl::UdpSerialBuffer m_sendBuff
NATIVE_UINT_TYPE m_packetsSent
number of packets sent to server
int NATIVE_INT_TYPE
native integer type declaration
void open(const char *addr, const char *port)