aboutsummaryrefslogtreecommitdiff
path: root/src/core/gnunet-service-core_sessions.h
diff options
context:
space:
mode:
authorChristian Grothoff <christian@grothoff.org>2014-04-23 11:04:53 +0000
committerChristian Grothoff <christian@grothoff.org>2014-04-23 11:04:53 +0000
commita19683a4b76e10843c4e75db928bac5750c6430a (patch)
tree7aeff0c4d49b5f3750c569216e77912016fd5a81 /src/core/gnunet-service-core_sessions.h
parent21bac846638fbbbe2b03672295d4f14fc3ceb839 (diff)
downloadgnunet-a19683a4b76e10843c4e75db928bac5750c6430a.tar.gz
gnunet-a19683a4b76e10843c4e75db928bac5750c6430a.zip
fix #3348: send typemap confirmation messages, perform faster typemap retransmissions for unconfirmed typemaps, restart retransmissions on reconnect
Diffstat (limited to 'src/core/gnunet-service-core_sessions.h')
-rw-r--r--src/core/gnunet-service-core_sessions.h28
1 files changed, 26 insertions, 2 deletions
diff --git a/src/core/gnunet-service-core_sessions.h b/src/core/gnunet-service-core_sessions.h
index 81581e84d..793d7af8c 100644
--- a/src/core/gnunet-service-core_sessions.h
+++ b/src/core/gnunet-service-core_sessions.h
@@ -42,6 +42,29 @@ GSC_SESSIONS_create (const struct GNUNET_PeerIdentity *peer,
42 42
43 43
44/** 44/**
45 * The other peer has indicated that he 'lost' the session
46 * (KX down), reinitialize the session on our end, in particular
47 * this means to restart the typemap transmission.
48 *
49 * @param peer peer that is now connected
50 */
51void
52GSC_SESSIONS_reinit (const struct GNUNET_PeerIdentity *peer);
53
54
55/**
56 * The other peer has confirmed receiving our type map,
57 * check if it is current and if so, stop retransmitting it.
58 *
59 * @param peer peer that confirmed the type map
60 * @param msg confirmation message we received
61 */
62void
63GSC_SESSIONS_confirm_typemap (const struct GNUNET_PeerIdentity *peer,
64 const struct GNUNET_MessageHeader *msg);
65
66
67/**
45 * End the session with the given peer (we are no longer 68 * End the session with the given peer (we are no longer
46 * connected). 69 * connected).
47 * 70 *
@@ -102,12 +125,13 @@ GSC_SESSIONS_transmit (struct GSC_ClientActiveRequest *car,
102 125
103 126
104/** 127/**
105 * Broadcast a message to all neighbours. 128 * Broadcast an updated typemap message to all neighbours.
129 * Restarts the retransmissions until the typemaps are confirmed.
106 * 130 *
107 * @param msg message to transmit 131 * @param msg message to transmit
108 */ 132 */
109void 133void
110GSC_SESSIONS_broadcast (const struct GNUNET_MessageHeader *msg); 134GSC_SESSIONS_broadcast_typemap (const struct GNUNET_MessageHeader *msg);
111 135
112 136
113/** 137/**