FreeRTOS: Platform
Platform portability layer
Return to main page ↑

Read incoming data available in the network buffers.

size_t ( * receiveUpto )( void * pConnection,
uint8_t * pBuffer,
size_t bufferSize );

Reads bytes available in the network buffers into pBuffer.

  • If there is less data available than requested, it will return the available number of bytes.
  • If there is more data available than requested, it will fill the whole pBuffer.
  • If there is no data available, it will return 0.
Parameters
[in]pConnectionThe connection to receive data on, defined by the network stack.
[out]pBufferThe buffer to place the incoming network data.
[in]bufferSizeThe size of pBuffer.
Returns
The number of bytes successfully received.