diff options
Diffstat (limited to 'src/include/gnunet_stream_lib.h')
-rw-r--r-- | src/include/gnunet_stream_lib.h | 12 |
1 files changed, 10 insertions, 2 deletions
diff --git a/src/include/gnunet_stream_lib.h b/src/include/gnunet_stream_lib.h index e09c264d6..f348780e3 100644 --- a/src/include/gnunet_stream_lib.h +++ b/src/include/gnunet_stream_lib.h | |||
@@ -103,7 +103,13 @@ enum GNUNET_STREAM_Option | |||
103 | * of '0' means to use the round-trip time (plus a tiny grace period); | 103 | * of '0' means to use the round-trip time (plus a tiny grace period); |
104 | * this is also the default. | 104 | * this is also the default. |
105 | */ | 105 | */ |
106 | GNUNET_STREAM_OPTION_INITIAL_RETRANSMIT_TIMEOUT | 106 | GNUNET_STREAM_OPTION_INITIAL_RETRANSMIT_TIMEOUT, |
107 | |||
108 | /** | ||
109 | * Option to set the write sequence number. Takes a uint32_t as parameter | ||
110 | * to set the value of the write sequence number | ||
111 | */ | ||
112 | GNUNET_STREAM_OPTION_TESTING_SET_WRITE_SEQUENCE_NUMBER | ||
107 | }; | 113 | }; |
108 | 114 | ||
109 | 115 | ||
@@ -211,13 +217,15 @@ struct GNUNET_STREAM_ListenSocket; | |||
211 | * @param listen_cb this function will be called when a peer tries to establish | 217 | * @param listen_cb this function will be called when a peer tries to establish |
212 | * a stream with us | 218 | * a stream with us |
213 | * @param listen_cb_cls closure for listen_cb | 219 | * @param listen_cb_cls closure for listen_cb |
220 | * @param ... options to the stream, terminated by GNUNET_STREAM_OPTION_END | ||
214 | * @return listen socket, NULL for any error | 221 | * @return listen socket, NULL for any error |
215 | */ | 222 | */ |
216 | struct GNUNET_STREAM_ListenSocket * | 223 | struct GNUNET_STREAM_ListenSocket * |
217 | GNUNET_STREAM_listen (const struct GNUNET_CONFIGURATION_Handle *cfg, | 224 | GNUNET_STREAM_listen (const struct GNUNET_CONFIGURATION_Handle *cfg, |
218 | GNUNET_MESH_ApplicationType app_port, | 225 | GNUNET_MESH_ApplicationType app_port, |
219 | GNUNET_STREAM_ListenCallback listen_cb, | 226 | GNUNET_STREAM_ListenCallback listen_cb, |
220 | void *listen_cb_cls); | 227 | void *listen_cb_cls, |
228 | ...); | ||
221 | 229 | ||
222 | 230 | ||
223 | /** | 231 | /** |