27 #ifndef __ETHERNETTCPSERVER_H__ 28 #define __ETHERNETTCPSERVER_H__ 99 uint32_t
Send(
const uint8_t *buff, uint32_t size)
override;
111 uint32_t
Send(uint8_t charToSend) {
112 return EthernetTcp::Send(charToSend);
125 uint32_t
Send(
const char *nullTermStr) {
126 return EthernetTcp::Send(nullTermStr);
129 using EthernetTcp::LocalPort;
142 uint16_t m_serverPort;
145 TcpData *m_tcpDataClient[CLIENT_MAX];
151 #endif // !__ETHERNETTCPSERVER_H__ uint32_t Send(const char *nullTermStr)
Send data to all clients managed by the server.
Definition: EthernetTcpServer.h:125
EthernetTcpClient Available()
Return a reference to a client that has incoming data.
uint32_t Send(uint8_t charToSend)
Send data to all clients managed by the server.
Definition: EthernetTcpServer.h:111
void Begin()
Set up the server to begin listening for incoming TCP connections.
uint32_t Send(const uint8_t *buff, uint32_t size) override
Send data to all clients managed by the server.
Namespace to encompass the ClearCore board API.
Definition: AdcManager.h:36
ClearCore TCP client class.
Definition: EthernetTcpClient.h:54
ClearCore TCP server class.
Definition: EthernetTcpServer.h:45
bool Ready()
Is the server ready to accept a client?
EthernetTcpServer(uint16_t port)
Construct a TCP server.
EthernetTcpClient Accept()
Return a client with an active connection.