C
WORD TCPGetArray( TCP_SOCKET hTCP, BYTE* buffer, WORD count );
Description
Reads an array of data bytes from a TCP socket's receive FIFO. The data is removed from the FIFO in the process.
Preconditions
TCP is initialized.
Parameters
Parameters |
Description |
hTCP |
The socket from which data is to be read. |
buffer |
Pointer to the array to store data that was read. |
len |
Number of bytes to be read. |
Returns
The number of bytes read from the socket. If less than len, the RX FIFO buffer became empty or the socket is not conected.