TCPIP_TCP_Discard Function

C

uint16_t TCPIP_TCP_Discard(
    TCP_SOCKET hTCP
);

Description

This function discards any pending data in the TCP RX FIFO.

Preconditions

TCP is initialized.

Parameters

ParametersDescription
hTCPThe socket whose RX buffer/FIFO is to be cleared.

Returns

The number of bytes that have been discarded from the RX buffer.