From f13909574bb89556bbb54e5555ed56ceee5a9f61 Mon Sep 17 00:00:00 2001 From: Christian Grothoff Date: Mon, 25 Mar 2013 12:16:24 +0000 Subject: -towards using ATS for latency info --- src/fs/gnunet-service-fs_cp.h | 17 ++++++++++++----- 1 file changed, 12 insertions(+), 5 deletions(-) (limited to 'src/fs/gnunet-service-fs_cp.h') 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; * records. * * @param peer identity of peer that connected - * @param atsi performance data for the connection - * @param atsi_count number of records in 'atsi' * @return handle to connected peer entry */ struct GSF_ConnectedPeer * -GSF_peer_connect_handler_ (const struct GNUNET_PeerIdentity *peer, - const struct GNUNET_ATS_Information *atsi, - unsigned int atsi_count); +GSF_peer_connect_handler_ (const struct GNUNET_PeerIdentity *peer); /** @@ -220,6 +216,17 @@ struct GSF_ConnectedPeer * GSF_peer_get_ (const struct GNUNET_PeerIdentity *peer); +/** + * Update the latency information kept for the given peer. + * + * @param id peer record to update + * @param latency current latency value + */ +void +GSF_update_peer_latency_ (const struct GNUNET_PeerIdentity *id, + struct GNUNET_TIME_Relative latency); + + /** * Transmit a message to the given peer as soon as possible. * If the peer disconnects before the transmission can happen, -- cgit v1.2.3