diff options
author | Christian Grothoff <christian@grothoff.org> | 2011-11-28 16:09:47 +0000 |
---|---|---|
committer | Christian Grothoff <christian@grothoff.org> | 2011-11-28 16:09:47 +0000 |
commit | 4917fb20a07aa3221683c8a2112c514f44594350 (patch) | |
tree | 3584e6988f6bcddd19ea9d77c040e02d659a79c9 /src/transport/gnunet-service-transport_neighbours.c | |
parent | 636b3202c2ea8ebc6dd51a90c839a2e495ea0d27 (diff) | |
download | gnunet-4917fb20a07aa3221683c8a2112c514f44594350.tar.gz gnunet-4917fb20a07aa3221683c8a2112c514f44594350.zip |
introducing GNUNET_UNUSED macro instead of hard-coding gcc attribute all over the place; also some further documentation fixes
Diffstat (limited to 'src/transport/gnunet-service-transport_neighbours.c')
-rw-r--r-- | src/transport/gnunet-service-transport_neighbours.c | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/src/transport/gnunet-service-transport_neighbours.c b/src/transport/gnunet-service-transport_neighbours.c index 95efe44a1..6f1aa7431 100644 --- a/src/transport/gnunet-service-transport_neighbours.c +++ b/src/transport/gnunet-service-transport_neighbours.c | |||
@@ -1136,6 +1136,7 @@ static void send_outbound_quota (const struct GNUNET_PeerIdentity *target, struc | |||
1136 | * ATS to not use this address anymore (until it is re-validated). | 1136 | * ATS to not use this address anymore (until it is re-validated). |
1137 | * | 1137 | * |
1138 | * @param cls the 'struct GNUNET_HELLO_Address' of the address that was tried | 1138 | * @param cls the 'struct GNUNET_HELLO_Address' of the address that was tried |
1139 | * @param target peer to send the message to | ||
1139 | * @param success GNUNET_OK on success | 1140 | * @param success GNUNET_OK on success |
1140 | */ | 1141 | */ |
1141 | static void | 1142 | static void |
@@ -1190,11 +1191,13 @@ send_connect_continuation (void *cls, const struct GNUNET_PeerIdentity *target, | |||
1190 | GNUNET_free (cc); | 1191 | GNUNET_free (cc); |
1191 | } | 1192 | } |
1192 | 1193 | ||
1194 | |||
1193 | /** | 1195 | /** |
1194 | * We tried to switch addresses with an peer already connected. If it failed, | 1196 | * We tried to switch addresses with an peer already connected. If it failed, |
1195 | * we should tell ATS to not use this address anymore (until it is re-validated). | 1197 | * we should tell ATS to not use this address anymore (until it is re-validated). |
1196 | * | 1198 | * |
1197 | * @param cls the 'struct NeighbourMapEntry' | 1199 | * @param cls the 'struct NeighbourMapEntry' |
1200 | * @param target peer to send the message to | ||
1198 | * @param success GNUNET_OK on success | 1201 | * @param success GNUNET_OK on success |
1199 | */ | 1202 | */ |
1200 | static void | 1203 | static void |
@@ -1291,12 +1294,14 @@ send_switch_address_continuation (void *cls, | |||
1291 | GNUNET_free (cc); | 1294 | GNUNET_free (cc); |
1292 | } | 1295 | } |
1293 | 1296 | ||
1297 | |||
1294 | /** | 1298 | /** |
1295 | * We tried to send a SESSION_CONNECT message to another peer. If this | 1299 | * We tried to send a SESSION_CONNECT message to another peer. If this |
1296 | * succeeded, we change the state. If it failed, we should tell | 1300 | * succeeded, we change the state. If it failed, we should tell |
1297 | * ATS to not use this address anymore (until it is re-validated). | 1301 | * ATS to not use this address anymore (until it is re-validated). |
1298 | * | 1302 | * |
1299 | * @param cls the 'struct NeighbourMapEntry' | 1303 | * @param cls the 'struct NeighbourMapEntry' |
1304 | * @param target peer to send the message to | ||
1300 | * @param success GNUNET_OK on success | 1305 | * @param success GNUNET_OK on success |
1301 | */ | 1306 | */ |
1302 | static void | 1307 | static void |
@@ -1351,6 +1356,7 @@ send_connect_ack_continuation (void *cls, | |||
1351 | GNUNET_free (cc); | 1356 | GNUNET_free (cc); |
1352 | } | 1357 | } |
1353 | 1358 | ||
1359 | |||
1354 | /** | 1360 | /** |
1355 | * For an existing neighbour record, set the active connection to | 1361 | * For an existing neighbour record, set the active connection to |
1356 | * the given address. | 1362 | * the given address. |
@@ -1971,6 +1977,8 @@ GST_neighbours_keepalive (const struct GNUNET_PeerIdentity *neighbour) | |||
1971 | * to this peer | 1977 | * to this peer |
1972 | * | 1978 | * |
1973 | * @param neighbour neighbour to keep alive | 1979 | * @param neighbour neighbour to keep alive |
1980 | * @param ats performance data | ||
1981 | * @param ats_count number of entries in ats | ||
1974 | */ | 1982 | */ |
1975 | void | 1983 | void |
1976 | GST_neighbours_keepalive_response (const struct GNUNET_PeerIdentity *neighbour, | 1984 | GST_neighbours_keepalive_response (const struct GNUNET_PeerIdentity *neighbour, |