aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChristian Grothoff <christian@grothoff.org>2019-08-06 19:12:03 +0200
committerChristian Grothoff <christian@grothoff.org>2019-08-06 19:12:03 +0200
commit6b23a8225efed99498f891b589c7c5171567192b (patch)
tree252f57fe8fda82236de4fe26d8c75a89ff03b05f
parent1b0e7d3f59c3236aae3a64b7b19ee827eec4bb9c (diff)
downloadgnunet-6b23a8225efed99498f891b589c7c5171567192b.tar.gz
gnunet-6b23a8225efed99498f891b589c7c5171567192b.zip
clarify incorrect comment identified by Alessio Vanni on the gnunet-developer mailinglist
-rw-r--r--src/cadet/cadet_api.c7
-rw-r--r--src/include/gnunet_cadet_service.h9
2 files changed, 7 insertions, 9 deletions
diff --git a/src/cadet/cadet_api.c b/src/cadet/cadet_api.c
index ff6f15543..7148ab956 100644
--- a/src/cadet/cadet_api.c
+++ b/src/cadet/cadet_api.c
@@ -1050,9 +1050,9 @@ GNUNET_CADET_open_port (struct GNUNET_CADET_Handle *h,
1050/** 1050/**
1051 * Create a new channel towards a remote peer. 1051 * Create a new channel towards a remote peer.
1052 * 1052 *
1053 * If the destination port is not open by any peer or the destination peer 1053 * If the destination peer closes the channel after accepting it,
1054 * does not accept the channel, #GNUNET_CADET_ChannelEndHandler will be called 1054 * @a disconnects will be called for this channel (unless
1055 * for this channel. 1055 * #GNUNET_CADET_channel_destroy() was called on this end first).
1056 * 1056 *
1057 * @param h CADET handle. 1057 * @param h CADET handle.
1058 * @param channel_cls Closure for the channel. It's given to: 1058 * @param channel_cls Closure for the channel. It's given to:
@@ -1060,7 +1060,6 @@ GNUNET_CADET_open_port (struct GNUNET_CADET_Handle *h,
1060 * - Each message type callback in @a handlers 1060 * - Each message type callback in @a handlers
1061 * @param destination Peer identity the channel should go to. 1061 * @param destination Peer identity the channel should go to.
1062 * @param port Identification of the destination port. 1062 * @param port Identification of the destination port.
1063 * @param options CadetOption flag field, with all desired option bits set to 1.
1064 * @param window_changes Function called when the transmit window size changes. 1063 * @param window_changes Function called when the transmit window size changes.
1065 * @param disconnects Function called when the channel is disconnected. 1064 * @param disconnects Function called when the channel is disconnected.
1066 * @param handlers Callbacks for messages we care about, NULL-terminated. 1065 * @param handlers Callbacks for messages we care about, NULL-terminated.
diff --git a/src/include/gnunet_cadet_service.h b/src/include/gnunet_cadet_service.h
index ba4d60eb8..819e39353 100644
--- a/src/include/gnunet_cadet_service.h
+++ b/src/include/gnunet_cadet_service.h
@@ -205,9 +205,9 @@ GNUNET_CADET_close_port (struct GNUNET_CADET_Port *p);
205/** 205/**
206 * Create a new channel towards a remote peer. 206 * Create a new channel towards a remote peer.
207 * 207 *
208 * If the destination port is not open by any peer or the destination peer 208 * If the destination peer closes the channel after accepting it,
209 * does not accept the channel, @a disconnects will be called 209 * @a disconnects will be called for this channel (unless
210 * for this channel. 210 * #GNUNET_CADET_channel_destroy() was called on this end first).
211 * 211 *
212 * @param h CADET handle. 212 * @param h CADET handle.
213 * @param channel_cls Closure for the channel. It's given to: 213 * @param channel_cls Closure for the channel. It's given to:
@@ -218,7 +218,6 @@ GNUNET_CADET_close_port (struct GNUNET_CADET_Port *p);
218 * @param port Identification of the destination port. 218 * @param port Identification of the destination port.
219 * @param window_changes Function called when the transmit window size changes. 219 * @param window_changes Function called when the transmit window size changes.
220 * Can be NULL if this data is of no interest. 220 * Can be NULL if this data is of no interest.
221 * TODO Not yet implemented.
222 * @param disconnects Function called when the channel is disconnected. 221 * @param disconnects Function called when the channel is disconnected.
223 * @param handlers Callbacks for messages we care about, NULL-terminated. 222 * @param handlers Callbacks for messages we care about, NULL-terminated.
224 * @return Handle to the channel. 223 * @return Handle to the channel.
@@ -317,7 +316,7 @@ union GNUNET_CADET_ChannelInfo
317 */ 316 */
318const union GNUNET_CADET_ChannelInfo * 317const union GNUNET_CADET_ChannelInfo *
319GNUNET_CADET_channel_get_info (struct GNUNET_CADET_Channel *channel, 318GNUNET_CADET_channel_get_info (struct GNUNET_CADET_Channel *channel,
320 enum GNUNET_CADET_ChannelInfoOption option, 319 enum GNUNET_CADET_ChannelInfoOption option,
321 ...); 320 ...);
322 321
323 322