12 #ifndef DRV_TCPSERVER_TCPHELPER_HPP_ 13 #define DRV_TCPSERVER_TCPHELPER_HPP_ 17 #include <config/IpCfg.hpp> SocketIpStatus startup(SocketDescriptor &socketDescriptor)
Opens the server socket and listens, does not block.
PlatformSizeType FwSizeType
FwSignedSizeType sendProtocol(const SocketDescriptor &socketDescriptor, const U8 *const data, const FwSizeType size) override
Protocol specific implementation of send. Called directly with retry from send.
Helper for setting up Tcp using Berkeley sockets as a server.
PlatformSignedSizeType FwSignedSizeType
U16 getListenPort()
get the port being listened on
TcpServerSocket()
Constructor for client socket tcp implementation.
uint8_t U8
8-bit unsigned integer
SocketIpStatus
Status enumeration for socket return values.
void terminate(const SocketDescriptor &socketDescriptor)
close the server socket created by the startup call
Helper base-class for setting up Berkeley sockets.
SocketIpStatus openProtocol(SocketDescriptor &socketDescriptor) override
Tcp specific implementation for opening a client socket connected to this server. ...
FwSignedSizeType recvProtocol(const SocketDescriptor &socketDescriptor, U8 *const data, const FwSizeType size) override
Protocol specific implementation of recv. Called directly with error handling from recv...