Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Dependents: sht15_remote_monitoring RobotArmDemo iothub_client_sample_amqp iothub_client_sample_amqp ... more
Diff: iothubtransportamqp.c
- Revision:
- 17:597443dc65a4
- Parent:
- 16:a49121e2300b
- Child:
- 18:239d162e3607
--- a/iothubtransportamqp.c Tue Jun 07 10:48:38 2016 -0700
+++ b/iothubtransportamqp.c Fri Jun 17 17:02:10 2016 -0700
@@ -1735,7 +1735,24 @@
}
}
+static STRING_HANDLE IoTHubTransportAMQP_GetHostname(TRANSPORT_LL_HANDLE handle)
+{
+ STRING_HANDLE result;
+ /*Codes_SRS_IOTHUBTRANSPORTAMQP_02_001: [ If parameter handle is NULL then IoTHubTransportAMQP_GetHostname shall return NULL. ]*/
+ if (handle == NULL)
+ {
+ result = NULL;
+ }
+ else
+ {
+ /*Codes_SRS_IOTHUBTRANSPORTAMQP_02_002: [ Otherwise IoTHubTransportAMQP_GetHostname shall return a STRING_HANDLE for the hostname. ]*/
+ result = ((AMQP_TRANSPORT_INSTANCE*)(handle))->iotHubHostFqdn;
+ }
+ return result;
+}
+
static TRANSPORT_PROVIDER thisTransportProvider = {
+ IoTHubTransportAMQP_GetHostname,
IoTHubTransportAMQP_SetOption,
IoTHubTransportAMQP_Create,
IoTHubTransportAMQP_Destroy,
@@ -1747,7 +1764,7 @@
IoTHubTransportAMQP_GetSendStatus
};
-extern const void* AMQP_Protocol(void)
+extern const TRANSPORT_PROVIDER* AMQP_Protocol(void)
{
return &thisTransportProvider;
}
