|
const char * | GNUNET_MESSENGER_name_of_kind (enum GNUNET_MESSENGER_MessageKind kind) |
| Get the name of a message kind. More...
|
|
struct GNUNET_MESSENGER_Handle * | GNUNET_MESSENGER_connect (const struct GNUNET_CONFIGURATION_Handle *cfg, const char *name, const struct GNUNET_CRYPTO_PrivateKey *key, GNUNET_MESSENGER_MessageCallback msg_callback, void *msg_cls) |
| Set up a handle for the messenger related functions and connects to all necessary services. More...
|
|
void | GNUNET_MESSENGER_disconnect (struct GNUNET_MESSENGER_Handle *handle) |
| Disconnect all of the messengers used services and clears up its used memory. More...
|
|
const char * | GNUNET_MESSENGER_get_name (const struct GNUNET_MESSENGER_Handle *handle) |
| Get the name (if specified, otherwise NULL) used by the messenger. More...
|
|
enum GNUNET_GenericReturnValue | GNUNET_MESSENGER_set_name (struct GNUNET_MESSENGER_Handle *handle, const char *name) |
| Set the name for the messenger handle and sends messages renaming your contact in currently open rooms. More...
|
|
const struct GNUNET_CRYPTO_PublicKey * | GNUNET_MESSENGER_get_key (const struct GNUNET_MESSENGER_Handle *handle) |
| Get the public key used by the messenger or NULL if the anonymous key was used. More...
|
|
enum GNUNET_GenericReturnValue | GNUNET_MESSENGER_set_key (struct GNUNET_MESSENGER_Handle *handle, const struct GNUNET_CRYPTO_PrivateKey *key) |
| Set the private key used by the messenger or NULL if the anonymous key should be used instead. More...
|
|
struct GNUNET_MESSENGER_Room * | GNUNET_MESSENGER_open_room (struct GNUNET_MESSENGER_Handle *handle, const struct GNUNET_HashCode *key) |
| Open a room to send and receive messages. More...
|
|
struct GNUNET_MESSENGER_Room * | GNUNET_MESSENGER_enter_room (struct GNUNET_MESSENGER_Handle *handle, const struct GNUNET_PeerIdentity *door, const struct GNUNET_HashCode *key) |
| Enter a room to send and receive messages through a door opened using GNUNET_MESSENGER_open_room. More...
|
|
void | GNUNET_MESSENGER_close_room (struct GNUNET_MESSENGER_Room *room) |
| Close a room which was entered, opened or both in various order and variety. More...
|
|
int | GNUNET_MESSENGER_find_rooms (const struct GNUNET_MESSENGER_Handle *handle, const struct GNUNET_MESSENGER_Contact *contact, GNUNET_MESSENGER_MemberCallback callback, void *cls) |
| Searches for a specific contact in a given room and calls a selected callback with a given closure for each of them containing the contact as a member. More...
|
|
const struct GNUNET_HashCode * | GNUNET_MESSENGER_room_get_key (const struct GNUNET_MESSENGER_Room *room) |
| Get the key of a given room. More...
|
|
const struct GNUNET_MESSENGER_Contact * | GNUNET_MESSENGER_get_sender (const struct GNUNET_MESSENGER_Room *room, const struct GNUNET_HashCode *hash) |
| Get the contact of a member in a room which sent a specific message identified with a given hash. More...
|
|
const struct GNUNET_MESSENGER_Contact * | GNUNET_MESSENGER_get_recipient (const struct GNUNET_MESSENGER_Room *room, const struct GNUNET_HashCode *hash) |
| Get the contact of a member in a room which has been targeted as recipient of a specific message identified with a given hash. More...
|
|
const char * | GNUNET_MESSENGER_contact_get_name (const struct GNUNET_MESSENGER_Contact *contact) |
| Get the name used by the contact. More...
|
|
const struct GNUNET_CRYPTO_PublicKey * | GNUNET_MESSENGER_contact_get_key (const struct GNUNET_MESSENGER_Contact *contact) |
| Get the public key used by the contact or NULL if the anonymous key was used. More...
|
|
size_t | GNUNET_MESSENGER_contact_get_id (const struct GNUNET_MESSENGER_Contact *contact) |
| Get the locally unique id of the contact. More...
|
|
void | GNUNET_MESSENGER_send_message (struct GNUNET_MESSENGER_Room *room, const struct GNUNET_MESSENGER_Message *message, const struct GNUNET_MESSENGER_Contact *contact) |
| Send a message into a room. More...
|
|
void | GNUNET_MESSENGER_delete_message (struct GNUNET_MESSENGER_Room *room, const struct GNUNET_HashCode *hash, const struct GNUNET_TIME_Relative delay) |
| Delete a message identified by its hash from a room. More...
|
|
const struct GNUNET_MESSENGER_Message * | GNUNET_MESSENGER_get_message (const struct GNUNET_MESSENGER_Room *room, const struct GNUNET_HashCode *hash) |
| Get the message in a room identified by its hash. More...
|
|
int | GNUNET_MESSENGER_iterate_members (struct GNUNET_MESSENGER_Room *room, GNUNET_MESSENGER_MemberCallback callback, void *cls) |
| Iterates through all members of a given room and calls a selected callback for each of them with a provided closure. More...
|
|
- Author
- Tobias Frisch
MESSENGER service; manages decentralized chat groups
Definition in file gnunet_messenger_service.h.