diff options
Diffstat (limited to 'src/transport/gnunet-service-transport_neighbours.h')
-rw-r--r-- | src/transport/gnunet-service-transport_neighbours.h | 17 |
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 | */ |
132 | void | 133 | void |
133 | GST_neighbours_keepalive (const struct GNUNET_PeerIdentity *neighbour); | 134 | GST_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 | */ |
142 | void | 146 | void |
143 | GST_neighbours_keepalive_response (const struct GNUNET_PeerIdentity *neighbour); | 147 | GST_neighbours_keepalive_response (const struct GNUNET_PeerIdentity *neighbour, |
148 | const struct GNUNET_MessageHeader *m); | ||
144 | 149 | ||
145 | 150 | ||
146 | /** | 151 | /** |