aboutsummaryrefslogtreecommitdiff
path: root/src/include/gnunet_transport_application_service.h
diff options
context:
space:
mode:
authorChristian Grothoff <christian@grothoff.org>2019-05-05 14:02:24 +0200
committerChristian Grothoff <christian@grothoff.org>2019-05-05 14:02:24 +0200
commite94c5914935ca0842ca762d343cb167c68b8a79a (patch)
tree4719d48bbcd9be334854d0ed88ba76f5b259b296 /src/include/gnunet_transport_application_service.h
parentb84057d7593651e16a161de9f2ec51f93c98589d (diff)
downloadgnunet-e94c5914935ca0842ca762d343cb167c68b8a79a.tar.gz
gnunet-e94c5914935ca0842ca762d343cb167c68b8a79a.zip
use new PriorityPreferences consistently, note on deprecation
Diffstat (limited to 'src/include/gnunet_transport_application_service.h')
-rw-r--r--src/include/gnunet_transport_application_service.h28
1 files changed, 28 insertions, 0 deletions
diff --git a/src/include/gnunet_transport_application_service.h b/src/include/gnunet_transport_application_service.h
index 8c63a8234..c12bd7441 100644
--- a/src/include/gnunet_transport_application_service.h
+++ b/src/include/gnunet_transport_application_service.h
@@ -65,6 +65,34 @@ GNUNET_TRANSPORT_application_done (
65 65
66 66
67/** 67/**
68 * An application would like TRANSPORT to connect to a peer.
69 *
70 * @param ch handle
71 * @param peer identity of the peer we need an address for
72 * @param pk what kind of application will the application require (can be
73 * #GNUNET_MQ_PRIO_BACKGROUND, we will still try to connect)
74 * @param bw desired bandwith, can be zero (we will still try to connect)
75 * @return suggest handle, NULL if a request is already pending
76 */
77struct GNUNET_TRANSPORT_ApplicationSuggestHandle *
78GNUNET_TRANSPORT_application_suggest (
79 struct GNUNET_TRANSPORT_ApplicationHandle *ch,
80 const struct GNUNET_PeerIdentity *peer,
81 enum GNUNET_MQ_PriorityPreferences pk,
82 struct GNUNET_BANDWIDTH_Value32NBO bw);
83
84
85/**
86 * We no longer care about being connected to a peer.
87 *
88 * @param sh handle to stop
89 */
90void
91GNUNET_TRANSPORT_application_suggest_cancel (
92 struct GNUNET_TRANSPORT_ApplicationSuggestHandle *sh);
93
94
95/**
68 * An application (or a communicator) has received a HELLO (or other address 96 * An application (or a communicator) has received a HELLO (or other address
69 * data of another peer) and wants TRANSPORT to validate that the address is 97 * data of another peer) and wants TRANSPORT to validate that the address is
70 * correct. The result is NOT returned, in fact TRANSPORT may do nothing 98 * correct. The result is NOT returned, in fact TRANSPORT may do nothing