13 #ifndef TcpServerComponentImpl_HPP 14 #define TcpServerComponentImpl_HPP 172 #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
IpSocket & getSocketHandler() override
returns a reference to the socket handler
PlatformIntType NATIVE_INT_TYPE
Helper for setting up Tcp using Berkeley sockets as a server.
PlatformSizeType FwSizeType
supports a task to read a given socket adaptation
void readLoop() override
read from the socket, overridden to start and terminate the server socket
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 TcpServer settings but does not open the connection.
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.
Status returned by the send call.
U16 getListenPort()
get the port being listened on
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