diff options
Diffstat (limited to 'src/messenger/gnunet-service-messenger_message_handle.h')
-rw-r--r-- | src/messenger/gnunet-service-messenger_message_handle.h | 142 |
1 files changed, 0 insertions, 142 deletions
diff --git a/src/messenger/gnunet-service-messenger_message_handle.h b/src/messenger/gnunet-service-messenger_message_handle.h deleted file mode 100644 index 844142b77..000000000 --- a/src/messenger/gnunet-service-messenger_message_handle.h +++ /dev/null | |||
@@ -1,142 +0,0 @@ | |||
1 | /* | ||
2 | This file is part of GNUnet. | ||
3 | Copyright (C) 2020--2021 GNUnet e.V. | ||
4 | |||
5 | GNUnet is free software: you can redistribute it and/or modify it | ||
6 | under the terms of the GNU Affero General Public License as published | ||
7 | by the Free Software Foundation, either version 3 of the License, | ||
8 | or (at your option) any later version. | ||
9 | |||
10 | GNUnet is distributed in the hope that it will be useful, but | ||
11 | WITHOUT ANY WARRANTY; without even the implied warranty of | ||
12 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU | ||
13 | Affero General Public License for more details. | ||
14 | |||
15 | You should have received a copy of the GNU Affero General Public License | ||
16 | along with this program. If not, see <http://www.gnu.org/licenses/>. | ||
17 | |||
18 | SPDX-License-Identifier: AGPL3.0-or-later | ||
19 | */ | ||
20 | /** | ||
21 | * @author Tobias Frisch | ||
22 | * @file src/messenger/gnunet-service-messenger_message_handle.h | ||
23 | * @brief GNUnet MESSENGER service | ||
24 | */ | ||
25 | |||
26 | #ifndef GNUNET_SERVICE_MESSENGER_MESSAGE_HANDLE_H | ||
27 | #define GNUNET_SERVICE_MESSENGER_MESSAGE_HANDLE_H | ||
28 | |||
29 | #include "platform.h" | ||
30 | #include "gnunet_crypto_lib.h" | ||
31 | |||
32 | #include "gnunet-service-messenger_message_kind.h" | ||
33 | |||
34 | #include "gnunet-service-messenger_member_session.h" | ||
35 | #include "gnunet-service-messenger_tunnel.h" | ||
36 | #include "messenger_api_message.h" | ||
37 | |||
38 | /** | ||
39 | * Handles a received or sent join message to make changes of current member information. | ||
40 | * (add matching member and clear member info) | ||
41 | * | ||
42 | * @param[in/out] room Room of the message | ||
43 | * @param[in/out] session Member session | ||
44 | * @param[in] message JOIN-Message | ||
45 | * @param[in] hash Hash of the message | ||
46 | */ | ||
47 | void | ||
48 | handle_message_join (struct GNUNET_MESSENGER_SrvRoom *room, struct GNUNET_MESSENGER_MemberSession *session, | ||
49 | const struct GNUNET_MESSENGER_Message *message, const struct GNUNET_HashCode *hash); | ||
50 | |||
51 | /** | ||
52 | * Handles a received or sent leave message to make changes of current member information. | ||
53 | * (remove matching member and clear member info) | ||
54 | * | ||
55 | * @param[in/out] room Room of the message | ||
56 | * @param[in/out] session Member session | ||
57 | * @param[in] message LEAVE-Message | ||
58 | * @param[in] hash Hash of the message | ||
59 | */ | ||
60 | void | ||
61 | handle_message_leave (struct GNUNET_MESSENGER_SrvRoom *room, struct GNUNET_MESSENGER_MemberSession *session, | ||
62 | const struct GNUNET_MESSENGER_Message *message, const struct GNUNET_HashCode *hash); | ||
63 | |||
64 | /** | ||
65 | * Handles a received or sent name message to rename a current member. | ||
66 | * (change name of matching member) | ||
67 | * | ||
68 | * @param[in/out] room Room of the message | ||
69 | * @param[in/out] session Member session | ||
70 | * @param[in] message NAME-Message | ||
71 | * @param[in] hash Hash of the message | ||
72 | */ | ||
73 | void | ||
74 | handle_message_name (struct GNUNET_MESSENGER_SrvRoom *room, struct GNUNET_MESSENGER_MemberSession *session, | ||
75 | const struct GNUNET_MESSENGER_Message *message, const struct GNUNET_HashCode *hash); | ||
76 | |||
77 | /** | ||
78 | * Handles a received or sent key message to change the key of a member and rearrange the contacts accordingly. | ||
79 | * (move the member in the contacts and change its key) | ||
80 | * | ||
81 | * @param[in/out] room Room of the message | ||
82 | * @param[in/out] session Member session | ||
83 | * @param[in] message KEY-Message | ||
84 | * @param[in] hash Hash of the message | ||
85 | */ | ||
86 | void | ||
87 | handle_message_key (struct GNUNET_MESSENGER_SrvRoom *room, struct GNUNET_MESSENGER_MemberSession *session, | ||
88 | const struct GNUNET_MESSENGER_Message *message, const struct GNUNET_HashCode *hash); | ||
89 | |||
90 | /** | ||
91 | * Handles a received or sent peer message to make changes of the basement in the room. | ||
92 | * (add a new peer to the basement and restructure connections based on updated list of peers) | ||
93 | * | ||
94 | * @param[in/out] room Room of the message | ||
95 | * @param[in/out] session Member session | ||
96 | * @param[in] message PEER-Message | ||
97 | * @param[in] hash Hash of the message | ||
98 | */ | ||
99 | void | ||
100 | handle_message_peer (struct GNUNET_MESSENGER_SrvRoom *room, struct GNUNET_MESSENGER_MemberSession *session, | ||
101 | const struct GNUNET_MESSENGER_Message *message, const struct GNUNET_HashCode *hash); | ||
102 | |||
103 | /** | ||
104 | * Handles a received or sent id message to change a members id. | ||
105 | * (change id of matching member) | ||
106 | * | ||
107 | * @param[in/out] room Room of the message | ||
108 | * @param[in/out] session Member session | ||
109 | * @param[in] message ID-Message | ||
110 | * @param[in] hash Hash of the message | ||
111 | */ | ||
112 | void | ||
113 | handle_message_id (struct GNUNET_MESSENGER_SrvRoom *room, struct GNUNET_MESSENGER_MemberSession *session, | ||
114 | const struct GNUNET_MESSENGER_Message *message, const struct GNUNET_HashCode *hash); | ||
115 | |||
116 | /** | ||
117 | * Handles a received or sent miss message to drop a peer from the basement in the room. | ||
118 | * (remove a peer from the basement and restructure connections based on updated list of peers) | ||
119 | * | ||
120 | * @param[in/out] room Room of the message | ||
121 | * @param[in/out] session Member session | ||
122 | * @param[in] message MISS-Message | ||
123 | * @param[in] hash Hash of the message | ||
124 | */ | ||
125 | void | ||
126 | handle_message_miss (struct GNUNET_MESSENGER_SrvRoom *room, struct GNUNET_MESSENGER_MemberSession *session, | ||
127 | const struct GNUNET_MESSENGER_Message *message, const struct GNUNET_HashCode *hash); | ||
128 | |||
129 | /** | ||
130 | * Handles a received or sent delete message to delete a specific message from the store. | ||
131 | * (remove a message from the store of a room under a given delay) | ||
132 | * | ||
133 | * @param[in/out] room Room of the message | ||
134 | * @param[in/out] session Member session | ||
135 | * @param[in] message DELETE-Message | ||
136 | * @param[in] hash Hash of the message | ||
137 | */ | ||
138 | void | ||
139 | handle_message_delete (struct GNUNET_MESSENGER_SrvRoom *room, struct GNUNET_MESSENGER_MemberSession *session, | ||
140 | const struct GNUNET_MESSENGER_Message *message, const struct GNUNET_HashCode *hash); | ||
141 | |||
142 | #endif //GNUNET_SERVICE_MESSENGER_MESSAGE_HANDLE_H | ||