30 const U32 send_timeout_seconds,
31 const U32 send_timeout_microseconds,
35 FW_ASSERT(buffer_size <= std::numeric_limits<U32>::max(), static_cast<FwAssertArgType>(buffer_size));
36 m_allocation_size = buffer_size;
37 return m_socket.
configure(hostname, port, send_timeout_seconds, send_timeout_microseconds);
51 return allocate_out(0, static_cast<U32>(m_allocation_size));
65 this->
recv_out(0, buffer, recvStatus);
void connected()
called when the IPv4 system has been connected
Interrupted status for retries.
~TcpClientComponentImpl()
Destroy the component.
SocketIpStatus send(const U8 *const data, const U32 size)
send data to the IP socket from the given buffer
Auto-generated base for TcpClient component.
Fw::Buffer getBuffer()
returns a buffer to fill with data
Status associated with the received data.
PlatformIntType NATIVE_INT_TYPE
SocketIpStatus configure(const char *hostname, const U16 port, const U32 send_timeout_seconds=SOCKET_SEND_TIMEOUT_SECONDS, const U32 send_timeout_microseconds=SOCKET_SEND_TIMEOUT_MICROSECONDS, FwSizeType buffer_size=1024)
Configures the TcpClient settings but does not open the connection.
Data send should be retried.
PlatformSizeType FwSizeType
TcpClientComponentImpl(const char *const compName)
construct the TcpClient component.
Receive worked, but there was no data.
Receive worked as expected.
Receive error occurred retrying may succeed.
Socket operation successful.
void sendBuffer(Fw::Buffer buffer, SocketIpStatus status)
sends a buffer to be filled with data
C++-compatible configuration header for fprime configuration.
Fw::Buffer allocate_out(FwIndexType portNum, U32 size)
Invoke output port allocate.
void deallocate_out(FwIndexType portNum, Fw::Buffer &fwBuffer)
Invoke output port deallocate.
virtual SocketIpStatus configure(const char *hostname, const U16 port, const U32 send_timeout_seconds, const U32 send_timeout_microseconds)
configure the ip socket with host and transmission timeouts
void recv_out(FwIndexType portNum, Fw::Buffer &recvBuffer, const Drv::RecvStatus &recvStatus)
Invoke output port recv.
Status returned by the send call.
SocketIpStatus
Status enumeration for socket return values.
Helper base-class for setting up Berkeley sockets.
No data available or read operation would block.
IpSocket & getSocketHandler()
returns a reference to the socket handler
bool isConnected_ready_OutputPort(FwIndexType portNum)
void ready_out(FwIndexType portNum)
Invoke output port ready.
Send error occurred retrying may succeed.