Transport interface definition to send and receive data over the network.
More...
#include <stdint.h>
#include <stddef.h>
Go to the source code of this file.
Transport interface definition to send and receive data over the network.
◆ AzureIoTTransportRecv_t
typedef int32_t( * AzureIoTTransportRecv_t) (struct NetworkContext *pxNetworkContext, void *pvBuffer, size_t xBytesToRecv) |
User defined function for receiving data on the network.
- Parameters
-
[in] | pxNetworkContext | Implementation-defined network context. |
[in] | pvBuffer | Buffer to receive the data into. |
[in] | xBytesToRecv | Number of bytes requested from the network. |
- Returns
- The number of bytes received or a negative error code.
◆ AzureIoTTransportSend_t
typedef int32_t( * AzureIoTTransportSend_t) (struct NetworkContext *pxNetworkContext, const void *pvBuffer, size_t xBytesToSend) |
User defined function for sending data on the network.
- Parameters
-
[in] | pxNetworkContext | Implementation-defined network context. |
[in] | pvBuffer | Buffer containing the bytes to send over the network stack. |
[in] | xBytesToSend | Number of bytes to send over the network. |
- Returns
- The number of bytes sent or a negative error code.