diff options
author | Christian Grothoff <christian@grothoff.org> | 2018-05-20 00:35:13 +0200 |
---|---|---|
committer | Christian Grothoff <christian@grothoff.org> | 2018-05-20 00:36:20 +0200 |
commit | 0be37e812d034754eb725701f237fbc81b973904 (patch) | |
tree | c50481209ec97b5dbbd075489255477c5e761d3d /src/include | |
parent | c227e3f00efb4b3677e9b85c0273a7bf5fbcb4a9 (diff) | |
download | gnunet-0be37e812d034754eb725701f237fbc81b973904.tar.gz gnunet-0be37e812d034754eb725701f237fbc81b973904.zip |
fix off-by-one error in cadet connection construction, also enforce better timeouts for retransmissions of handshake
Diffstat (limited to 'src/include')
-rw-r--r-- | src/include/gnunet_mq_lib.h | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/src/include/gnunet_mq_lib.h b/src/include/gnunet_mq_lib.h index ecee1b223..fe699c48f 100644 --- a/src/include/gnunet_mq_lib.h +++ b/src/include/gnunet_mq_lib.h | |||
@@ -135,6 +135,26 @@ struct GNUNET_MQ_Envelope; | |||
135 | 135 | ||
136 | 136 | ||
137 | /** | 137 | /** |
138 | * Obtain message contained in envelope. | ||
139 | * | ||
140 | * @param env the envelope | ||
141 | * @return message contained in the envelope | ||
142 | */ | ||
143 | const struct GNUNET_MessageHeader * | ||
144 | GNUNET_MQ_env_get_msg (const struct GNUNET_MQ_Envelope *env); | ||
145 | |||
146 | |||
147 | /** | ||
148 | * Return next envelope in queue. | ||
149 | * | ||
150 | * @param env a queued envelope | ||
151 | * @return next one, or NULL | ||
152 | */ | ||
153 | const struct GNUNET_MQ_Envelope * | ||
154 | GNUNET_MQ_env_next (const struct GNUNET_MQ_Envelope *env); | ||
155 | |||
156 | |||
157 | /** | ||
138 | * Implementation of the #GNUNET_MQ_msg_nested_mh macro. | 158 | * Implementation of the #GNUNET_MQ_msg_nested_mh macro. |
139 | * | 159 | * |
140 | * @param mhp pointer to the message header pointer that will be changed to allocate at | 160 | * @param mhp pointer to the message header pointer that will be changed to allocate at |