libClearCore/src/EthernetTcp.cpp
err_t TcpSend(void *arg, struct tcp_pcb *tpcb, u16_t len) {
    (void)len;
    EthernetTcp::TcpData *data = (EthernetTcp::TcpData *)arg;

    // Either the TCP PCB couldn't be allocated or the PCB target is wrong.
    if (data == nullptr || data->pcb != tpcb) {
        return ERR_ARG;
    }
    return ERR_OK;
}
/**
    The TCP send complete callback.
**/
The TCP send complete callback.
The TCP send complete callback .
err_t TcpSend(void *arg, struct tcp_pcb *tpcb, u16_t len) {
    (void)len;
    EthernetTcp::TcpData *data = (EthernetTcp::TcpData *)arg;
    if (data == nullptr || data->pcb != tpcb) {
        return ERR_ARG;
    }
    return ERR_OK;
}
err_t TcpSend ( void * arg , struct tcp_pcb * tpcb , u16_t len ) { ( void ) len ; EthernetTcp :: TcpData * data = ( EthernetTcp :: TcpData * ) arg ; if ( data == nullptr || data -> pcb != tpcb ) { return ERR_ARG ; } return ERR_OK ; }
The TCP send complete callback.
The TCP send complete callback .
// Either the TCP PCB couldn't be allocated or the PCB target is wrong.