aboutsummaryrefslogtreecommitdiff
path: root/src/fs/gnunet-service-fs_cp.h
diff options
context:
space:
mode:
authorChristian Grothoff <christian@grothoff.org>2013-03-25 12:16:24 +0000
committerChristian Grothoff <christian@grothoff.org>2013-03-25 12:16:24 +0000
commitf13909574bb89556bbb54e5555ed56ceee5a9f61 (patch)
treef3a294971445b5497f740c928dbacec28a450ed5 /src/fs/gnunet-service-fs_cp.h
parentf88dc96655c7d92efb65c80ebc85f55e64ec86b5 (diff)
downloadgnunet-f13909574bb89556bbb54e5555ed56ceee5a9f61.tar.gz
gnunet-f13909574bb89556bbb54e5555ed56ceee5a9f61.zip
-towards using ATS for latency info
Diffstat (limited to 'src/fs/gnunet-service-fs_cp.h')
-rw-r--r--src/fs/gnunet-service-fs_cp.h17
1 files changed, 12 insertions, 5 deletions
diff --git a/src/fs/gnunet-service-fs_cp.h b/src/fs/gnunet-service-fs_cp.h
index 365548665..84668d301 100644
--- a/src/fs/gnunet-service-fs_cp.h
+++ b/src/fs/gnunet-service-fs_cp.h
@@ -200,14 +200,10 @@ struct GSF_PeerTransmitHandle;
200 * records. 200 * records.
201 * 201 *
202 * @param peer identity of peer that connected 202 * @param peer identity of peer that connected
203 * @param atsi performance data for the connection
204 * @param atsi_count number of records in 'atsi'
205 * @return handle to connected peer entry 203 * @return handle to connected peer entry
206 */ 204 */
207struct GSF_ConnectedPeer * 205struct GSF_ConnectedPeer *
208GSF_peer_connect_handler_ (const struct GNUNET_PeerIdentity *peer, 206GSF_peer_connect_handler_ (const struct GNUNET_PeerIdentity *peer);
209 const struct GNUNET_ATS_Information *atsi,
210 unsigned int atsi_count);
211 207
212 208
213/** 209/**
@@ -221,6 +217,17 @@ GSF_peer_get_ (const struct GNUNET_PeerIdentity *peer);
221 217
222 218
223/** 219/**
220 * Update the latency information kept for the given peer.
221 *
222 * @param id peer record to update
223 * @param latency current latency value
224 */
225void
226GSF_update_peer_latency_ (const struct GNUNET_PeerIdentity *id,
227 struct GNUNET_TIME_Relative latency);
228
229
230/**
224 * Transmit a message to the given peer as soon as possible. 231 * Transmit a message to the given peer as soon as possible.
225 * If the peer disconnects before the transmission can happen, 232 * If the peer disconnects before the transmission can happen,
226 * the callback is invoked with a 'NULL' buffer. 233 * the callback is invoked with a 'NULL' buffer.