Go to the source code of this file.
Functions | |
struct GNUNET_MESSENGER_Message * | create_message_join (const struct GNUNET_CRYPTO_PrivateKey *key) |
Creates and allocates a new join message containing the clients public key. More... | |
struct GNUNET_MESSENGER_Message * | create_message_leave (void) |
Creates and allocates a new leave message. More... | |
struct GNUNET_MESSENGER_Message * | create_message_name (const char *name) |
Creates and allocates a new name message containing the name to change to. More... | |
struct GNUNET_MESSENGER_Message * | create_message_key (const struct GNUNET_CRYPTO_PrivateKey *key) |
Creates and allocates a new key message containing the public key to change to derived from its private counterpart. More... | |
struct GNUNET_MESSENGER_Message * | create_message_id (const struct GNUNET_ShortHashCode *unique_id) |
Creates and allocates a new id message containing the unique member id to change to. More... | |
struct GNUNET_MESSENGER_Message * | create_message_request (const struct GNUNET_HashCode *hash) |
Creates and allocates a new request message containing the hash of a missing message. More... | |
struct GNUNET_MESSENGER_Message * | create_message_delete (const struct GNUNET_HashCode *hash, const struct GNUNET_TIME_Relative delay) |
Creates and allocates a new delete message containing the hash of a message to delete after a specific delay. More... | |
struct GNUNET_MESSENGER_Message * | create_message_subscribe (const struct GNUNET_ShortHashCode *discourse, const struct GNUNET_TIME_Relative time, uint32_t flags) |
Creates and allocates a new subscribe message for a subscription of a given discourse with a specific time window and flags. More... | |
struct GNUNET_MESSENGER_Message * create_message_join | ( | const struct GNUNET_CRYPTO_PrivateKey * | key | ) |
Creates and allocates a new join message containing the clients public key.
(all values are stored as copy)
[in] | key | Private key |
Definition at line 31 of file messenger_api_message_kind.c.
References GNUNET_MESSENGER_Message::body, create_message(), GNUNET_CRYPTO_key_get_public(), GNUNET_MESSENGER_KIND_JOIN, GNUNET_MESSENGER_MessageBody::join, key, and GNUNET_MESSENGER_MessageJoin::key.
Referenced by handle_member_id().
struct GNUNET_MESSENGER_Message * create_message_leave | ( | void | ) |
Creates and allocates a new leave message.
Definition at line 49 of file messenger_api_message_kind.c.
References create_message(), and GNUNET_MESSENGER_KIND_LEAVE.
Referenced by GNUNET_MESSENGER_close_room().
struct GNUNET_MESSENGER_Message * create_message_name | ( | const char * | name | ) |
Creates and allocates a new name message containing the name to change to.
(all values are stored as copy)
[in] | name | New name |
Definition at line 56 of file messenger_api_message_kind.c.
References GNUNET_MESSENGER_Message::body, create_message(), GNUNET_MESSENGER_KIND_NAME, GNUNET_strdup, name, GNUNET_MESSENGER_MessageName::name, and GNUNET_MESSENGER_MessageBody::name.
Referenced by iterate_send_name_to_room().
struct GNUNET_MESSENGER_Message * create_message_key | ( | const struct GNUNET_CRYPTO_PrivateKey * | key | ) |
Creates and allocates a new key message containing the public key to change to derived from its private counterpart.
(all values are stored as copy)
[in] | key | Private key |
Definition at line 74 of file messenger_api_message_kind.c.
References GNUNET_MESSENGER_Message::body, create_message(), GNUNET_CRYPTO_key_get_public(), GNUNET_MESSENGER_KIND_KEY, key, GNUNET_MESSENGER_MessageKey::key, and GNUNET_MESSENGER_MessageBody::key.
Referenced by iterate_send_key_to_room().
struct GNUNET_MESSENGER_Message * create_message_id | ( | const struct GNUNET_ShortHashCode * | unique_id | ) |
Creates and allocates a new id message containing the unique member id to change to.
(all values are stored as copy)
[in] | unique_id | Unique member id |
Definition at line 92 of file messenger_api_message_kind.c.
References GNUNET_MESSENGER_Message::body, create_message(), GNUNET_memcpy, GNUNET_MESSENGER_KIND_ID, GNUNET_MESSENGER_MessageId::id, and GNUNET_MESSENGER_MessageBody::id.
Referenced by handle_member_id().
struct GNUNET_MESSENGER_Message * create_message_request | ( | const struct GNUNET_HashCode * | hash | ) |
Creates and allocates a new request message containing the hash of a missing message.
(all values are stored as copy)
[in] | hash | Hash of message |
Definition at line 112 of file messenger_api_message_kind.c.
References GNUNET_MESSENGER_Message::body, create_message(), GNUNET_CRYPTO_hash_cmp(), GNUNET_memcpy, GNUNET_MESSENGER_KIND_REQUEST, GNUNET_MESSENGER_MessageRequest::hash, GNUNET_MESSENGER_MessageBody::request, and zero.
Referenced by handle_miss_message().
struct GNUNET_MESSENGER_Message * create_message_delete | ( | const struct GNUNET_HashCode * | hash, |
const struct GNUNET_TIME_Relative | delay | ||
) |
Creates and allocates a new delete message containing the hash of a message to delete after a specific delay.
(all values are stored as copy)
[in] | hash | Hash of message |
[in] | delay | Delay of deletion |
Definition at line 140 of file messenger_api_message_kind.c.
References GNUNET_MESSENGER_Message::body, create_message(), GNUNET_MESSENGER_MessageDelete::delay, GNUNET_MESSENGER_MessageBody::deletion, GNUNET_memcpy, GNUNET_MESSENGER_KIND_DELETE, GNUNET_TIME_relative_hton(), and GNUNET_MESSENGER_MessageDelete::hash.
Referenced by delete_room_message().
struct GNUNET_MESSENGER_Message * create_message_subscribe | ( | const struct GNUNET_ShortHashCode * | discourse, |
const struct GNUNET_TIME_Relative | time, | ||
uint32_t | flags | ||
) |
Creates and allocates a new subscribe message for a subscription of a given discourse with a specific time window and flags.
(all values are stored as copy)
[in] | discourse | Discourse |
[in] | time | Time of subscription |
[in] | flags | Subscription flags |
Definition at line 162 of file messenger_api_message_kind.c.
References GNUNET_MESSENGER_Message::body, create_message(), GNUNET_MESSENGER_MessageSubscribe::discourse, GNUNET_MESSENGER_MessageSubscribe::flags, GNUNET_memcpy, GNUNET_MESSENGER_KIND_SUBSCRIBE, GNUNET_TIME_relative_hton(), GNUNET_MESSENGER_MessageBody::subscribe, and GNUNET_MESSENGER_MessageSubscribe::time.
Referenced by handle_discourse_subscription().