13 #ifndef TcpServerComponentImpl_HPP 14 #define TcpServerComponentImpl_HPP 19 #include <config/IpCfg.hpp> 182 #endif // end TcpServerComponentImpl Auto-generated base for TcpServer component.
void sendBuffer(Fw::Buffer buffer, SocketIpStatus status) override
sends a buffer to be filled with data
PlatformSizeType FwSizeType
IpSocket & getSocketHandler() override
returns a reference to the socket handler
Helper for setting up Tcp using Berkeley sockets as a server.
SocketIpStatus configure(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, FwSizeType buffer_size=1024)
Configures the TcpServer settings but does not open the connection.
supports a task to read a given socket adaptation
void readLoop() override
read from the socket, overridden to start and terminate the server socket
Status returned by the send call.
bool isStarted()
is started
void connected() override
called when the IPv4 system has been connected
TcpServerComponentImpl(const char *const compName)
construct the TcpServer component.
void terminate()
terminate the server socket
~TcpServerComponentImpl()
Destroy the component.
U16 getListenPort()
get the port being listened on
PlatformIndexType FwIndexType
friend class TcpServerTester
SocketIpStatus
Status enumeration for socket return values.
Helper base-class for setting up Berkeley sockets.
Fw::Buffer getBuffer() override
returns a buffer to fill with data
SocketIpStatus startup()
startup the server socket for communications