diff options
author | Bart Polot <bart@net.in.tum.de> | 2011-09-01 14:29:00 +0000 |
---|---|---|
committer | Bart Polot <bart@net.in.tum.de> | 2011-09-01 14:29:00 +0000 |
commit | d0e15089d37bce6911007c8c0acf8094904d9e75 (patch) | |
tree | f4d59f3453cc4be8ff5359f01c785cdc0f68ea9a /src/include | |
parent | e30105c9f36687e49952a20132d45eee99c931b6 (diff) | |
download | gnunet-d0e15089d37bce6911007c8c0acf8094904d9e75.tar.gz gnunet-d0e15089d37bce6911007c8c0acf8094904d9e75.zip |
Updated header for change in service (drop timeout from add_peer), updated doc
Diffstat (limited to 'src/include')
-rw-r--r-- | src/include/gnunet_mesh_service_new.h | 10 |
1 files changed, 4 insertions, 6 deletions
diff --git a/src/include/gnunet_mesh_service_new.h b/src/include/gnunet_mesh_service_new.h index e72bacfe7..6e8d4b557 100644 --- a/src/include/gnunet_mesh_service_new.h +++ b/src/include/gnunet_mesh_service_new.h | |||
@@ -161,7 +161,7 @@ GNUNET_MESH_disconnect (struct GNUNET_MESH_Handle *handle); | |||
161 | 161 | ||
162 | 162 | ||
163 | /** | 163 | /** |
164 | * Method called whenever a tunnel falls apart. | 164 | * Method called whenever a peer has disconnected from the tunnel. |
165 | * | 165 | * |
166 | * @param cls closure | 166 | * @param cls closure |
167 | * @param peer peer identity the tunnel stopped working with | 167 | * @param peer peer identity the tunnel stopped working with |
@@ -173,7 +173,7 @@ typedef void (*GNUNET_MESH_TunnelDisconnectHandler) (void *cls, | |||
173 | 173 | ||
174 | 174 | ||
175 | /** | 175 | /** |
176 | * Method called whenever a tunnel is established. | 176 | * Method called whenever a peer has connected to the tunnel. |
177 | * | 177 | * |
178 | * @param cls closure | 178 | * @param cls closure |
179 | * @param peer peer identity the tunnel was created to, NULL on timeout | 179 | * @param peer peer identity the tunnel was created to, NULL on timeout |
@@ -213,16 +213,14 @@ GNUNET_MESH_tunnel_destroy (struct GNUNET_MESH_Tunnel *tun); | |||
213 | 213 | ||
214 | 214 | ||
215 | /** | 215 | /** |
216 | * Request that a peer should be added to the tunnel. The existing | 216 | * Request that a peer should be added to the tunnel. The connect handler |
217 | * connect handler will be called ONCE with either success or failure. | 217 | * will be called when the peer connects |
218 | * | 218 | * |
219 | * @param tunnel handle to existing tunnel | 219 | * @param tunnel handle to existing tunnel |
220 | * @param timeout how long to try to establish a connection | ||
221 | * @param peer peer to add | 220 | * @param peer peer to add |
222 | */ | 221 | */ |
223 | void | 222 | void |
224 | GNUNET_MESH_peer_request_connect_add (struct GNUNET_MESH_Tunnel *tunnel, | 223 | GNUNET_MESH_peer_request_connect_add (struct GNUNET_MESH_Tunnel *tunnel, |
225 | struct GNUNET_TIME_Relative timeout, | ||
226 | const struct GNUNET_PeerIdentity *peer); | 224 | const struct GNUNET_PeerIdentity *peer); |
227 | 225 | ||
228 | 226 | ||