diff options
author | Julius Bünger <buenger@mytum.de> | 2018-10-11 14:39:48 +0200 |
---|---|---|
committer | Julius Bünger <buenger@mytum.de> | 2018-10-11 14:40:44 +0200 |
commit | fbbf0db19d08fe54f5b51c82b6cb1c9c7a2d040d (patch) | |
tree | 2248e208d0821c4d2c4aac5a4b03309cd0fa6c21 /src/rps/rps.h | |
parent | 0cdd1af62ca1f17fdca31be6e28ad24dcf3293b1 (diff) | |
download | gnunet-fbbf0db19d08fe54f5b51c82b6cb1c9c7a2d040d.tar.gz gnunet-fbbf0db19d08fe54f5b51c82b6cb1c9c7a2d040d.zip |
RPS API: Add creation, deletion of Subs
Diffstat (limited to 'src/rps/rps.h')
-rw-r--r-- | src/rps/rps.h | 44 |
1 files changed, 44 insertions, 0 deletions
diff --git a/src/rps/rps.h b/src/rps/rps.h index 915524f88..616eabdac 100644 --- a/src/rps/rps.h +++ b/src/rps/rps.h | |||
@@ -114,6 +114,50 @@ struct GNUNET_RPS_CS_ActMaliciousMessage | |||
114 | #endif /* ENABLE_MALICIOUS */ | 114 | #endif /* ENABLE_MALICIOUS */ |
115 | 115 | ||
116 | 116 | ||
117 | /** | ||
118 | * Message from client to service telling it to start a new sub | ||
119 | */ | ||
120 | struct GNUNET_RPS_CS_SubStartMessage | ||
121 | { | ||
122 | /** | ||
123 | * Header including size and type in NBO | ||
124 | */ | ||
125 | struct GNUNET_MessageHeader header; | ||
126 | |||
127 | /** | ||
128 | * For alignment. | ||
129 | */ | ||
130 | uint32_t reserved GNUNET_PACKED; | ||
131 | |||
132 | /** | ||
133 | * Mean interval between two rounds | ||
134 | */ | ||
135 | struct GNUNET_TIME_RelativeNBO round_interval; | ||
136 | |||
137 | /** | ||
138 | * Length of the shared value represented as string. | ||
139 | */ | ||
140 | struct GNUNET_HashCode hash GNUNET_PACKED; | ||
141 | }; | ||
142 | |||
143 | |||
144 | /** | ||
145 | * Message from client to service telling it to stop a new sub | ||
146 | */ | ||
147 | struct GNUNET_RPS_CS_SubStopMessage | ||
148 | { | ||
149 | /** | ||
150 | * Header including size and type in NBO | ||
151 | */ | ||
152 | struct GNUNET_MessageHeader header; | ||
153 | |||
154 | /** | ||
155 | * Length of the shared value represented as string. | ||
156 | */ | ||
157 | struct GNUNET_HashCode hash GNUNET_PACKED; | ||
158 | }; | ||
159 | |||
160 | |||
117 | /* Debug messages */ | 161 | /* Debug messages */ |
118 | 162 | ||
119 | /** | 163 | /** |