-peer review
[oweals/gnunet.git] / src / include / gnunet_stream_lib.h
index a134470c75b7ccca763fcdb0133e065f79afdd7c..ac106593728da0e452eae00dd5f3018a78642115 100644 (file)
@@ -129,7 +129,14 @@ enum GNUNET_STREAM_Option
      * GNUNET_STREAM_ListenSuccessCallback. The callback is only called if
      * listen is successful
      */
-    GNUNET_STREAM_OPTION_SIGNAL_LISTEN_SUCCESS
+    GNUNET_STREAM_OPTION_SIGNAL_LISTEN_SUCCESS,
+
+    /**
+     * Option to set the maximum payload size in bytes of a stream data
+     * packets. Takes an uint16_t as argument. Note that this should be less
+     * than 64000 and cannot be zero. Default is 64000 bytes.
+     */
+    GNUNET_STREAM_OPTION_MAX_PAYLOAD_SIZE
   };