aboutsummaryrefslogtreecommitdiff
path: root/src/include/gnunet_stream_lib.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/include/gnunet_stream_lib.h')
-rw-r--r--src/include/gnunet_stream_lib.h10
1 files changed, 5 insertions, 5 deletions
diff --git a/src/include/gnunet_stream_lib.h b/src/include/gnunet_stream_lib.h
index 7097f8a5b..909c659d7 100644
--- a/src/include/gnunet_stream_lib.h
+++ b/src/include/gnunet_stream_lib.h
@@ -345,18 +345,18 @@ typedef size_t (*GNUNET_STREAM_DataProcessor) (void *cls,
345 345
346 346
347/** 347/**
348 * Tries to read data from the stream. 348 * Tries to read data from the stream. Should not be called when another read
349 * handle is present; the existing read handle should be canceled with
350 * GNUNET_STREAM_io_read_cancel(). Only one read handle per socket is present at
351 * any time
349 * 352 *
350 * @param socket the socket representing a stream 353 * @param socket the socket representing a stream
351 * @param timeout the timeout period 354 * @param timeout the timeout period
352 * @param proc function to call with data (once only) 355 * @param proc function to call with data (once only)
353 * @param proc_cls the closure for proc 356 * @param proc_cls the closure for proc
354 *
355 * @return handle to cancel the operation; NULL is returned if: the stream has 357 * @return handle to cancel the operation; NULL is returned if: the stream has
356 * been shutdown for this type of opeartion (the DataProcessor is 358 * been shutdown for this type of opeartion (the DataProcessor is
357 * immediately called with GNUNET_STREAM_SHUTDOWN as status) OR another 359 * immediately called with GNUNET_STREAM_SHUTDOWN as status)
358 * read handle is present (only one read handle per socket is present
359 * at any time)
360 */ 360 */
361struct GNUNET_STREAM_IOReadHandle * 361struct GNUNET_STREAM_IOReadHandle *
362GNUNET_STREAM_read (struct GNUNET_STREAM_Socket *socket, 362GNUNET_STREAM_read (struct GNUNET_STREAM_Socket *socket,