CDI SDK
SDK for transporting chunks of data reliably and with low latency using a polled mode network driver.
|
The declarations in this header file correspond to the definitions in cloudwatch.c. More...
Go to the source code of this file.
Typedefs | |
typedef struct CloudWatchState | CloudWatchState |
Forward reference of structure to create pointers later. | |
typedef struct CloudWatchState * | CloudWatchHandle |
Type used as the handle (pointer to an opaque structure) for managing statistics for a connection. Each handle represents a single data flow. | |
Functions | |
CdiReturnStatus | CloudWatchCreate (CdiConnectionState *con_state_ptr, CloudWatchSdkMetricsHandle cw_sdk_handle, CloudWatchHandle *return_handle_ptr) |
CdiReturnStatus | CloudWatchDestroy (CloudWatchHandle handle) |
CdiReturnStatus | CloudWatchConfigure (CloudWatchHandle handle, const CdiStatsConfigData *stats_config_ptr) |
void | CloudWatchStatisticsMessage (CloudWatchHandle handle, int stats_count, const CdiTransferStats *transfer_stats_array) |
The declarations in this header file correspond to the definitions in cloudwatch.c.
CdiReturnStatus CloudWatchConfigure | ( | CloudWatchHandle | handle, |
const CdiStatsConfigData * | stats_config_ptr ) |
Configure transfer statistics.
handle | The handle of the connection to set statistics configuration. |
stats_config_ptr | Pointer to stats configuration data. |
CdiReturnStatus CloudWatchCreate | ( | CdiConnectionState * | con_state_ptr, |
CloudWatchSdkMetricsHandle | cw_sdk_handle, | ||
CloudWatchHandle * | return_handle_ptr ) |
Create an instance of the statistics component for the specified connection.
con_state_ptr | Pointer to connection state data. |
cw_sdk_handle | CloudWatch SDK instance handle |
return_handle_ptr | Address where to write returned statistics handle. |
CdiReturnStatus CloudWatchDestroy | ( | CloudWatchHandle | handle | ) |
Free all resources related to the specified statistics component.
handle | Handle of statistics component. |
void CloudWatchStatisticsMessage | ( | CloudWatchHandle | handle, |
int | stats_count, | ||
const CdiTransferStats * | transfer_stats_array ) |
Process a message that contains new statistics to post to CloudWatch.
handle | Handle of statistics component. |
stats_count | Number of array items in transfer_stats_array. |
transfer_stats_array | Pointer to start of transfer stats array. |