aboutsummaryrefslogtreecommitdiff
path: root/src/stream
diff options
context:
space:
mode:
authorSree Harsha Totakura <totakura@in.tum.de>2012-10-04 09:11:11 +0000
committerSree Harsha Totakura <totakura@in.tum.de>2012-10-04 09:11:11 +0000
commit6872f3488097476c4c883248859a6f710052104b (patch)
tree5a3fd1d6cd26e0596ef474e3a8e523e754d6e91a /src/stream
parentee5c6167bceee4e9dfdb2456f050781b96ff0c41 (diff)
downloadgnunet-6872f3488097476c4c883248859a6f710052104b.tar.gz
gnunet-6872f3488097476c4c883248859a6f710052104b.zip
doc
Diffstat (limited to 'src/stream')
-rw-r--r--src/stream/stream_api.c12
1 files changed, 6 insertions, 6 deletions
diff --git a/src/stream/stream_api.c b/src/stream/stream_api.c
index e3ce7f88b..5c72d7437 100644
--- a/src/stream/stream_api.c
+++ b/src/stream/stream_api.c
@@ -2766,9 +2766,7 @@ tunnel_cleaner (void *cls,
2766{ 2766{
2767 struct GNUNET_STREAM_Socket *socket = tunnel_ctx; 2767 struct GNUNET_STREAM_Socket *socket = tunnel_ctx;
2768 2768
2769 if (tunnel != socket->tunnel) 2769 GNUNET_assert (tunnel == socket->tunnel);
2770 return;
2771
2772 GNUNET_break_op(0); 2770 GNUNET_break_op(0);
2773 LOG (GNUNET_ERROR_TYPE_DEBUG, 2771 LOG (GNUNET_ERROR_TYPE_DEBUG,
2774 "%s: Peer %s has terminated connection abruptly\n", 2772 "%s: Peer %s has terminated connection abruptly\n",
@@ -3376,9 +3374,11 @@ GNUNET_STREAM_write (struct GNUNET_STREAM_Socket *socket,
3376 * @param proc function to call with data (once only) 3374 * @param proc function to call with data (once only)
3377 * @param proc_cls the closure for proc 3375 * @param proc_cls the closure for proc
3378 * 3376 *
3379 * @return handle to cancel the operation; if the stream has been shutdown for 3377 * @return handle to cancel the operation; NULL is returned if: the stream has
3380 * this type of opeartion then the DataProcessor is immediately 3378 * been shutdown for this type of opeartion (the DataProcessor is
3381 * called with GNUNET_STREAM_SHUTDOWN as status and NULL if returned 3379 * immediately called with GNUNET_STREAM_SHUTDOWN as status) OR another
3380 * read handle is present (only one read handle per socket is present
3381 * at any time)
3382 */ 3382 */
3383struct GNUNET_STREAM_IOReadHandle * 3383struct GNUNET_STREAM_IOReadHandle *
3384GNUNET_STREAM_read (struct GNUNET_STREAM_Socket *socket, 3384GNUNET_STREAM_read (struct GNUNET_STREAM_Socket *socket,