aboutsummaryrefslogtreecommitdiff
path: root/src/transport/gnunet-service-transport_neighbours.h
diff options
context:
space:
mode:
authorMatthias Wachs <wachs@net.in.tum.de>2013-12-18 11:31:56 +0000
committerMatthias Wachs <wachs@net.in.tum.de>2013-12-18 11:31:56 +0000
commit7dd5cd13dd34be6a6ba90e586f599cfada951648 (patch)
treead099f24b7521ba33ac8e27d0b8d44ddec509f67 /src/transport/gnunet-service-transport_neighbours.h
parent0e5752c4c3a0a3a76c5d434be10fab4613835bda (diff)
downloadgnunet-7dd5cd13dd34be6a6ba90e586f599cfada951648.tar.gz
gnunet-7dd5cd13dd34be6a6ba90e586f599cfada951648.zip
new timeout function and keep alives with nonces
Diffstat (limited to 'src/transport/gnunet-service-transport_neighbours.h')
-rw-r--r--src/transport/gnunet-service-transport_neighbours.h17
1 files changed, 11 insertions, 6 deletions
diff --git a/src/transport/gnunet-service-transport_neighbours.h b/src/transport/gnunet-service-transport_neighbours.h
index f58a74faf..b5abcf5da 100644
--- a/src/transport/gnunet-service-transport_neighbours.h
+++ b/src/transport/gnunet-service-transport_neighbours.h
@@ -125,22 +125,27 @@ GST_neighbours_calculate_receive_delay (const struct GNUNET_PeerIdentity
125 125
126/** 126/**
127 * Keep the connection to the given neighbour alive longer, 127 * Keep the connection to the given neighbour alive longer,
128 * we received a KEEPALIVE (or equivalent). 128 * we received a KEEPALIVE (or equivalent); send a response.
129 * 129 *
130 * @param neighbour neighbour to keep alive 130 * @param neighbour neighbour to keep alive (by sending keep alive response)
131 * @param m the keep alive message containing the nonce to respond to
131 */ 132 */
132void 133void
133GST_neighbours_keepalive (const struct GNUNET_PeerIdentity *neighbour); 134GST_neighbours_keepalive (const struct GNUNET_PeerIdentity *neighbour,
135 const struct GNUNET_MessageHeader *m);
134 136
135 137
136/** 138/**
137 * We received a KEEP_ALIVE_RESPONSE message and use this to calculate latency 139 * We received a KEEP_ALIVE_RESPONSE message and use this to calculate
138 * to this peer 140 * latency to this peer. Pass the updated information (existing ats
141 * plus calculated latency) to ATS.
139 * 142 *
140 * @param neighbour neighbour to keep alive 143 * @param neighbour neighbour to keep alive
144 * @param m the message containing the keep alive response
141 */ 145 */
142void 146void
143GST_neighbours_keepalive_response (const struct GNUNET_PeerIdentity *neighbour); 147GST_neighbours_keepalive_response (const struct GNUNET_PeerIdentity *neighbour,
148 const struct GNUNET_MessageHeader *m);
144 149
145 150
146/** 151/**