Azure IoT middleware for FreeRTOS
azure_iot_transport_interface.h
Go to the documentation of this file.
1 /* Copyright (c) Microsoft Corporation.
2  * Licensed under the MIT License. */
3 
10 #ifndef AZURE_IOT_TRANSPORT_INTERFACE_H
11 #define AZURE_IOT_TRANSPORT_INTERFACE_H
12 
13 #include <stdint.h>
14 #include <stddef.h>
15 
127 struct NetworkContext;
128 
138 typedef int32_t ( * AzureIoTTransportRecv_t )( struct NetworkContext * pxNetworkContext,
139  void * pvBuffer,
140  size_t xBytesToRecv );
141 
151 typedef int32_t ( * AzureIoTTransportSend_t )( struct NetworkContext * pxNetworkContext,
152  const void * pvBuffer,
153  size_t xBytesToSend );
154 
159 {
162  struct NetworkContext * pxNetworkContext;
164 
165 #endif /* AZURE_IOT_TRANSPORT_INTERFACE_H */
int32_t(* AzureIoTTransportRecv_t)(struct NetworkContext *pxNetworkContext, void *pvBuffer, size_t xBytesToRecv)
User defined function for receiving data on the network.
Definition: azure_iot_transport_interface.h:138
int32_t(* AzureIoTTransportSend_t)(struct NetworkContext *pxNetworkContext, const void *pvBuffer, size_t xBytesToSend)
User defined function for sending data on the network.
Definition: azure_iot_transport_interface.h:151
struct AzureIoTTransportInterface AzureIoTTransportInterface_t
The transport layer interface.
The transport layer interface.
Definition: azure_iot_transport_interface.h:159
AzureIoTTransportRecv_t xRecv
Definition: azure_iot_transport_interface.h:160
struct NetworkContext * pxNetworkContext
Definition: azure_iot_transport_interface.h:162
AzureIoTTransportSend_t xSend
Definition: azure_iot_transport_interface.h:161