diff options
author | Christian Grothoff <christian@grothoff.org> | 2017-01-30 12:27:11 +0100 |
---|---|---|
committer | Christian Grothoff <christian@grothoff.org> | 2017-01-30 12:27:11 +0100 |
commit | 48332ff7d4631f9be2a059c2fe150e3be5fb37f6 (patch) | |
tree | ec9da85c16ca25f37ffc4bb4d835360ffb6f134a /src/cadet/gnunet-service-cadet-new_tunnels.h | |
parent | c4d0522fd416da83f77475e2bb8351a7b5b72cc3 (diff) | |
download | gnunet-48332ff7d4631f9be2a059c2fe150e3be5fb37f6.tar.gz gnunet-48332ff7d4631f9be2a059c2fe150e3be5fb37f6.zip |
have tunnel tell channel which connection it used for transmission, so we can track connection performance by observing ACKs on the channel-level
Diffstat (limited to 'src/cadet/gnunet-service-cadet-new_tunnels.h')
-rw-r--r-- | src/cadet/gnunet-service-cadet-new_tunnels.h | 15 |
1 files changed, 14 insertions, 1 deletions
diff --git a/src/cadet/gnunet-service-cadet-new_tunnels.h b/src/cadet/gnunet-service-cadet-new_tunnels.h index f8613d236..a81bc2341 100644 --- a/src/cadet/gnunet-service-cadet-new_tunnels.h +++ b/src/cadet/gnunet-service-cadet-new_tunnels.h | |||
@@ -202,6 +202,19 @@ GCT_send_channel_destroy (struct CadetTunnel *t, | |||
202 | 202 | ||
203 | 203 | ||
204 | /** | 204 | /** |
205 | * Function called when a transmission requested using #GCT_send is done. | ||
206 | * | ||
207 | * @param cls closure | ||
208 | * @param ctn identifier of the connection used for transmission, NULL if | ||
209 | * the transmission failed (to be used to match ACKs to the | ||
210 | * respective connection for connection performance evaluation) | ||
211 | */ | ||
212 | typedef void | ||
213 | (*GCT_SendContinuation)(void *cls, | ||
214 | const struct GNUNET_CADET_ConnectionTunnelIdentifier *cid); | ||
215 | |||
216 | |||
217 | /** | ||
205 | * Sends an already built message on a tunnel, encrypting it and | 218 | * Sends an already built message on a tunnel, encrypting it and |
206 | * choosing the best connection if not provided. | 219 | * choosing the best connection if not provided. |
207 | * | 220 | * |
@@ -214,7 +227,7 @@ GCT_send_channel_destroy (struct CadetTunnel *t, | |||
214 | struct CadetTunnelQueueEntry * | 227 | struct CadetTunnelQueueEntry * |
215 | GCT_send (struct CadetTunnel *t, | 228 | GCT_send (struct CadetTunnel *t, |
216 | const struct GNUNET_MessageHeader *message, | 229 | const struct GNUNET_MessageHeader *message, |
217 | GNUNET_SCHEDULER_TaskCallback cont, | 230 | GCT_SendContinuation cont, |
218 | void *cont_cls); | 231 | void *cont_cls); |
219 | 232 | ||
220 | 233 | ||