aboutsummaryrefslogtreecommitdiff
path: root/src/testbed/gnunet-service-testbed_cache.c
diff options
context:
space:
mode:
authorSree Harsha Totakura <totakura@in.tum.de>2013-03-18 14:34:48 +0000
committerSree Harsha Totakura <totakura@in.tum.de>2013-03-18 14:34:48 +0000
commit2bfa211933d6285ffbdc7d871e695838b5d08b9f (patch)
tree098f862a0de6a983b85aed48618af2d805059341 /src/testbed/gnunet-service-testbed_cache.c
parent23dda19572e38c3f533b9b35167a090932e85f57 (diff)
downloadgnunet-2bfa211933d6285ffbdc7d871e695838b5d08b9f.tar.gz
gnunet-2bfa211933d6285ffbdc7d871e695838b5d08b9f.zip
- doxygen
Diffstat (limited to 'src/testbed/gnunet-service-testbed_cache.c')
-rw-r--r--src/testbed/gnunet-service-testbed_cache.c25
1 files changed, 19 insertions, 6 deletions
diff --git a/src/testbed/gnunet-service-testbed_cache.c b/src/testbed/gnunet-service-testbed_cache.c
index 5686c9258..ac4bcecec 100644
--- a/src/testbed/gnunet-service-testbed_cache.c
+++ b/src/testbed/gnunet-service-testbed_cache.c
@@ -19,7 +19,7 @@
19*/ 19*/
20 20
21/** 21/**
22 * @file testbed/gnunet-service-testbed_cache.h 22 * @file testbed/gnunet-service-testbed_cache.c
23 * @brief testbed cache implementation 23 * @brief testbed cache implementation
24 * @author Sree Harsha Totakura 24 * @author Sree Harsha Totakura
25 */ 25 */
@@ -299,7 +299,8 @@ static unsigned int cache_size;
299/** 299/**
300 * Looks up in the cache and returns the entry 300 * Looks up in the cache and returns the entry
301 * 301 *
302 * @param id the peer identity of the peer whose corresponding entry has to be looked up 302 * @param key the peer identity of the peer whose corresponding entry has to be
303 * looked up
303 * @return the HELLO message; NULL if not found 304 * @return the HELLO message; NULL if not found
304 */ 305 */
305static struct CacheEntry * 306static struct CacheEntry *
@@ -713,7 +714,19 @@ oprelease_get_handle_core (void *cls)
713 * lookup in the cache; if not, a new operation is started to open the transport 714 * lookup in the cache; if not, a new operation is started to open the transport
714 * handle and will be given in the callback when it is available. 715 * handle and will be given in the callback when it is available.
715 * 716 *
716 * @param cls the cache entry 717 * @param peer_id the index of the peer
718 * @param cgh the CacheGetHandle
719 * @param cfg the configuration with which the transport handle has to be
720 * created if it was not present in the cache
721 * @param target the peer identify of the peer whose connection to
722 * TRANSPORT/CORE (depending on the type of 'cgh') subsystem will be
723 * notified through the connect_notify_cb. Can be NULL
724 * @param connect_notify_cb the callback to call when the given target peer is
725 * connected. This callback will only be called once or never again (in
726 * case the target peer cannot be connected). Can be NULL
727 * @param connect_notify_cb_cls the closure for the above callback
728 * @return the handle which can be used to cancel or mark that the handle is no
729 * longer being used
717 */ 730 */
718static struct GSTCacheGetHandle * 731static struct GSTCacheGetHandle *
719cache_get_handle (unsigned int peer_id, struct GSTCacheGetHandle *cgh, 732cache_get_handle (unsigned int peer_id, struct GSTCacheGetHandle *cgh,
@@ -950,7 +963,7 @@ GST_cache_get_handle_done (struct GSTCacheGetHandle *cgh)
950 * connected. This callback will only be called once or never again (in 963 * connected. This callback will only be called once or never again (in
951 * case the target peer cannot be connected). Can be NULL 964 * case the target peer cannot be connected). Can be NULL
952 * @param connect_notify_cb_cls the closure for the above callback 965 * @param connect_notify_cb_cls the closure for the above callback
953 * @return the handle which can be used cancel or mark that the handle is no 966 * @return the handle which can be used to cancel or mark that the handle is no
954 * longer being used 967 * longer being used
955 */ 968 */
956struct GSTCacheGetHandle * 969struct GSTCacheGetHandle *
@@ -990,7 +1003,7 @@ GST_cache_get_handle_transport (unsigned int peer_id,
990 * connected. This callback will only be called once or never again (in 1003 * connected. This callback will only be called once or never again (in
991 * case the target peer cannot be connected). Can be NULL 1004 * case the target peer cannot be connected). Can be NULL
992 * @param connect_notify_cb_cls the closure for the above callback 1005 * @param connect_notify_cb_cls the closure for the above callback
993 * @return the handle which can be used cancel or mark that the handle is no 1006 * @return the handle which can be used to cancel or mark that the handle is no
994 * longer being used 1007 * longer being used
995 */ 1008 */
996struct GSTCacheGetHandle * 1009struct GSTCacheGetHandle *
@@ -1039,7 +1052,7 @@ GST_cache_lookup_hello (const unsigned int peer_id)
1039 * Caches the HELLO of the given peer. Updates the HELLO if it was already 1052 * Caches the HELLO of the given peer. Updates the HELLO if it was already
1040 * cached before 1053 * cached before
1041 * 1054 *
1042 * @param id the peer identity of the peer whose HELLO has to be cached 1055 * @param peer_id the peer identity of the peer whose HELLO has to be cached
1043 * @param hello the HELLO message 1056 * @param hello the HELLO message
1044 */ 1057 */
1045void 1058void