aboutsummaryrefslogtreecommitdiff
path: root/src/include
diff options
context:
space:
mode:
authorChristian Grothoff <christian@grothoff.org>2011-07-09 17:25:43 +0000
committerChristian Grothoff <christian@grothoff.org>2011-07-09 17:25:43 +0000
commit1e463296e3635a4a82584a3c4e205e096ce53ad1 (patch)
tree332c3d5480c43e75ce0a55b0508804e5df2fb8d0 /src/include
parent42b758ecd70b4057d2b9a11d16284c9b5fc15d36 (diff)
downloadgnunet-1e463296e3635a4a82584a3c4e205e096ce53ad1.tar.gz
gnunet-1e463296e3635a4a82584a3c4e205e096ce53ad1.zip
defrag
Diffstat (limited to 'src/include')
-rw-r--r--src/include/gnunet_fragmentation_lib.h7
-rw-r--r--src/include/gnunet_protocols.h6
2 files changed, 12 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 */
117struct GNUNET_DEFRAGMENT_Context; 117struct 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 */
130struct GNUNET_DEFRAGMENT_Context * 133struct GNUNET_DEFRAGMENT_Context *
131GNUNET_DEFRAGMENT_context_create (struct GNUNET_STATISTICS_Handle *stats, 134GNUNET_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);
diff --git a/src/include/gnunet_protocols.h b/src/include/gnunet_protocols.h
index 960ec60ab..2800e5b92 100644
--- a/src/include/gnunet_protocols.h
+++ b/src/include/gnunet_protocols.h
@@ -103,6 +103,12 @@ extern "C"
103#define GNUNET_MESSAGE_TYPE_FRAGMENT 18 103#define GNUNET_MESSAGE_TYPE_FRAGMENT 18
104 104
105/** 105/**
106 * Acknowledgement of a FRAGMENT of a larger message.
107 * Managed by libgnunetfragment.
108 */
109#define GNUNET_MESSAGE_TYPE_FRAGMENT_ACK 19
110
111/**
106 * Message from the core saying that the transport 112 * Message from the core saying that the transport
107 * server should start giving it messages. This 113 * server should start giving it messages. This
108 * should automatically trigger the transmission of 114 * should automatically trigger the transmission of