diff options
author | Sree Harsha Totakura <totakura@in.tum.de> | 2012-06-17 17:56:45 +0000 |
---|---|---|
committer | Sree Harsha Totakura <totakura@in.tum.de> | 2012-06-17 17:56:45 +0000 |
commit | a31b6d486baee50c455914f292c2f14e52e398f8 (patch) | |
tree | 377a301ad28aaa646a9e8423a06110491fe2d1d4 /src/include/gnunet_stream_lib.h | |
parent | af6398009fc46d35ba447dc2b666fc7a97b53258 (diff) | |
download | gnunet-a31b6d486baee50c455914f292c2f14e52e398f8.tar.gz gnunet-a31b6d486baee50c455914f292c2f14e52e398f8.zip |
-stream uses locks from lockmanager
Diffstat (limited to 'src/include/gnunet_stream_lib.h')
-rw-r--r-- | src/include/gnunet_stream_lib.h | 11 |
1 files changed, 8 insertions, 3 deletions
diff --git a/src/include/gnunet_stream_lib.h b/src/include/gnunet_stream_lib.h index f348780e3..282372483 100644 --- a/src/include/gnunet_stream_lib.h +++ b/src/include/gnunet_stream_lib.h | |||
@@ -192,9 +192,9 @@ GNUNET_STREAM_close (struct GNUNET_STREAM_Socket *socket); | |||
192 | * Functions of this type are called upon new stream connection from other peers | 192 | * Functions of this type are called upon new stream connection from other peers |
193 | * | 193 | * |
194 | * @param cls the closure from GNUNET_STREAM_listen | 194 | * @param cls the closure from GNUNET_STREAM_listen |
195 | * @param socket the socket representing the stream | 195 | * @param socket the socket representing the stream; NULL on binding error |
196 | * @param initiator the identity of the peer who wants to establish a stream | 196 | * @param initiator the identity of the peer who wants to establish a stream |
197 | * with us | 197 | * with us; NULL on binding error |
198 | * @return GNUNET_OK to keep the socket open, GNUNET_SYSERR to close the | 198 | * @return GNUNET_OK to keep the socket open, GNUNET_SYSERR to close the |
199 | * stream (the socket will be invalid after the call) | 199 | * stream (the socket will be invalid after the call) |
200 | */ | 200 | */ |
@@ -213,7 +213,12 @@ struct GNUNET_STREAM_ListenSocket; | |||
213 | * Listens for stream connections for a specific application ports | 213 | * Listens for stream connections for a specific application ports |
214 | * | 214 | * |
215 | * @param cfg the configuration to use | 215 | * @param cfg the configuration to use |
216 | * @param app_port the application port for which new streams will be accepted | 216 | * |
217 | * @param app_port the application port for which new streams will be | ||
218 | * accepted. If another stream is listening on the same port the | ||
219 | * listen_cb will be called to signal binding error and the returned | ||
220 | * ListenSocket will be invalidated. | ||
221 | * | ||
217 | * @param listen_cb this function will be called when a peer tries to establish | 222 | * @param listen_cb this function will be called when a peer tries to establish |
218 | * a stream with us | 223 | * a stream with us |
219 | * @param listen_cb_cls closure for listen_cb | 224 | * @param listen_cb_cls closure for listen_cb |