diff options
author | Bart Polot <bart@net.in.tum.de> | 2013-10-11 13:30:43 +0000 |
---|---|---|
committer | Bart Polot <bart@net.in.tum.de> | 2013-10-11 13:30:43 +0000 |
commit | 9a50e92d4a43f917b0cd1ed34d4932470cb3a3da (patch) | |
tree | fe5abe83a5f4fc15ede27eb5e13cd5702fcfadb3 /src/mesh/gnunet-service-mesh_connection.h | |
parent | b3a8bef570a61d01694bb68ad52a5e4e8b585c0f (diff) | |
download | gnunet-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.h | 11 |
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 | */ |
119 | int | 119 | int |
120 | GMC_handle_broken (void *cls, const struct GNUNET_PeerIdentity *peer, | 120 | GMC_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 | */ |
345 | void | 345 | void |
346 | GMC_notify_broken (struct MeshConnection *c, | 346 | GMC_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? |