- * when some action takes place on the stream. It is called for example
- * when data is available for reading or writing, or if an error occurs.
- * This can be called at any time for valid stream. If `notifier' is set
- * to NULL no callback will be called for the stream.
+ * when some action takes place on the stream. This effectively means
+ * scheduling the stream for various actions, that then eventually will
+ * be delivered to caller in the `notifier' callback. It is called for
+ * example when data is available for reading or writing, or if an error
+ * occurs. This can be called at any time for valid stream.
+ * If `notifier' is set to NULL no callback will be called for the stream,
+ * and the stream is not scheduled anymore.
+ *
+ ***/
+void silc_stream_set_notifier(SilcStream stream, SilcSchedule schedule,
+ SilcStreamNotifier notifier, void *context);
+
+/****f* silcutil/SilcStreamAPI/silc_stream_get_schedule
+ *
+ * SYNOPSIS
+ *
+ * SilcSchedule silc_stream_get_schedule(SilcStream stream);
+ *
+ * DESCRIPTION
+ *
+ * Returns the scheduler that has been associated with the `stream', or
+ * NULL if one has not been set for the `stream'.