13#ifndef UdpComponentImpl_HPP
14#define UdpComponentImpl_HPP
19#include "Drv/ByteStreamDriverModel/ByteStreamDriverModelComponentAc.hpp"
PlatformIntType NATIVE_INT_TYPE
@ SOCKET_SEND_TIMEOUT_SECONDS
@ SOCKET_SEND_TIMEOUT_MICROSECONDS
Helper base-class for setting up Berkley sockets.
supports a task to read a given socket adaptation
SocketIpStatus configureRecv(const char *hostname, const U16 port)
Configures the Udp receive settings but does not open the connection.
void sendBuffer(Fw::Buffer buffer, SocketIpStatus status)
sends a buffer to be filled with data
Fw::Buffer getBuffer()
returns a buffer to fill with data
IpSocket & getSocketHandler()
returns a reference to the socket handler
void connected()
called when the IPv4 system has been connected
Drv::PollStatus poll_handler(const NATIVE_INT_TYPE portNum, Fw::Buffer &fwBuffer)
not supported
~UdpComponentImpl()
Destroy the component.
void init(const NATIVE_INT_TYPE instance=0)
Initialize this component.
SocketIpStatus configureSend(const char *hostname, const U16 port, const U32 send_timeout_seconds=SOCKET_SEND_TIMEOUT_SECONDS, const U32 send_timeout_microseconds=SOCKET_SEND_TIMEOUT_MICROSECONDS)
Configures the Udp send settings but does not open the connection.
Helper for setting up Udp using Berkley sockets as a client.
SocketIpStatus
Status enumeration for socket return values.