diff options
author | Christian Grothoff <christian@grothoff.org> | 2014-04-23 11:04:53 +0000 |
---|---|---|
committer | Christian Grothoff <christian@grothoff.org> | 2014-04-23 11:04:53 +0000 |
commit | a19683a4b76e10843c4e75db928bac5750c6430a (patch) | |
tree | 7aeff0c4d49b5f3750c569216e77912016fd5a81 /src/core/gnunet-service-core_typemap.h | |
parent | 21bac846638fbbbe2b03672295d4f14fc3ceb839 (diff) | |
download | gnunet-a19683a4b76e10843c4e75db928bac5750c6430a.tar.gz gnunet-a19683a4b76e10843c4e75db928bac5750c6430a.zip |
fix #3348: send typemap confirmation messages, perform faster typemap retransmissions for unconfirmed typemaps, restart retransmissions on reconnect
Diffstat (limited to 'src/core/gnunet-service-core_typemap.h')
-rw-r--r-- | src/core/gnunet-service-core_typemap.h | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/src/core/gnunet-service-core_typemap.h b/src/core/gnunet-service-core_typemap.h index 7572d39db..1cf6972e9 100644 --- a/src/core/gnunet-service-core_typemap.h +++ b/src/core/gnunet-service-core_typemap.h | |||
@@ -67,6 +67,27 @@ GSC_TYPEMAP_compute_type_map_message (void); | |||
67 | 67 | ||
68 | 68 | ||
69 | /** | 69 | /** |
70 | * Check if the given hash matches our current type map. | ||
71 | * | ||
72 | * @param hc hash code to check if it matches our type map | ||
73 | * @return #GNUNET_YES if the hash matches, #GNUNET_NO if not | ||
74 | */ | ||
75 | int | ||
76 | GSC_TYPEMAP_check_hash (const struct GNUNET_HashCode *hc); | ||
77 | |||
78 | |||
79 | /** | ||
80 | * Hash the contents of a type map. | ||
81 | * | ||
82 | * @param tm map to hash | ||
83 | * @param hc where to store the hash code | ||
84 | */ | ||
85 | void | ||
86 | GSC_TYPEMAP_hash (const struct GSC_TypeMap *tm, | ||
87 | struct GNUNET_HashCode *hc); | ||
88 | |||
89 | |||
90 | /** | ||
70 | * Extract a type map from a | 91 | * Extract a type map from a |
71 | * #GNUNET_MESSAGE_TYPE_CORE_COMRESSED_TYPE_MAP or | 92 | * #GNUNET_MESSAGE_TYPE_CORE_COMRESSED_TYPE_MAP or |
72 | * #GNUNET_MESSAGE_TYPE_CORE_BINARY_TYPE_MAP message. | 93 | * #GNUNET_MESSAGE_TYPE_CORE_BINARY_TYPE_MAP message. |