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.