diff options
author | Matthias Wachs <wachs@net.in.tum.de> | 2011-01-03 14:21:25 +0000 |
---|---|---|
committer | Matthias Wachs <wachs@net.in.tum.de> | 2011-01-03 14:21:25 +0000 |
commit | 748e690fe49e2639076cb76e6a4a4c5eb04e130e (patch) | |
tree | f76bcad30b4efc1f8daaf309ba38c3496603ce82 /src/topology/gnunet-daemon-topology.c | |
parent | cb3c882dbb05a797728dfd8b5983ade5a8999eac (diff) | |
download | gnunet-748e690fe49e2639076cb76e6a4a4c5eb04e130e.tar.gz gnunet-748e690fe49e2639076cb76e6a4a4c5eb04e130e.zip |
Changed peerinfo api to distinguish between last element and timeout
Diffstat (limited to 'src/topology/gnunet-daemon-topology.c')
-rw-r--r-- | src/topology/gnunet-daemon-topology.c | 11 |
1 files changed, 10 insertions, 1 deletions
diff --git a/src/topology/gnunet-daemon-topology.c b/src/topology/gnunet-daemon-topology.c index 4bbe4e19a..7cab16d15 100644 --- a/src/topology/gnunet-daemon-topology.c +++ b/src/topology/gnunet-daemon-topology.c | |||
@@ -924,14 +924,23 @@ consider_for_advertising (const struct GNUNET_HELLO_Message *hello) | |||
924 | * @param cls closure (not used) | 924 | * @param cls closure (not used) |
925 | * @param peer potential peer to connect to | 925 | * @param peer potential peer to connect to |
926 | * @param hello HELLO for this peer (or NULL) | 926 | * @param hello HELLO for this peer (or NULL) |
927 | * @param err_msg NULL if successful, otherwise contains error message | ||
927 | */ | 928 | */ |
928 | static void | 929 | static void |
929 | process_peer (void *cls, | 930 | process_peer (void *cls, |
930 | const struct GNUNET_PeerIdentity *peer, | 931 | const struct GNUNET_PeerIdentity *peer, |
931 | const struct GNUNET_HELLO_Message *hello) | 932 | const struct GNUNET_HELLO_Message *hello, |
933 | const char *err_msg) | ||
932 | { | 934 | { |
933 | struct Peer *pos; | 935 | struct Peer *pos; |
934 | 936 | ||
937 | if (err_msg != NULL) | ||
938 | { | ||
939 | GNUNET_log (GNUNET_ERROR_TYPE_ERROR, | ||
940 | _("Error in communication with PEERINFO service\n")); | ||
941 | /* return; */ | ||
942 | } | ||
943 | |||
935 | GNUNET_assert (peer != NULL); | 944 | GNUNET_assert (peer != NULL); |
936 | if (0 == memcmp (&my_identity, | 945 | if (0 == memcmp (&my_identity, |
937 | peer, sizeof (struct GNUNET_PeerIdentity))) | 946 | peer, sizeof (struct GNUNET_PeerIdentity))) |