TCPGetArray Function

Microchip TCP/IP Stack

Microchip TCP/IP Stack Help
TCPGetArray Function
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.

Microchip TCP/IP Stack 5.42.08 - June 15, 2013
Copyright © 2012 Microchip Technology, Inc.  All rights reserved.