15 #include <config/IpCfg.hpp> 29 const U32 send_timeout_seconds,
30 const U32 send_timeout_microseconds) {
31 return m_socket.
configureSend(ipv4_address, port, send_timeout_seconds, send_timeout_microseconds);
35 m_allocation_size = buffer_size;
66 this->
recv_out(0, buffer, recvStatus);
void recv_out(FwIndexType portNum, Fw::Buffer &buffer, const Drv::ByteStreamStatus &status) const
Invoke output port recv.
void ready_out(FwIndexType portNum) const
Invoke output port ready.
U16 getRecvPort()
get the port being received on
U16 getRecvPort()
get the port being received on
Failed to read socket with disconnect.
Interrupted status for retries.
PlatformSizeType FwSizeType
SocketIpStatus send(const U8 *const data, const FwSizeType size)
send data to the IP socket from the given buffer
SocketIpStatus configureRecv(const char *const ipv4_address, const U16 port)
configure the udp socket for incoming transmissions
Error occurred, retrying may succeed.
UdpComponentImpl(const char *const compName)
construct the TcpClient component.
Receive worked, but there was no data.
Data send should be retried.
void connected() override
called when the IPv4 system has been connected
Status returned by the send call.
SocketIpStatus configureSend(const char *const ipv4_address, 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.
Socket operation successful.
Fw::Buffer getBuffer() override
returns a buffer to fill with data
SocketIpStatus configureSend(const char *const ipv4_address, const U16 port, const U32 send_timeout_seconds, const U32 send_timeout_microseconds)
configure the udp socket for outgoing transmissions
Operation worked as expected.
void deallocate_out(FwIndexType portNum, Fw::Buffer &fwBuffer) const
Invoke output port deallocate.
FwSizeType getSize() const
IpSocket & getSocketHandler() override
returns a reference to the socket handler
SocketIpStatus configureRecv(const char *const ipv4_address, const U16 port, FwSizeType buffer_size=1024)
Configures the Udp receive settings but does not open the connection.
PlatformIndexType FwIndexType
void sendBuffer(Fw::Buffer buffer, SocketIpStatus status) override
sends a buffer to be filled with data
Fw::Buffer allocate_out(FwIndexType portNum, FwSizeType size) const
Invoke output port allocate.
Auto-generated base for Udp component.
SocketIpStatus
Status enumeration for socket return values.
~UdpComponentImpl()
Destroy the component.
Helper base-class for setting up Berkeley sockets.
No data available or read operation would block.
bool isConnected_ready_OutputPort(FwIndexType portNum) const