diff options
author | Christian Grothoff <christian@grothoff.org> | 2011-07-09 17:25:43 +0000 |
---|---|---|
committer | Christian Grothoff <christian@grothoff.org> | 2011-07-09 17:25:43 +0000 |
commit | 1e463296e3635a4a82584a3c4e205e096ce53ad1 (patch) | |
tree | 332c3d5480c43e75ce0a55b0508804e5df2fb8d0 /src/include/gnunet_fragmentation_lib.h | |
parent | 42b758ecd70b4057d2b9a11d16284c9b5fc15d36 (diff) | |
download | gnunet-1e463296e3635a4a82584a3c4e205e096ce53ad1.tar.gz gnunet-1e463296e3635a4a82584a3c4e205e096ce53ad1.zip |
defrag
Diffstat (limited to 'src/include/gnunet_fragmentation_lib.h')
-rw-r--r-- | src/include/gnunet_fragmentation_lib.h | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/src/include/gnunet_fragmentation_lib.h b/src/include/gnunet_fragmentation_lib.h index b2ba064f8..5fbf415f3 100644 --- a/src/include/gnunet_fragmentation_lib.h +++ b/src/include/gnunet_fragmentation_lib.h | |||
@@ -112,7 +112,7 @@ GNUNET_FRAGMENT_context_destroy (struct GNUNET_FRAGMENT_Context *fc); | |||
112 | 112 | ||
113 | 113 | ||
114 | /** | 114 | /** |
115 | * Defragmentation context. | 115 | * Defragmentation context (one per connection). |
116 | */ | 116 | */ |
117 | struct GNUNET_DEFRAGMENT_Context; | 117 | struct GNUNET_DEFRAGMENT_Context; |
118 | 118 | ||
@@ -121,6 +121,9 @@ struct GNUNET_DEFRAGMENT_Context; | |||
121 | * Create a defragmentation context. | 121 | * Create a defragmentation context. |
122 | * | 122 | * |
123 | * @param stats statistics context | 123 | * @param stats statistics context |
124 | * @param mtu the maximum message size for each fragment | ||
125 | * @param num_msgs how many fragmented messages | ||
126 | * to we defragment at most at the same time? | ||
124 | * @param cls closure for proc and ackp | 127 | * @param cls closure for proc and ackp |
125 | * @param proc function to call with defragmented messages | 128 | * @param proc function to call with defragmented messages |
126 | * @param ackp function to call with acknowledgements (to send | 129 | * @param ackp function to call with acknowledgements (to send |
@@ -129,6 +132,8 @@ struct GNUNET_DEFRAGMENT_Context; | |||
129 | */ | 132 | */ |
130 | struct GNUNET_DEFRAGMENT_Context * | 133 | struct GNUNET_DEFRAGMENT_Context * |
131 | GNUNET_DEFRAGMENT_context_create (struct GNUNET_STATISTICS_Handle *stats, | 134 | GNUNET_DEFRAGMENT_context_create (struct GNUNET_STATISTICS_Handle *stats, |
135 | uint16_t mtu, | ||
136 | unsigned int num_msgs, | ||
132 | void *cls, | 137 | void *cls, |
133 | GNUNET_FRAGMENT_MessageProcessor proc, | 138 | GNUNET_FRAGMENT_MessageProcessor proc, |
134 | GNUNET_FRAGMENT_MessageProcessor ackp); | 139 | GNUNET_FRAGMENT_MessageProcessor ackp); |