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

ParametersDescription
handleThe presentation layer socket handle.
bufferDestination to write the peeked data bytes.
sizeLength of bytes to peek from the RX FIFO and copy to the buffer.