diff options
author | t3sserakt <t3ss@posteo.de> | 2019-06-24 11:47:25 +0200 |
---|---|---|
committer | t3sserakt <t3ss@posteo.de> | 2019-06-26 00:15:31 +0200 |
commit | c4fa51bb2d924fe3f7fc94f3c1cbdda179b8a4d5 (patch) | |
tree | d031140d5f703852853eb71823337fed9942f251 /src/include | |
parent | 17611641fe7da3d2711e1f20eaf2ee81faf0e702 (diff) | |
download | gnunet-c4fa51bb2d924fe3f7fc94f3c1cbdda179b8a4d5.tar.gz gnunet-c4fa51bb2d924fe3f7fc94f3c1cbdda179b8a4d5.zip |
removed GNUNET_CADET_ChannelOption
Diffstat (limited to 'src/include')
-rw-r--r-- | src/include/gnunet_cadet_service.h | 47 |
1 files changed, 0 insertions, 47 deletions
diff --git a/src/include/gnunet_cadet_service.h b/src/include/gnunet_cadet_service.h index a11c5f3cb..fd591924a 100644 --- a/src/include/gnunet_cadet_service.h +++ b/src/include/gnunet_cadet_service.h | |||
@@ -93,49 +93,6 @@ struct GNUNET_CADET_ChannelTunnelNumber | |||
93 | uint32_t cn GNUNET_PACKED; | 93 | uint32_t cn GNUNET_PACKED; |
94 | }; | 94 | }; |
95 | 95 | ||
96 | |||
97 | /** | ||
98 | * Channel options. Second line indicates filed in the | ||
99 | * CadetChannelInfo union carrying the answer. | ||
100 | * | ||
101 | * @deprecated we should replace channel options with per-envelope | ||
102 | * options, and then re-use the options from `enum GNUNET_MQ_PriorityPreferences`. | ||
103 | */ | ||
104 | enum GNUNET_CADET_ChannelOption | ||
105 | { | ||
106 | /** | ||
107 | * Default options: unreliable, default buffering, not out of order. | ||
108 | */ | ||
109 | GNUNET_CADET_OPTION_DEFAULT = 0x0, | ||
110 | |||
111 | /** | ||
112 | * Disable buffering on intermediate nodes (for minimum latency). | ||
113 | * Yes/No. | ||
114 | */ | ||
115 | GNUNET_CADET_OPTION_NOBUFFER = 0x1, | ||
116 | |||
117 | /** | ||
118 | * Enable channel reliability, lost messages will be retransmitted. | ||
119 | * Yes/No. | ||
120 | */ | ||
121 | GNUNET_CADET_OPTION_RELIABLE = 0x2, | ||
122 | |||
123 | /** | ||
124 | * Enable out of order delivery of messages. | ||
125 | * Set bit for out-of-order delivery. | ||
126 | */ | ||
127 | GNUNET_CADET_OPTION_OUT_OF_ORDER = 0x4, | ||
128 | |||
129 | /** | ||
130 | * Who is the peer at the other end of the channel. | ||
131 | * Only for use in @c GNUNET_CADET_channel_get_info | ||
132 | * struct GNUNET_PeerIdentity *peer | ||
133 | */ | ||
134 | GNUNET_CADET_OPTION_PEER = 0x8 | ||
135 | |||
136 | }; | ||
137 | |||
138 | |||
139 | /** | 96 | /** |
140 | * Method called whenever a peer connects to a port in MQ-based CADET. | 97 | * Method called whenever a peer connects to a port in MQ-based CADET. |
141 | * | 98 | * |
@@ -259,7 +216,6 @@ GNUNET_CADET_close_port (struct GNUNET_CADET_Port *p); | |||
259 | * - Each message type callback in @a handlers | 216 | * - Each message type callback in @a handlers |
260 | * @param destination Peer identity the channel should go to. | 217 | * @param destination Peer identity the channel should go to. |
261 | * @param port Identification of the destination port. | 218 | * @param port Identification of the destination port. |
262 | * @param options CadetOption flag field, with all desired option bits set to 1. | ||
263 | * @param window_changes Function called when the transmit window size changes. | 219 | * @param window_changes Function called when the transmit window size changes. |
264 | * Can be NULL if this data is of no interest. | 220 | * Can be NULL if this data is of no interest. |
265 | * TODO Not yet implemented. | 221 | * TODO Not yet implemented. |
@@ -272,7 +228,6 @@ GNUNET_CADET_channel_create (struct GNUNET_CADET_Handle *h, | |||
272 | void *channel_cls, | 228 | void *channel_cls, |
273 | const struct GNUNET_PeerIdentity *destination, | 229 | const struct GNUNET_PeerIdentity *destination, |
274 | const struct GNUNET_HashCode *port, | 230 | const struct GNUNET_HashCode *port, |
275 | enum GNUNET_CADET_ChannelOption options, | ||
276 | GNUNET_CADET_WindowSizeEventHandler window_changes, | 231 | GNUNET_CADET_WindowSizeEventHandler window_changes, |
277 | GNUNET_CADET_DisconnectEventHandler disconnects, | 232 | GNUNET_CADET_DisconnectEventHandler disconnects, |
278 | const struct GNUNET_MQ_MessageHandler *handlers); | 233 | const struct GNUNET_MQ_MessageHandler *handlers); |
@@ -347,13 +302,11 @@ union GNUNET_CADET_ChannelInfo | |||
347 | * Get information about a channel. | 302 | * Get information about a channel. |
348 | * | 303 | * |
349 | * @param channel Channel handle. | 304 | * @param channel Channel handle. |
350 | * @param option Query type GNUNET_CADET_OPTION_* | ||
351 | * @param ... dependant on option, currently not used | 305 | * @param ... dependant on option, currently not used |
352 | * @return Union with an answer to the query. | 306 | * @return Union with an answer to the query. |
353 | */ | 307 | */ |
354 | const union GNUNET_CADET_ChannelInfo * | 308 | const union GNUNET_CADET_ChannelInfo * |
355 | GNUNET_CADET_channel_get_info (struct GNUNET_CADET_Channel *channel, | 309 | GNUNET_CADET_channel_get_info (struct GNUNET_CADET_Channel *channel, |
356 | enum GNUNET_CADET_ChannelOption option, | ||
357 | ...); | 310 | ...); |
358 | 311 | ||
359 | 312 | ||