12#ifndef DRV_TCPSERVER_TCPHELPER_HPP_
13#define DRV_TCPSERVER_TCPHELPER_HPP_
PlatformIntType NATIVE_INT_TYPE
uint8_t U8
8-bit unsigned integer
C++-compatible configuration header for fprime configuration.
Helper base-class for setting up Berkley sockets.
Helper for setting up Tcp using Berkley sockets as a server.
TcpServerSocket()
Constructor for client socket tcp implementation.
void shutdown()
Shutdown client socket, and listening server socket.
I32 sendProtocol(const U8 *const data, const U32 size)
Protocol specific implementation of send. Called directly with retry from send.
SocketIpStatus startup()
Opens the server socket and listens, does not block.
SocketIpStatus openProtocol(NATIVE_INT_TYPE &fd)
Tcp specific implementation for opening a client socket connected to this server.
I32 recvProtocol(U8 *const data, const U32 size)
Protocol specific implementation of recv. Called directly with error handling from recv.
SocketIpStatus
Status enumeration for socket return values.