12 #ifndef DRV_IP_UDPSOCKET_HPP_ 13 #define DRV_IP_UDPSOCKET_HPP_ 46 const U32 send_timeout_microseconds)
override;
66 const U32 send_timeout_microseconds);
U16 getRecvPort()
get the port being received on
SocketIpStatus configureRecv(const char *hostname, const U16 port)
configure the udp socket for incoming transmissions
virtual ~UdpSocket()
to cleanup state created at instantiation
Helper for setting up Udp using Berkeley sockets as a client.
SocketIpStatus bind(const PlatformIntType fd)
bind the UDP to a port such that it can receive packets at the previously configured port ...
int PlatformIntType
DefaultTypes.hpp provides fallback defaults for the platform types.
I32 sendProtocol(const SocketDescriptor &socketDescriptor, const U8 *const data, const U32 size) override
Protocol specific implementation of send. Called directly with retry from send.
I32 recvProtocol(const SocketDescriptor &socketDescriptor, U8 *const data, const U32 size) override
Protocol specific implementation of recv. Called directly with error handling from recv...
UdpSocket()
Constructor for client socket udp implementation.
SocketIpStatus configureSend(const char *hostname, const U16 port, const U32 send_timeout_seconds, const U32 send_timeout_microseconds)
configure the udp socket for outgoing transmissions
C++-compatible configuration header for fprime configuration.
uint8_t U8
8-bit unsigned integer
SocketIpStatus
Status enumeration for socket return values.
Helper base-class for setting up Berkeley sockets.
SocketIpStatus configure(const char *hostname, const U16 port, const U32 send_timeout_seconds, const U32 send_timeout_microseconds) override
configure is disabled
SocketIpStatus openProtocol(SocketDescriptor &socketDescriptor) override
udp specific implementation for opening a socket.