aboutsummaryrefslogtreecommitdiff
path: root/src/mesh/gnunet-service-mesh_connection.h
diff options
context:
space:
mode:
authorBart Polot <bart@net.in.tum.de>2013-10-11 13:30:43 +0000
committerBart Polot <bart@net.in.tum.de>2013-10-11 13:30:43 +0000
commit9a50e92d4a43f917b0cd1ed34d4932470cb3a3da (patch)
treefe5abe83a5f4fc15ede27eb5e13cd5702fcfadb3 /src/mesh/gnunet-service-mesh_connection.h
parentb3a8bef570a61d01694bb68ad52a5e4e8b585c0f (diff)
downloadgnunet-9a50e92d4a43f917b0cd1ed34d4932470cb3a3da.tar.gz
gnunet-9a50e92d4a43f917b0cd1ed34d4932470cb3a3da.zip
- fix "broken connection" notifications
Diffstat (limited to 'src/mesh/gnunet-service-mesh_connection.h')
-rw-r--r--src/mesh/gnunet-service-mesh_connection.h11
1 files changed, 5 insertions, 6 deletions
diff --git a/src/mesh/gnunet-service-mesh_connection.h b/src/mesh/gnunet-service-mesh_connection.h
index 9e9dec512..b55d55fe6 100644
--- a/src/mesh/gnunet-service-mesh_connection.h
+++ b/src/mesh/gnunet-service-mesh_connection.h
@@ -110,15 +110,16 @@ GMC_handle_confirm (void *cls, const struct GNUNET_PeerIdentity *peer,
110 * Core handler for notifications of broken paths 110 * Core handler for notifications of broken paths
111 * 111 *
112 * @param cls Closure (unused). 112 * @param cls Closure (unused).
113 * @param peer Peer identity of sending neighbor. 113 * @param id Peer identity of sending neighbor.
114 * @param message Message. 114 * @param message Message.
115 * 115 *
116 * @return GNUNET_OK to keep the connection open, 116 * @return GNUNET_OK to keep the connection open,
117 * GNUNET_SYSERR to close it (signal serious error) 117 * GNUNET_SYSERR to close it (signal serious error)
118 */ 118 */
119int 119int
120GMC_handle_broken (void *cls, const struct GNUNET_PeerIdentity *peer, 120GMC_handle_broken (void* cls,
121 const struct GNUNET_MessageHeader *message); 121 const struct GNUNET_PeerIdentity* id,
122 const struct GNUNET_MessageHeader* message);
122 123
123/** 124/**
124 * Core handler for tunnel destruction 125 * Core handler for tunnel destruction
@@ -340,12 +341,10 @@ GMC_bck_keepalive (void *cls, const struct GNUNET_SCHEDULER_TaskContext *tc);
340 * 341 *
341 * @param c Connection on which there has been a disconnection. 342 * @param c Connection on which there has been a disconnection.
342 * @param peer Peer that disconnected. 343 * @param peer Peer that disconnected.
343 * @param my_full_id My ID (to send to other peers).
344 */ 344 */
345void 345void
346GMC_notify_broken (struct MeshConnection *c, 346GMC_notify_broken (struct MeshConnection *c,
347 struct MeshPeer *peer, 347 struct MeshPeer *peer);
348 struct GNUNET_PeerIdentity *my_full_id);
349 348
350/** 349/**
351 * Is this peer the first one on the connection? 350 * Is this peer the first one on the connection?