![]() |
GNUnet
0.11.x
|
GNUnet MESSENGER service. More...
#include "gnunet-service-messenger_message_send.h"
#include "gnunet-service-messenger_message_handle.h"
Go to the source code of this file.
GNUnet MESSENGER service.
Definition in file gnunet-service-messenger_message_send.c.
void send_message_info | ( | struct GNUNET_MESSENGER_SrvRoom * | room, |
struct GNUNET_MESSENGER_SrvHandle * | handle, | ||
struct GNUNET_MESSENGER_SrvTunnel * | tunnel, | ||
struct GNUNET_MESSENGER_Message * | message, | ||
const struct GNUNET_HashCode * | hash | ||
) |
Handles a sent info message to setup a tunnels linked member id.
(if a tunnel has already got a member id linked to it, the connection will be closed)
room | Room of the message |
handle | Sending handle |
tunnel | Sending connection (may be NULL) |
message | INFO-Message |
hash | Hash of the message |
Definition at line 30 of file gnunet-service-messenger_message_send.c.
References GNUNET_MESSENGER_Message::body, GNUNET_MESSENGER_SrvTunnel::contact_id, disconnect_tunnel(), GNUNET_memcpy, GNUNET_new, GNUNET_MESSENGER_MessageBody::info, and GNUNET_MESSENGER_MessageInfo::unique_id.
Referenced by callback_room_sent().
void send_message_join | ( | struct GNUNET_MESSENGER_SrvRoom * | room, |
struct GNUNET_MESSENGER_SrvHandle * | handle, | ||
struct GNUNET_MESSENGER_SrvTunnel * | tunnel, | ||
struct GNUNET_MESSENGER_Message * | message, | ||
const struct GNUNET_HashCode * | hash | ||
) |
Handles a sent join message to ensure growth of the decentralized room structure.
(if the service provides a peer message for this room currently, it will be forwarded)
room | Room of the message |
handle | Sending handle |
tunnel | Sending connection (may be NULL) |
message | JOIN-Message |
hash | Hash of the message |
Definition at line 47 of file gnunet-service-messenger_message_send.c.
References forward_tunnel_message(), get_room_message(), GNUNET_NO, handle_message_join(), and GNUNET_MESSENGER_SrvRoom::peer_message.
Referenced by callback_room_sent().
void send_message_leave | ( | struct GNUNET_MESSENGER_SrvRoom * | room, |
struct GNUNET_MESSENGER_SrvHandle * | handle, | ||
struct GNUNET_MESSENGER_SrvTunnel * | tunnel, | ||
struct GNUNET_MESSENGER_Message * | message, | ||
const struct GNUNET_HashCode * | hash | ||
) |
Handles a sent leave message.
room | Room of the message |
handle | Sending handle |
tunnel | Sending connection (may be NULL) |
message | LEAVE-Message |
hash | Hash of the message |
Definition at line 66 of file gnunet-service-messenger_message_send.c.
References handle_message_leave().
Referenced by callback_room_sent().
void send_message_name | ( | struct GNUNET_MESSENGER_SrvRoom * | room, |
struct GNUNET_MESSENGER_SrvHandle * | handle, | ||
struct GNUNET_MESSENGER_SrvTunnel * | tunnel, | ||
struct GNUNET_MESSENGER_Message * | message, | ||
const struct GNUNET_HashCode * | hash | ||
) |
Handles a sent name message.
room | Room of the message |
handle | Sending handle |
tunnel | Sending connection (may be NULL) |
message | NAME-Message |
hash | Hash of the message |
Definition at line 74 of file gnunet-service-messenger_message_send.c.
References handle_message_name().
Referenced by callback_room_sent().
void send_message_key | ( | struct GNUNET_MESSENGER_SrvRoom * | room, |
struct GNUNET_MESSENGER_SrvHandle * | handle, | ||
struct GNUNET_MESSENGER_SrvTunnel * | tunnel, | ||
struct GNUNET_MESSENGER_Message * | message, | ||
const struct GNUNET_HashCode * | hash | ||
) |
Handles a sent key message.
room | Room of the message |
handle | Sending handle |
tunnel | Sending connection (may be NULL) |
message | KEY-Message |
hash | Hash of the message |
Definition at line 82 of file gnunet-service-messenger_message_send.c.
References handle_message_key().
Referenced by callback_room_sent().
void send_message_peer | ( | struct GNUNET_MESSENGER_SrvRoom * | room, |
struct GNUNET_MESSENGER_SrvHandle * | handle, | ||
struct GNUNET_MESSENGER_SrvTunnel * | tunnel, | ||
struct GNUNET_MESSENGER_Message * | message, | ||
const struct GNUNET_HashCode * | hash | ||
) |
Handles a sent peer message to update the rooms peer message of this service.
(a set peer message indicates this service being a part of the decentralized room structure)
room | Room of the message |
handle | Sending handle |
tunnel | Sending connection (may be NULL) |
message | PEER-Message |
hash | Hash of the message |
Definition at line 90 of file gnunet-service-messenger_message_send.c.
References GNUNET_memcpy, GNUNET_new, handle_message_peer(), and GNUNET_MESSENGER_SrvRoom::peer_message.
Referenced by callback_room_sent().
void send_message_id | ( | struct GNUNET_MESSENGER_SrvRoom * | room, |
struct GNUNET_MESSENGER_SrvHandle * | handle, | ||
struct GNUNET_MESSENGER_SrvTunnel * | tunnel, | ||
struct GNUNET_MESSENGER_Message * | message, | ||
const struct GNUNET_HashCode * | hash | ||
) |
Handles a sent id message.
room | Room of the message |
handle | Sending handle |
tunnel | Sending connection (may be NULL) |
message | ID-Message |
hash | Hash of the message |
Definition at line 105 of file gnunet-service-messenger_message_send.c.
References handle_message_id().
Referenced by callback_room_sent().
void send_message_miss | ( | struct GNUNET_MESSENGER_SrvRoom * | room, |
struct GNUNET_MESSENGER_SrvHandle * | handle, | ||
struct GNUNET_MESSENGER_SrvTunnel * | tunnel, | ||
struct GNUNET_MESSENGER_Message * | message, | ||
const struct GNUNET_HashCode * | hash | ||
) |
Handles a sent miss message.
room | Room of the message |
handle | Sending handle |
tunnel | Sending connection (may be NULL) |
message | MISS-Message |
hash | Hash of the message |
Definition at line 113 of file gnunet-service-messenger_message_send.c.
References handle_message_miss().
Referenced by callback_room_sent().