aboutsummaryrefslogtreecommitdiff
path: root/src/include/gnunet_fragmentation_lib.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/include/gnunet_fragmentation_lib.h')
-rw-r--r--src/include/gnunet_fragmentation_lib.h52
1 files changed, 26 insertions, 26 deletions
diff --git a/src/include/gnunet_fragmentation_lib.h b/src/include/gnunet_fragmentation_lib.h
index f76bfc23f..3004c7a44 100644
--- a/src/include/gnunet_fragmentation_lib.h
+++ b/src/include/gnunet_fragmentation_lib.h
@@ -11,12 +11,12 @@
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
18 SPDX-License-Identifier: AGPL3.0-or-later 18 SPDX-License-Identifier: AGPL3.0-or-later
19*/ 19 */
20/** 20/**
21 * @author Christian Grothoff 21 * @author Christian Grothoff
22 * 22 *
@@ -88,14 +88,14 @@ typedef void
88 * @return the fragmentation context 88 * @return the fragmentation context
89 */ 89 */
90struct GNUNET_FRAGMENT_Context * 90struct GNUNET_FRAGMENT_Context *
91GNUNET_FRAGMENT_context_create (struct GNUNET_STATISTICS_Handle *stats, 91GNUNET_FRAGMENT_context_create(struct GNUNET_STATISTICS_Handle *stats,
92 uint16_t mtu, 92 uint16_t mtu,
93 struct GNUNET_BANDWIDTH_Tracker *tracker, 93 struct GNUNET_BANDWIDTH_Tracker *tracker,
94 struct GNUNET_TIME_Relative msg_delay, 94 struct GNUNET_TIME_Relative msg_delay,
95 struct GNUNET_TIME_Relative ack_delay, 95 struct GNUNET_TIME_Relative ack_delay,
96 const struct GNUNET_MessageHeader *msg, 96 const struct GNUNET_MessageHeader *msg,
97 GNUNET_FRAGMENT_MessageProcessor proc, 97 GNUNET_FRAGMENT_MessageProcessor proc,
98 void *proc_cls); 98 void *proc_cls);
99 99
100 100
101/** 101/**
@@ -106,7 +106,7 @@ GNUNET_FRAGMENT_context_create (struct GNUNET_STATISTICS_Handle *stats,
106 * @param fc fragmentation context 106 * @param fc fragmentation context
107 */ 107 */
108void 108void
109GNUNET_FRAGMENT_context_transmission_done (struct GNUNET_FRAGMENT_Context *fc); 109GNUNET_FRAGMENT_context_transmission_done(struct GNUNET_FRAGMENT_Context *fc);
110 110
111 111
112/** 112/**
@@ -121,8 +121,8 @@ GNUNET_FRAGMENT_context_transmission_done (struct GNUNET_FRAGMENT_Context *fc);
121 * #GNUNET_SYSERR if this ack is not valid for this fc 121 * #GNUNET_SYSERR if this ack is not valid for this fc
122 */ 122 */
123int 123int
124GNUNET_FRAGMENT_process_ack (struct GNUNET_FRAGMENT_Context *fc, 124GNUNET_FRAGMENT_process_ack(struct GNUNET_FRAGMENT_Context *fc,
125 const struct GNUNET_MessageHeader *msg); 125 const struct GNUNET_MessageHeader *msg);
126 126
127 127
128/** 128/**
@@ -136,9 +136,9 @@ GNUNET_FRAGMENT_process_ack (struct GNUNET_FRAGMENT_Context *fc,
136 * last message, set to FOREVER if the message was not fully transmitted (OUT only) 136 * last message, set to FOREVER if the message was not fully transmitted (OUT only)
137 */ 137 */
138void 138void
139GNUNET_FRAGMENT_context_destroy (struct GNUNET_FRAGMENT_Context *fc, 139GNUNET_FRAGMENT_context_destroy(struct GNUNET_FRAGMENT_Context *fc,
140 struct GNUNET_TIME_Relative *msg_delay, 140 struct GNUNET_TIME_Relative *msg_delay,
141 struct GNUNET_TIME_Relative *ack_delay); 141 struct GNUNET_TIME_Relative *ack_delay);
142 142
143 143
144/** 144/**
@@ -148,7 +148,7 @@ GNUNET_FRAGMENT_context_destroy (struct GNUNET_FRAGMENT_Context *fc,
148 * @return ack in human-readable format 148 * @return ack in human-readable format
149 */ 149 */
150const char * 150const char *
151GNUNET_FRAGMENT_print_ack (const struct GNUNET_MessageHeader *ack); 151GNUNET_FRAGMENT_print_ack(const struct GNUNET_MessageHeader *ack);
152 152
153 153
154/** 154/**
@@ -187,12 +187,12 @@ typedef void
187 * @return the defragmentation context 187 * @return the defragmentation context
188 */ 188 */
189struct GNUNET_DEFRAGMENT_Context * 189struct GNUNET_DEFRAGMENT_Context *
190GNUNET_DEFRAGMENT_context_create (struct GNUNET_STATISTICS_Handle *stats, 190GNUNET_DEFRAGMENT_context_create(struct GNUNET_STATISTICS_Handle *stats,
191 uint16_t mtu, 191 uint16_t mtu,
192 unsigned int num_msgs, 192 unsigned int num_msgs,
193 void *cls, 193 void *cls,
194 GNUNET_FRAGMENT_MessageProcessor proc, 194 GNUNET_FRAGMENT_MessageProcessor proc,
195 GNUNET_DEFRAGMENT_AckProcessor ackp); 195 GNUNET_DEFRAGMENT_AckProcessor ackp);
196 196
197 197
198/** 198/**
@@ -201,7 +201,7 @@ GNUNET_DEFRAGMENT_context_create (struct GNUNET_STATISTICS_Handle *stats,
201 * @param dc defragmentation context 201 * @param dc defragmentation context
202 */ 202 */
203void 203void
204GNUNET_DEFRAGMENT_context_destroy (struct GNUNET_DEFRAGMENT_Context *dc); 204GNUNET_DEFRAGMENT_context_destroy(struct GNUNET_DEFRAGMENT_Context *dc);
205 205
206 206
207/** 207/**
@@ -214,8 +214,8 @@ GNUNET_DEFRAGMENT_context_destroy (struct GNUNET_DEFRAGMENT_Context *dc);
214 * #GNUNET_SYSERR on error 214 * #GNUNET_SYSERR on error
215 */ 215 */
216int 216int
217GNUNET_DEFRAGMENT_process_fragment (struct GNUNET_DEFRAGMENT_Context *dc, 217GNUNET_DEFRAGMENT_process_fragment(struct GNUNET_DEFRAGMENT_Context *dc,
218 const struct GNUNET_MessageHeader *msg); 218 const struct GNUNET_MessageHeader *msg);
219 219
220 220
221 221