-peer review
[oweals/gnunet.git] / src / include / gnunet_stream_lib.h
index fd44ccfa0a9b970afcd313407cd4f315eac9af59..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
   };
 
 
@@ -140,7 +147,8 @@ enum GNUNET_STREAM_Option
  * @param target the target peer to which the stream has to be opened
  * @param app_port the application port number which uniquely identifies this
  *            stream
- * @param open_cb this function will be called after stream has be established 
+ * @param open_cb this function will be called after stream has be established;
+ *          cannot be NULL
  * @param open_cb_cls the closure for open_cb
  * @param ... options to the stream, terminated by GNUNET_STREAM_OPTION_END
  * @return if successful it returns the stream socket; NULL if stream cannot be