aboutsummaryrefslogtreecommitdiff
path: root/src/include/gnunet_stream_lib.h
diff options
context:
space:
mode:
authorSree Harsha Totakura <totakura@in.tum.de>2012-04-06 19:19:32 +0000
committerSree Harsha Totakura <totakura@in.tum.de>2012-04-06 19:19:32 +0000
commita94d4a2677b856ab2dc68414c6f7e95a50943b76 (patch)
treeef1a84c1768f54d59732e1cc492a63d396060654 /src/include/gnunet_stream_lib.h
parentde986871fad51b69ccfc30c97a132e8cf45d94a7 (diff)
downloadgnunet-a94d4a2677b856ab2dc68414c6f7e95a50943b76.tar.gz
gnunet-a94d4a2677b856ab2dc68414c6f7e95a50943b76.zip
-added STREAM_shutdown
Diffstat (limited to 'src/include/gnunet_stream_lib.h')
-rw-r--r--src/include/gnunet_stream_lib.h8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/include/gnunet_stream_lib.h b/src/include/gnunet_stream_lib.h
index 4a574dfe4..ac2ce0854 100644
--- a/src/include/gnunet_stream_lib.h
+++ b/src/include/gnunet_stream_lib.h
@@ -142,14 +142,14 @@ typedef void (*GNUNET_STREAM_ShutdownCompletion) (void *cls,
142 142
143 143
144/** 144/**
145 * Shutdown the stream for reading or writing (man 2 shutdown). 145 * Shutdown the stream for reading or writing (similar to man 2 shutdown).
146 * 146 *
147 * @param socket the stream socket 147 * @param socket the stream socket
148 * @param opertion SHUT_RD, SHUT_WR or SHUT_RDWR 148 * @param operation SHUT_RD, SHUT_WR or SHUT_RDWR
149 * @param completion_cb the callback that will be called upon successful 149 * @param completion_cb the callback that will be called upon successful
150 * shutdown of given operation 150 * shutdown of given operation
151 * @param completion_cls the closure for the completion callback 151 * @param completion_cls the closure for the completion callback
152 * @return the shutdown handle 152 * @return the shutdown handle; NULL in case of any error
153 */ 153 */
154struct GNUNET_STREAM_ShutdownHandle * 154struct GNUNET_STREAM_ShutdownHandle *
155GNUNET_STREAM_shutdown (struct GNUNET_STREAM_Socket *socket, 155GNUNET_STREAM_shutdown (struct GNUNET_STREAM_Socket *socket,
@@ -161,7 +161,7 @@ GNUNET_STREAM_shutdown (struct GNUNET_STREAM_Socket *socket,
161/** 161/**
162 * Cancels a pending shutdown 162 * Cancels a pending shutdown
163 * 163 *
164 * @param the shutdown handle returned from GNUNET_STREAM_shutdown 164 * @param handle the shutdown handle returned from GNUNET_STREAM_shutdown
165 */ 165 */
166void 166void
167GNUNET_STREAM_shutdown_cancel (struct GNUNET_STREAM_ShutdownHandle *handle); 167GNUNET_STREAM_shutdown_cancel (struct GNUNET_STREAM_ShutdownHandle *handle);