TCPPeekArray Function

Microchip TCP/IP Stack

Microchip TCP/IP Stack Help
TCPPeekArray Function
C
WORD TCPPeekArray(
    TCP_SOCKET hTCP, 
    BYTE * vBuffer, 
    WORD wLen, 
    WORD wStart
);
Description

Reads a specified number of data bytes from the TCP RX FIFO without removing them from the buffer. No TCP control actions are taken as a result of this function (ex: no window update is sent to the remote node).

Preconditions

TCP is initialized.

Parameters
Parameters 
Description 
hTCP 
The socket to peak from (read without removing from stream). 
vBuffer 
Destination to write the peeked data bytes. 
wLen 
Length of bytes to peak from the RX FIFO and copy to vBuffer. 
wStart 
Zero-indexed starting position within the FIFO to start peeking from. 
Remarks

None

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