aboutsummaryrefslogtreecommitdiff
path: root/src/util
diff options
context:
space:
mode:
authorChristian Grothoff <christian@grothoff.org>2013-12-08 23:32:08 +0000
committerChristian Grothoff <christian@grothoff.org>2013-12-08 23:32:08 +0000
commitc937a1623b7fde5ff51c0055c0b3b65921a1f67d (patch)
tree1a1e4593d566c0377b4751e8af29843fe504f0b2 /src/util
parent05ce089eb0937591ea22802fc669dffed4219222 (diff)
downloadgnunet-c937a1623b7fde5ff51c0055c0b3b65921a1f67d.tar.gz
gnunet-c937a1623b7fde5ff51c0055c0b3b65921a1f67d.zip
-cleanup
Diffstat (limited to 'src/util')
-rw-r--r--src/util/server_mst.c13
1 files changed, 7 insertions, 6 deletions
diff --git a/src/util/server_mst.c b/src/util/server_mst.c
index 4e96653dc..6ef432756 100644
--- a/src/util/server_mst.c
+++ b/src/util/server_mst.c
@@ -81,7 +81,7 @@ struct GNUNET_SERVER_MessageStreamTokenizer
81 * Create a message stream tokenizer. 81 * Create a message stream tokenizer.
82 * 82 *
83 * @param cb function to call on completed messages 83 * @param cb function to call on completed messages
84 * @param cb_cls closure for cb 84 * @param cb_cls closure for @a cb
85 * @return handle to tokenizer 85 * @return handle to tokenizer
86 */ 86 */
87struct GNUNET_SERVER_MessageStreamTokenizer * 87struct GNUNET_SERVER_MessageStreamTokenizer *
@@ -106,17 +106,18 @@ GNUNET_SERVER_mst_create (GNUNET_SERVER_MessageTokenizerCallback cb,
106 * @param mst tokenizer to use 106 * @param mst tokenizer to use
107 * @param client_identity ID of client for which this is a buffer 107 * @param client_identity ID of client for which this is a buffer
108 * @param buf input data to add 108 * @param buf input data to add
109 * @param size number of bytes in buf 109 * @param size number of bytes in @a buf
110 * @param purge should any excess bytes in the buffer be discarded 110 * @param purge should any excess bytes in the buffer be discarded
111 * (i.e. for packet-based services like UDP) 111 * (i.e. for packet-based services like UDP)
112 * @param one_shot only call callback once, keep rest of message in buffer 112 * @param one_shot only call callback once, keep rest of message in buffer
113 * @return GNUNET_OK if we are done processing (need more data) 113 * @return #GNUNET_OK if we are done processing (need more data)
114 * GNUNET_NO if one_shot was set and we have another message ready 114 * #GNUNET_NO if @a one_shot was set and we have another message ready
115 * GNUNET_SYSERR if the data stream is corrupt 115 * #GNUNET_SYSERR if the data stream is corrupt
116 */ 116 */
117int 117int
118GNUNET_SERVER_mst_receive (struct GNUNET_SERVER_MessageStreamTokenizer *mst, 118GNUNET_SERVER_mst_receive (struct GNUNET_SERVER_MessageStreamTokenizer *mst,
119 void *client_identity, const char *buf, size_t size, 119 void *client_identity,
120 const char *buf, size_t size,
120 int purge, int one_shot) 121 int purge, int one_shot)
121{ 122{
122 const struct GNUNET_MessageHeader *hdr; 123 const struct GNUNET_MessageHeader *hdr;