diff options
author | t3sserakt <t3ss@posteo.de> | 2022-03-17 15:12:06 +0100 |
---|---|---|
committer | t3sserakt <t3ss@posteo.de> | 2022-03-17 15:12:06 +0100 |
commit | 8d41efc36bec5bc5ec29278a365d5a63d7349084 (patch) | |
tree | 99177b1b5400df5ae7180c2af1f47408cace1034 /src/include/gnunet_dhtu_plugin.h | |
parent | 95a1edacccd9b3bf769a144a12d41946d0ac25dc (diff) | |
parent | ea4a5dd6ca3d62f852b5c2de94071b7fc8f0544c (diff) | |
download | gnunet-8d41efc36bec5bc5ec29278a365d5a63d7349084.tar.gz gnunet-8d41efc36bec5bc5ec29278a365d5a63d7349084.zip |
Merge branch 'master' of ssh://git.gnunet.org/gnunet
Diffstat (limited to 'src/include/gnunet_dhtu_plugin.h')
-rw-r--r-- | src/include/gnunet_dhtu_plugin.h | 26 |
1 files changed, 8 insertions, 18 deletions
diff --git a/src/include/gnunet_dhtu_plugin.h b/src/include/gnunet_dhtu_plugin.h index 2c97d5848..fa0b5f667 100644 --- a/src/include/gnunet_dhtu_plugin.h +++ b/src/include/gnunet_dhtu_plugin.h | |||
@@ -59,15 +59,6 @@ struct GNUNET_DHTU_PreferenceHandle; | |||
59 | 59 | ||
60 | 60 | ||
61 | /** | 61 | /** |
62 | * Key used to identify peer's position in the DHT. | ||
63 | */ | ||
64 | struct GNUNET_DHTU_HashKey | ||
65 | { | ||
66 | struct GNUNET_HashCode sha512; | ||
67 | }; | ||
68 | |||
69 | |||
70 | /** | ||
71 | * The datastore service will pass a pointer to a struct | 62 | * The datastore service will pass a pointer to a struct |
72 | * of this type as the first and only argument to the | 63 | * of this type as the first and only argument to the |
73 | * entry point of each datastore plugin. | 64 | * entry point of each datastore plugin. |
@@ -88,7 +79,6 @@ struct GNUNET_DHTU_PluginEnvironment | |||
88 | * Function to call with new addresses of this peer. | 79 | * Function to call with new addresses of this peer. |
89 | * | 80 | * |
90 | * @param cls the closure | 81 | * @param cls the closure |
91 | * @param key hash position of this address in the DHT | ||
92 | * @param address address under which we are likely reachable, | 82 | * @param address address under which we are likely reachable, |
93 | * pointer will remain valid until @e address_del_cb is called; to be used for HELLOs. Example: "ip+udp://1.1.1.1:2086/" | 83 | * pointer will remain valid until @e address_del_cb is called; to be used for HELLOs. Example: "ip+udp://1.1.1.1:2086/" |
94 | * @param source handle for sending from this address, NULL if we can only receive | 84 | * @param source handle for sending from this address, NULL if we can only receive |
@@ -96,7 +86,6 @@ struct GNUNET_DHTU_PluginEnvironment | |||
96 | */ | 86 | */ |
97 | void | 87 | void |
98 | (*address_add_cb)(void *cls, | 88 | (*address_add_cb)(void *cls, |
99 | struct GNUNET_DHTU_HashKey *key, | ||
100 | const char *address, | 89 | const char *address, |
101 | struct GNUNET_DHTU_Source *source, | 90 | struct GNUNET_DHTU_Source *source, |
102 | void **ctx); | 91 | void **ctx); |
@@ -128,20 +117,19 @@ struct GNUNET_DHTU_PluginEnvironment | |||
128 | * that peer. | 117 | * that peer. |
129 | * | 118 | * |
130 | * @param cls the closure | 119 | * @param cls the closure |
131 | * @param pk public key of the target, | ||
132 | * pointer will remain valid until @e disconnect_cb is called | ||
133 | * @para peer_id hash position of the peer, | ||
134 | * pointer will remain valid until @e disconnect_cb is called | ||
135 | * @param target handle to the target, | 120 | * @param target handle to the target, |
136 | * pointer will remain valid until @e disconnect_cb is called | 121 | * pointer will remain valid until @e disconnect_cb is called |
122 | * @para pid peer identity, | ||
123 | * pointer will remain valid until @e disconnect_cb is called | ||
137 | * @param[out] ctx storage space for DHT to use in association with this target | 124 | * @param[out] ctx storage space for DHT to use in association with this target |
138 | */ | 125 | */ |
139 | void | 126 | void |
140 | (*connect_cb)(void *cls, | 127 | (*connect_cb)(void *cls, |
141 | struct GNUNET_DHTU_Target *target, | 128 | struct GNUNET_DHTU_Target *target, |
142 | struct GNUNET_DHTU_HashKey *key, | 129 | const struct GNUNET_PeerIdentity *pid, |
143 | void **ctx); | 130 | void **ctx); |
144 | 131 | ||
132 | |||
145 | /** | 133 | /** |
146 | * Function to call when we disconnected from a peer and can henceforth | 134 | * Function to call when we disconnected from a peer and can henceforth |
147 | * cannot transmit to that peer anymore. | 135 | * cannot transmit to that peer anymore. |
@@ -185,10 +173,12 @@ struct GNUNET_DHTU_PluginFunctions | |||
185 | * Request creation of a session with a peer at the given @a address. | 173 | * Request creation of a session with a peer at the given @a address. |
186 | * | 174 | * |
187 | * @param cls closure (internal context for the plugin) | 175 | * @param cls closure (internal context for the plugin) |
188 | * @param address target address to connect to | 176 | * @param pid target identity of the peer to connect to |
177 | * @param address target address URI to connect to | ||
189 | */ | 178 | */ |
190 | void | 179 | void |
191 | (*try_connect) (void *cls, | 180 | (*try_connect) (void *cls, |
181 | const struct GNUNET_PeerIdentity *pid, | ||
192 | const char *address); | 182 | const char *address); |
193 | 183 | ||
194 | 184 | ||
@@ -205,7 +195,7 @@ struct GNUNET_DHTU_PluginFunctions | |||
205 | struct GNUNET_DHTU_Target *target); | 195 | struct GNUNET_DHTU_Target *target); |
206 | 196 | ||
207 | /** | 197 | /** |
208 | * Do no long request underlay to keep the connection alive. | 198 | * Do no longer request underlay to keep the connection alive. |
209 | * | 199 | * |
210 | * @param cls closure | 200 | * @param cls closure |
211 | * @param target connection to keep alive | 201 | * @param target connection to keep alive |