28 const U32 send_timeout_seconds,
29 const U32 send_timeout_microseconds,
31 m_allocation_size = buffer_size;
32 return m_socket.
configure(hostname, port, send_timeout_seconds, send_timeout_microseconds);
58 this->
recv_out(0, buffer, recvStatus);
Fw::Buffer getBuffer() override
returns a buffer to fill with data
Interrupted status for retries.
void deallocate_out(FwIndexType portNum, Fw::Buffer &fwBuffer) const
Invoke output port deallocate.
PlatformSizeType FwSizeType
~TcpClientComponentImpl()
Destroy the component.
Auto-generated base for TcpClient component.
SocketIpStatus send(const U8 *const data, const FwSizeType size)
send data to the IP socket from the given buffer
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.
TcpClientComponentImpl(const char *const compName)
construct the TcpClient component.
Error occurred, retrying may succeed.
Receive worked, but there was no data.
Data send should be retried.
IpSocket & getSocketHandler() override
returns a reference to the socket handler
Status returned by the send call.
Socket operation successful.
Operation worked as expected.
void connected() override
called when the IPv4 system has been connected
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
FwSizeType getSize() const
bool isConnected_ready_OutputPort(FwIndexType portNum) const
Fw::Buffer allocate_out(FwIndexType portNum, FwSizeType size) const
Invoke output port allocate.
void ready_out(FwIndexType portNum) const
Invoke output port ready.
PlatformIndexType FwIndexType
SocketIpStatus
Status enumeration for socket return values.
Helper base-class for setting up Berkeley sockets.
No data available or read operation would block.
void sendBuffer(Fw::Buffer buffer, SocketIpStatus status) override
sends a buffer to be filled with data
void recv_out(FwIndexType portNum, Fw::Buffer &buffer, const Drv::ByteStreamStatus &status) const
Invoke output port recv.