* 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
};
* @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