summaryrefslogtreecommitdiff
path: root/src/rps/rps.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/rps/rps.h')
-rw-r--r--src/rps/rps.h46
1 files changed, 17 insertions, 29 deletions
diff --git a/src/rps/rps.h b/src/rps/rps.h
index 5bfef93b0..dee6162be 100644
--- a/src/rps/rps.h
+++ b/src/rps/rps.h
@@ -11,7 +11,7 @@
11 WITHOUT ANY WARRANTY; without even the implied warranty of 11 WITHOUT ANY WARRANTY; without even the implied warranty of
12 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 12 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
13 Affero General Public License for more details. 13 Affero General Public License for more details.
14 14
15 You should have received a copy of the GNU Affero General Public License 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/>. 16 along with this program. If not, see <http://www.gnu.org/licenses/>.
17 17
@@ -34,14 +34,13 @@
34GNUNET_NETWORK_STRUCT_BEGIN 34GNUNET_NETWORK_STRUCT_BEGIN
35 35
36/*********************************************************************** 36/***********************************************************************
37 * P2P Messages 37* P2P Messages
38***********************************************************************/ 38***********************************************************************/
39 39
40/** 40/**
41 * P2P Message to send PeerIDs to other peer. 41 * P2P Message to send PeerIDs to other peer.
42 */ 42 */
43struct GNUNET_RPS_P2P_PullReplyMessage 43struct GNUNET_RPS_P2P_PullReplyMessage {
44{
45 /** 44 /**
46 * Header including size and type in NBO 45 * Header including size and type in NBO
47 */ 46 */
@@ -58,14 +57,13 @@ struct GNUNET_RPS_P2P_PullReplyMessage
58 57
59 58
60/*********************************************************************** 59/***********************************************************************
61 * Client-Service Messages 60* Client-Service Messages
62***********************************************************************/ 61***********************************************************************/
63 62
64/** 63/**
65 * Message from client to service with seed of peers. 64 * Message from client to service with seed of peers.
66 */ 65 */
67struct GNUNET_RPS_CS_SeedMessage 66struct GNUNET_RPS_CS_SeedMessage {
68{
69 /** 67 /**
70 * Header including size and type in NBO 68 * Header including size and type in NBO
71 */ 69 */
@@ -83,8 +81,7 @@ struct GNUNET_RPS_CS_SeedMessage
83/** 81/**
84 * Message from client to service to turn service malicious. 82 * Message from client to service to turn service malicious.
85 */ 83 */
86struct GNUNET_RPS_CS_ActMaliciousMessage 84struct GNUNET_RPS_CS_ActMaliciousMessage {
87{
88 /** 85 /**
89 * Header including size and type in NBO 86 * Header including size and type in NBO
90 */ 87 */
@@ -119,8 +116,7 @@ struct GNUNET_RPS_CS_ActMaliciousMessage
119/** 116/**
120 * Message from client to service telling it to start a new sub 117 * Message from client to service telling it to start a new sub
121 */ 118 */
122struct GNUNET_RPS_CS_SubStartMessage 119struct GNUNET_RPS_CS_SubStartMessage {
123{
124 /** 120 /**
125 * Header including size and type in NBO 121 * Header including size and type in NBO
126 */ 122 */
@@ -146,8 +142,7 @@ struct GNUNET_RPS_CS_SubStartMessage
146/** 142/**
147 * Message from client to service telling it to stop a new sub 143 * Message from client to service telling it to stop a new sub
148 */ 144 */
149struct GNUNET_RPS_CS_SubStopMessage 145struct GNUNET_RPS_CS_SubStopMessage {
150{
151 /** 146 /**
152 * Header including size and type in NBO 147 * Header including size and type in NBO
153 */ 148 */
@@ -166,8 +161,7 @@ struct GNUNET_RPS_CS_SubStopMessage
166 * Message from client to service indicating that 161 * Message from client to service indicating that
167 * clients wants to get updates of the view 162 * clients wants to get updates of the view
168 */ 163 */
169struct GNUNET_RPS_CS_DEBUG_ViewRequest 164struct GNUNET_RPS_CS_DEBUG_ViewRequest {
170{
171 /** 165 /**
172 * Header including size and type in NBO 166 * Header including size and type in NBO
173 */ 167 */
@@ -183,8 +177,7 @@ struct GNUNET_RPS_CS_DEBUG_ViewRequest
183/** 177/**
184 * Message from service to client containing current update of view 178 * Message from service to client containing current update of view
185 */ 179 */
186struct GNUNET_RPS_CS_DEBUG_ViewReply 180struct GNUNET_RPS_CS_DEBUG_ViewReply {
187{
188 /** 181 /**
189 * Header including size and type in NBO 182 * Header including size and type in NBO
190 */ 183 */
@@ -200,14 +193,13 @@ struct GNUNET_RPS_CS_DEBUG_ViewReply
200 */ 193 */
201 uint64_t num_peers GNUNET_PACKED; 194 uint64_t num_peers GNUNET_PACKED;
202}; 195};
203 /* Followed by num_peers * GNUNET_PeerIdentity */ 196/* Followed by num_peers * GNUNET_PeerIdentity */
204 197
205/** 198/**
206 * Message from client to service indicating that 199 * Message from client to service indicating that
207 * clients wants to get stream of biased peers 200 * clients wants to get stream of biased peers
208 */ 201 */
209struct GNUNET_RPS_CS_DEBUG_StreamRequest 202struct GNUNET_RPS_CS_DEBUG_StreamRequest {
210{
211 /** 203 /**
212 * Header including size and type in NBO 204 * Header including size and type in NBO
213 */ 205 */
@@ -217,8 +209,7 @@ struct GNUNET_RPS_CS_DEBUG_StreamRequest
217/** 209/**
218 * Message from service to client containing peer from biased stream 210 * Message from service to client containing peer from biased stream
219 */ 211 */
220struct GNUNET_RPS_CS_DEBUG_StreamReply 212struct GNUNET_RPS_CS_DEBUG_StreamReply {
221{
222 /** 213 /**
223 * Header including size and type in NBO 214 * Header including size and type in NBO
224 */ 215 */
@@ -237,14 +228,13 @@ struct GNUNET_RPS_CS_DEBUG_StreamReply
237GNUNET_NETWORK_STRUCT_END 228GNUNET_NETWORK_STRUCT_END
238 229
239/*********************************************************************** 230/***********************************************************************
240 * Defines from old gnunet-service-rps_peers.h 231* Defines from old gnunet-service-rps_peers.h
241***********************************************************************/ 232***********************************************************************/
242 233
243/** 234/**
244 * Different flags indicating the status of another peer. 235 * Different flags indicating the status of another peer.
245 */ 236 */
246enum Peers_PeerFlags 237enum Peers_PeerFlags {
247{
248 /** 238 /**
249 * If we are waiting for a reply from that peer (sent a pull request). 239 * If we are waiting for a reply from that peer (sent a pull request).
250 */ 240 */
@@ -273,8 +263,7 @@ enum Peers_PeerFlags
273 * This is needed in order to know what to do with a channel when it's 263 * This is needed in order to know what to do with a channel when it's
274 * destroyed. 264 * destroyed.
275 */ 265 */
276enum Peers_ChannelFlags 266enum Peers_ChannelFlags {
277{
278 /** 267 /**
279 * We destroyed the channel because the other peer established a second one. 268 * We destroyed the channel because the other peer established a second one.
280 */ 269 */
@@ -296,8 +285,7 @@ enum Peers_ChannelFlags
296/** 285/**
297 * @brief The role of a channel. Sending or receiving. 286 * @brief The role of a channel. Sending or receiving.
298 */ 287 */
299enum Peers_ChannelRole 288enum Peers_ChannelRole {
300{
301 /** 289 /**
302 * Channel is used for sending 290 * Channel is used for sending
303 */ 291 */