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 () |
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_invite (const struct GNUNET_PeerIdentity *door, const struct GNUNET_HashCode *key) |
Creates and allocates a new invite message containing the peer identity of an entrance peer to a room using a given key as shared secret for communication. More... | |
struct GNUNET_MESSENGER_Message * | create_message_text (const char *text) |
Creates and allocates a new text message containing a string representing text. 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_ticket (const struct GNUNET_RECLAIM_Identifier *identifier) |
Creates and allocates a new ticket message containing the identifier of a ticket to exchange it with a given audience. 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 | ( | ) |
Creates and allocates a new leave message.
Definition at line 48 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 55 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 72 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 89 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 108 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_invite | ( | const struct GNUNET_PeerIdentity * | door, |
const struct GNUNET_HashCode * | key | ||
) |
Creates and allocates a new invite message containing the peer identity of an entrance peer to a room using a given key as shared secret for communication.
(all values are stored as copy)
[in] | door | Peer identity |
[in] | key | Shared secret of a room |
Definition at line 133 of file messenger_api_message_kind.c.
References GNUNET_MESSENGER_Message::body, create_message(), GNUNET_MESSENGER_MessageInvite::door, GNUNET_memcpy, GNUNET_MESSENGER_KIND_INVITE, GNUNET_MESSENGER_MessageBody::invite, key, and GNUNET_MESSENGER_MessageInvite::key.
struct GNUNET_MESSENGER_Message * create_message_text | ( | const char * | text | ) |
Creates and allocates a new text message containing a string representing text.
(all values are stored as copy)
[in] | text | Text |
Definition at line 155 of file messenger_api_message_kind.c.
References GNUNET_MESSENGER_Message::body, create_message(), GNUNET_MESSENGER_KIND_TEXT, GNUNET_strdup, GNUNET_MESSENGER_MessageText::text, and GNUNET_MESSENGER_MessageBody::text.
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 172 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_message_in_room().
struct GNUNET_MESSENGER_Message * create_message_ticket | ( | const struct GNUNET_RECLAIM_Identifier * | identifier | ) |
Creates and allocates a new ticket message containing the identifier of a ticket to exchange it with a given audience.
(all values are stored as copy)
[in] | identifier | Identifier of ticket |
Definition at line 193 of file messenger_api_message_kind.c.
References GNUNET_MESSENGER_Message::body, create_message(), GNUNET_memcpy, GNUNET_MESSENGER_KIND_TICKET, GNUNET_MESSENGER_MessageTicket::identifier, and GNUNET_MESSENGER_MessageBody::ticket.
Referenced by GNUNET_MESSENGER_send_ticket().