TCPPeek Function

Microchip TCP/IP Stack

Microchip TCP/IP Stack Help
TCPPeek Function
C
BYTE TCPPeek(
    TCP_SOCKET hTCP, 
    WORD wStart
);
Description

Peaks at one byte in the TCP RX FIFO without removing it from the buffer.

Preconditions

TCP is initialized.

Parameters
Parameters 
Description 
hTCP 
The socket to peak from (read without removing from stream). 
wStart 
Zero-indexed starting position within the FIFO to peek from. 
Remarks

Use the TCPPeekArray() function to read more than one byte. It will perform better than calling TCPPeek() in a loop.

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