![]() |
GNUnet
0.11.x
|
GNUnet MESSENGER service. More...
#include "gnunet-service-messenger.h"
#include "gnunet-service-messenger_service.h"
#include "messenger_api_message.h"
Go to the source code of this file.
Data Structures | |
struct | GNUNET_MESSENGER_Client |
Variables | |
struct GNUNET_MESSENGER_Service * | messenger |
GNUnet MESSENGER service.
Definition in file gnunet-service-messenger.c.
|
static |
Definition at line 40 of file gnunet-service-messenger.c.
References GNUNET_MQ_check_zero_termination, and GNUNET_OK.
|
static |
Definition at line 47 of file gnunet-service-messenger.c.
References GNUNET_MESSENGER_Client::client, GNUNET_ERROR_TYPE_DEBUG, GNUNET_log, GNUNET_SERVICE_client_continue(), GNUNET_MESSENGER_Client::handle, name, and setup_handle_name().
|
static |
Definition at line 61 of file gnunet-service-messenger.c.
References GNUNET_MESSENGER_Client::client, GNUNET_SERVICE_client_continue(), GNUNET_MESSENGER_Client::handle, and update_handle().
|
static |
Definition at line 71 of file gnunet-service-messenger.c.
References GNUNET_MESSENGER_Client::client, and GNUNET_SERVICE_client_drop().
|
static |
Definition at line 79 of file gnunet-service-messenger.c.
References GNUNET_MQ_check_zero_termination, and GNUNET_OK.
|
static |
Definition at line 86 of file gnunet-service-messenger.c.
References GNUNET_MESSENGER_Client::client, GNUNET_ERROR_TYPE_DEBUG, GNUNET_log, GNUNET_SERVICE_client_continue(), GNUNET_MESSENGER_Client::handle, name, and set_handle_name().
|
static |
Definition at line 100 of file gnunet-service-messenger.c.
References GNUNET_MESSENGER_Client::client, env, get_handle_member_id(), GNUNET_ERROR_TYPE_DEBUG, GNUNET_ERROR_TYPE_ERROR, GNUNET_h2s(), GNUNET_log, GNUNET_memcpy, GNUNET_MESSAGE_TYPE_MESSENGER_ROOM_OPEN, GNUNET_MQ_msg, GNUNET_MQ_send(), GNUNET_SERVICE_client_continue(), GNUNET_sh2s(), GNUNET_YES, GNUNET_MESSENGER_Client::handle, GNUNET_MESSENGER_RoomMessage::key, GNUNET_MESSENGER_SrvHandle::mq, open_handle_room(), and response.
|
static |
Definition at line 126 of file gnunet-service-messenger.c.
References GNUNET_MESSENGER_Client::client, GNUNET_MESSENGER_RoomMessage::door, entry_handle_room(), env, get_handle_member_id(), GNUNET_ERROR_TYPE_DEBUG, GNUNET_ERROR_TYPE_ERROR, GNUNET_h2s(), GNUNET_i2s(), GNUNET_log, GNUNET_memcpy, GNUNET_MESSAGE_TYPE_MESSENGER_ROOM_ENTRY, GNUNET_MQ_msg, GNUNET_MQ_send(), GNUNET_SERVICE_client_continue(), GNUNET_sh2s(), GNUNET_YES, GNUNET_MESSENGER_Client::handle, GNUNET_MESSENGER_RoomMessage::key, GNUNET_MESSENGER_SrvHandle::mq, and response.
|
static |
Definition at line 154 of file gnunet-service-messenger.c.
References GNUNET_MESSENGER_Client::client, close_handle_room(), env, get_handle_member_id(), GNUNET_ERROR_TYPE_DEBUG, GNUNET_ERROR_TYPE_ERROR, GNUNET_h2s(), GNUNET_log, GNUNET_memcpy, GNUNET_MESSAGE_TYPE_MESSENGER_ROOM_CLOSE, GNUNET_MQ_msg, GNUNET_MQ_send(), GNUNET_SERVICE_client_continue(), GNUNET_sh2s(), GNUNET_YES, GNUNET_MESSENGER_Client::handle, GNUNET_MESSENGER_RoomMessage::key, GNUNET_MESSENGER_SrvHandle::mq, and response.
|
static |
Definition at line 180 of file gnunet-service-messenger.c.
References decode_message(), filter_message_sending(), GNUNET_MESSENGER_SendMessage::flags, GNUNET_IDENTITY_read_key_from_buffer(), GNUNET_MESSENGER_FLAG_PRIVATE, GNUNET_NO, GNUNET_OK, GNUNET_YES, GNUNET_MESSENGER_SendMessage::header, key_length, and GNUNET_MessageHeader::size.
|
static |
Definition at line 222 of file gnunet-service-messenger.c.
References GNUNET_MESSENGER_Client::client, decode_message(), encrypt_message(), GNUNET_MESSENGER_SendMessage::flags, GNUNET_ERROR_TYPE_DEBUG, GNUNET_ERROR_TYPE_ERROR, GNUNET_h2s(), GNUNET_IDENTITY_read_key_from_buffer(), GNUNET_log, GNUNET_MESSENGER_FLAG_PRIVATE, GNUNET_MESSENGER_name_of_kind(), GNUNET_NO, GNUNET_SERVICE_client_continue(), GNUNET_YES, GNUNET_MESSENGER_Client::handle, GNUNET_MESSENGER_SendMessage::header, GNUNET_MESSENGER_Message::header, key, GNUNET_MESSENGER_SendMessage::key, key_length, GNUNET_MESSENGER_MessageHeader::kind, send_handle_message(), and GNUNET_MessageHeader::size.
|
static |
Definition at line 269 of file gnunet-service-messenger.c.
References GNUNET_MESSENGER_Client::client, get_member_session_of(), get_room_key(), get_room_member_store(), get_room_message(), get_service_room(), get_store_member_of(), GNUNET_ERROR_TYPE_DEBUG, GNUNET_ERROR_TYPE_ERROR, GNUNET_h2s(), GNUNET_log, GNUNET_SERVICE_client_continue(), GNUNET_YES, GNUNET_MESSENGER_Client::handle, GNUNET_MESSENGER_GetMessage::hash, GNUNET_MESSENGER_GetMessage::key, and notify_handle_message().
|
static |
Definition at line 309 of file gnunet-service-messenger.c.
References add_service_handle(), GNUNET_MESSENGER_Client::client, GNUNET_new, and GNUNET_MESSENGER_Client::handle.
Referenced by run().
|
static |
Definition at line 320 of file gnunet-service-messenger.c.
References GNUNET_free, GNUNET_MESSENGER_Client::handle, and remove_service_handle().
Referenced by run().
|
static |
Setup MESSENGER internals.
Definition at line 337 of file gnunet-service-messenger.c.
References callback_client_connect(), callback_client_disconnect(), create_service(), destroy(), get_message(), GNUNET_MESSAGE_TYPE_MESSENGER_CONNECTION_CREATE, GNUNET_MESSAGE_TYPE_MESSENGER_CONNECTION_DESTROY, GNUNET_MESSAGE_TYPE_MESSENGER_CONNECTION_SET_NAME, GNUNET_MESSAGE_TYPE_MESSENGER_CONNECTION_UPDATE, GNUNET_MESSAGE_TYPE_MESSENGER_ROOM_CLOSE, GNUNET_MESSAGE_TYPE_MESSENGER_ROOM_ENTRY, GNUNET_MESSAGE_TYPE_MESSENGER_ROOM_GET_MESSAGE, GNUNET_MESSAGE_TYPE_MESSENGER_ROOM_OPEN, GNUNET_MESSAGE_TYPE_MESSENGER_ROOM_SEND_MESSAGE, GNUNET_MESSENGER_SERVICE_NAME, GNUNET_MQ_handler_end, GNUNET_MQ_hd_fixed_size, GNUNET_MQ_hd_var_size, GNUNET_SCHEDULER_shutdown(), GNUNET_SERVICE_MAIN(), GNUNET_SERVICE_OPTION_NONE, and send_message().
Define "main" method using service macro.
Referenced by run().
struct GNUNET_MESSENGER_Service* messenger |
Definition at line 37 of file gnunet-service-messenger.c.