diff options
author | TheJackiMonster <thejackimonster@gmail.com> | 2021-05-24 01:30:17 +0200 |
---|---|---|
committer | TheJackiMonster <thejackimonster@gmail.com> | 2021-06-11 13:47:57 +0200 |
commit | d0eec6097f79c7fb3ea8b5d8bb0dcca1da1f85a6 (patch) | |
tree | c0cc57a0f066bc1d3c528323c33903038747eca8 /src/messenger/messenger_api_util.h | |
parent | 2549225b825f34b0dfbe9f4a13f134963f3ba58d (diff) | |
download | gnunet-d0eec6097f79c7fb3ea8b5d8bb0dcca1da1f85a6.tar.gz gnunet-d0eec6097f79c7fb3ea8b5d8bb0dcca1da1f85a6.zip |
-moved messenger service out of experimental
Signed-off-by: TheJackiMonster <thejackimonster@gmail.com>
-moved out of experimental, included protocol versions into ports and fixed byte-order of 32bit integers in messages
Signed-off-by: TheJackiMonster <thejackimonster@gmail.com>
Diffstat (limited to 'src/messenger/messenger_api_util.h')
-rw-r--r-- | src/messenger/messenger_api_util.h | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/src/messenger/messenger_api_util.h b/src/messenger/messenger_api_util.h index c70a3601f..af562a1e8 100644 --- a/src/messenger/messenger_api_util.h +++ b/src/messenger/messenger_api_util.h | |||
@@ -32,6 +32,7 @@ | |||
32 | #include "gnunet_crypto_lib.h" | 32 | #include "gnunet_crypto_lib.h" |
33 | #include "gnunet_disk_lib.h" | 33 | #include "gnunet_disk_lib.h" |
34 | #include "gnunet_identity_service.h" | 34 | #include "gnunet_identity_service.h" |
35 | #include "gnunet_messenger_service.h" | ||
35 | 36 | ||
36 | /** | 37 | /** |
37 | * Starts an urgent task to close a CADET channel asynchronously. | 38 | * Starts an urgent task to close a CADET channel asynchronously. |
@@ -61,4 +62,17 @@ generate_free_member_id (struct GNUNET_ShortHashCode *id, const struct GNUNET_CO | |||
61 | const struct GNUNET_IDENTITY_PublicKey* | 62 | const struct GNUNET_IDENTITY_PublicKey* |
62 | get_anonymous_public_key (); | 63 | get_anonymous_public_key (); |
63 | 64 | ||
65 | /** | ||
66 | * Converts a Messenger service key of a room to the specific port which | ||
67 | * gets used for the CADET channels. | ||
68 | * | ||
69 | * The port includes upper bits of the #GNUNET_MESSENGER_VERSION to | ||
70 | * reduce the chance of incompatible connections. | ||
71 | * | ||
72 | * @param[in] key Messenger service room key | ||
73 | * @param[out] port CADET service port | ||
74 | */ | ||
75 | void | ||
76 | convert_messenger_key_to_port(const struct GNUNET_HashCode *key, struct GNUNET_HashCode *port); | ||
77 | |||
64 | #endif //GNUNET_SERVICE_MESSENGER_UTIL_H | 78 | #endif //GNUNET_SERVICE_MESSENGER_UTIL_H |