NET_PRES_SocketPeek Function
C
uint16_t NET_PRES_SocketPeek(NET_PRES_SKT_HANDLE_T handle, void * buffer, uint16_t size);
Description
If the socket is encrypted this function will call the encryption provider's peek function. Otherwise this function calls the transport layer's peek function.
Remarks
None
Preconditions
A socket needs to have been opened by NET_PRES_SocketOpen.
Parameters
Parameters | Description |
---|---|
handle | The presentation layer socket handle. |
buffer | Destination to write the peeked data bytes. |
size | Length of bytes to peek from the RX FIFO and copy to the buffer. |