diff options
author | Matthias Wachs <wachs@net.in.tum.de> | 2014-01-30 16:58:20 +0000 |
---|---|---|
committer | Matthias Wachs <wachs@net.in.tum.de> | 2014-01-30 16:58:20 +0000 |
commit | 6a4c5ee6195fb7a6fcf90b1bae5ca36926e82023 (patch) | |
tree | f541686c7c894be4c74926fad156aae32b3f97ca /src/include/gnunet_transport_plugin.h | |
parent | fb0fd00ae3d28e937b4e15a9aa50b62fb8440268 (diff) | |
download | gnunet-6a4c5ee6195fb7a6fcf90b1bae5ca36926e82023.tar.gz gnunet-6a4c5ee6195fb7a6fcf90b1bae5ca36926e82023.zip |
send receive delay rescheduling support
Diffstat (limited to 'src/include/gnunet_transport_plugin.h')
-rw-r--r-- | src/include/gnunet_transport_plugin.h | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/src/include/gnunet_transport_plugin.h b/src/include/gnunet_transport_plugin.h index 187d5d508..f1092e949 100644 --- a/src/include/gnunet_transport_plugin.h +++ b/src/include/gnunet_transport_plugin.h | |||
@@ -194,6 +194,15 @@ typedef struct GNUNET_TIME_Relative | |||
194 | const struct GNUNET_PeerIdentity *peer, | 194 | const struct GNUNET_PeerIdentity *peer, |
195 | size_t amount_recved); | 195 | size_t amount_recved); |
196 | 196 | ||
197 | typedef void | ||
198 | (*GNUNET_TRANSPORT_RegisterQuotaNotification) (void *cls, | ||
199 | const struct GNUNET_PeerIdentity *peer, | ||
200 | const char *plugin, | ||
201 | struct Session *session); | ||
202 | |||
203 | typedef void | ||
204 | (*GNUNET_TRANSPORT_UnregisterQuotaNotification) (void *cls, | ||
205 | const struct GNUNET_PeerIdentity *peer, const char *plugin, struct Session *session); | ||
197 | 206 | ||
198 | /** | 207 | /** |
199 | * Function that returns a HELLO message. | 208 | * Function that returns a HELLO message. |
@@ -275,6 +284,9 @@ struct GNUNET_TRANSPORT_PluginEnvironment | |||
275 | */ | 284 | */ |
276 | GNUNET_TRANSPORT_UpdateAddressMetrics update_address_metrics; | 285 | GNUNET_TRANSPORT_UpdateAddressMetrics update_address_metrics; |
277 | 286 | ||
287 | GNUNET_TRANSPORT_RegisterQuotaNotification register_quota_notification; | ||
288 | |||
289 | GNUNET_TRANSPORT_UnregisterQuotaNotification unregister_quota_notification; | ||
278 | 290 | ||
279 | /** | 291 | /** |
280 | * What is the maximum number of connections that this transport | 292 | * What is the maximum number of connections that this transport |
@@ -484,6 +496,14 @@ typedef void | |||
484 | const struct GNUNET_PeerIdentity *peer, | 496 | const struct GNUNET_PeerIdentity *peer, |
485 | struct Session *session); | 497 | struct Session *session); |
486 | 498 | ||
499 | |||
500 | |||
501 | typedef void | ||
502 | (*GNUNET_TRANSPORT_UpdateInboundDelay) (void *cls, | ||
503 | const struct GNUNET_PeerIdentity *peer, | ||
504 | struct Session *session, | ||
505 | struct GNUNET_TIME_Relative delay); | ||
506 | |||
487 | /** | 507 | /** |
488 | * Function called for a quick conversion of the binary address to | 508 | * Function called for a quick conversion of the binary address to |
489 | * a numeric address. Note that the caller must not free the | 509 | * a numeric address. Note that the caller must not free the |
@@ -575,6 +595,8 @@ struct GNUNET_TRANSPORT_PluginFunctions | |||
575 | */ | 595 | */ |
576 | GNUNET_TRANSPORT_UpdateSessionTimeout update_session_timeout; | 596 | GNUNET_TRANSPORT_UpdateSessionTimeout update_session_timeout; |
577 | 597 | ||
598 | GNUNET_TRANSPORT_UpdateInboundDelay update_inbound_delay; | ||
599 | |||
578 | /** | 600 | /** |
579 | * Function that will be called whenever the transport service wants to | 601 | * Function that will be called whenever the transport service wants to |
580 | * notify the plugin that the inbound quota changed and that the plugin | 602 | * notify the plugin that the inbound quota changed and that the plugin |