diff options
Diffstat (limited to 'src/transport/transport_api2_communication.c')
-rw-r--r-- | src/transport/transport_api2_communication.c | 15 |
1 files changed, 14 insertions, 1 deletions
diff --git a/src/transport/transport_api2_communication.c b/src/transport/transport_api2_communication.c index d1e28cc36..b048ad851 100644 --- a/src/transport/transport_api2_communication.c +++ b/src/transport/transport_api2_communication.c | |||
@@ -1081,7 +1081,6 @@ GNUNET_TRANSPORT_communicator_address_add ( | |||
1081 | return ai; | 1081 | return ai; |
1082 | } | 1082 | } |
1083 | 1083 | ||
1084 | |||
1085 | /** | 1084 | /** |
1086 | * Notify transport service about an address that this communicator no | 1085 | * Notify transport service about an address that this communicator no |
1087 | * longer provides for this peer. | 1086 | * longer provides for this peer. |
@@ -1100,6 +1099,20 @@ GNUNET_TRANSPORT_communicator_address_remove ( | |||
1100 | GNUNET_free (ai); | 1099 | GNUNET_free (ai); |
1101 | } | 1100 | } |
1102 | 1101 | ||
1102 | /** | ||
1103 | * Notify transport service that this communicator no longer provides all its addresses for this peer. | ||
1104 | * | ||
1105 | * @param ch The communicator handle. | ||
1106 | */ | ||
1107 | void | ||
1108 | GNUNET_TRANSPORT_communicator_address_remove_all ( | ||
1109 | struct GNUNET_TRANSPORT_CommunicatorHandle *ch) | ||
1110 | { | ||
1111 | for (struct GNUNET_TRANSPORT_AddressIdentifier *ai = ch->ai_head; NULL != ai; | ||
1112 | ai = ai->next) | ||
1113 | GNUNET_TRANSPORT_communicator_address_remove (ai); | ||
1114 | } | ||
1115 | |||
1103 | 1116 | ||
1104 | /* ************************* Backchannel *************************** */ | 1117 | /* ************************* Backchannel *************************** */ |
1105 | 1118 | ||