27#ifndef __ETHERNETTCP_H__
28#define __ETHERNETTCP_H__
32#ifndef HIDE_FROM_DOXYGEN
38#define TCP_DATA_BUFFER_SIZE 600
59 uint8_t data[TCP_DATA_BUFFER_SIZE];
66 EthernetTcp() : m_tcpData(nullptr) {};
71 EthernetTcp(TcpData *tcpData);
82 uint32_t Send(uint8_t charToSend);
94 uint32_t Send(
const char *nullTermStr) {
95 return Send((
const uint8_t *)nullTermStr, strlen(nullTermStr));
109 virtual uint32_t Send(
const uint8_t *buff, uint32_t size) = 0;
116 uint16_t LocalPort();
123 volatile const TcpData *ConnectionState() {
133#ifndef HIDE_FROM_DOXYGEN
138err_t TcpAccept(
void *arg,
struct tcp_pcb *newpcb, err_t err);
143err_t TcpConnect(
void *arg,
struct tcp_pcb *tpcb, err_t err);
148void TcpError(
void *arg, err_t err);
158err_t TcpReceive(
void *arg,
struct tcp_pcb *tpcb,
struct pbuf *p,
164err_t TcpSend(
void *arg,
struct tcp_pcb *tpcb, u16_t len);
169void TcpClose(
struct tcp_pcb *pcb, EthernetTcp::TcpData *data);
Namespace to encompass the ClearCore board API.
Definition AdcManager.h:36