diff options
Diffstat (limited to 'src/include/gnunet_connection_lib.h')
-rw-r--r-- | src/include/gnunet_connection_lib.h | 19 |
1 files changed, 10 insertions, 9 deletions
diff --git a/src/include/gnunet_connection_lib.h b/src/include/gnunet_connection_lib.h index ed9ca9167..0051e5fb5 100644 --- a/src/include/gnunet_connection_lib.h +++ b/src/include/gnunet_connection_lib.h | |||
@@ -273,18 +273,19 @@ GNUNET_CONNECTION_receive_cancel (struct GNUNET_CONNECTION_Handle *connection); | |||
273 | 273 | ||
274 | 274 | ||
275 | /** | 275 | /** |
276 | * Function called to notify a client about the connection | 276 | * Function called to notify a client about the connection begin ready |
277 | * begin ready to queue more data. "buf" will be | 277 | * to queue more data. @a buf will be NULL and @a size zero if the |
278 | * NULL and "size" zero if the connection was closed for | 278 | * connection was closed for writing in the meantime. |
279 | * writing in the meantime. | ||
280 | * | 279 | * |
281 | * @param cls closure | 280 | * @param cls closure |
282 | * @param size number of bytes available in buf | 281 | * @param size number of bytes available in @a buf |
283 | * @param buf where the callee should write the message | 282 | * @param buf where the callee should write the message |
284 | * @return number of bytes written to buf | 283 | * @return number of bytes written to @a buf |
285 | */ | 284 | */ |
286 | typedef size_t (*GNUNET_CONNECTION_TransmitReadyNotify) (void *cls, size_t size, | 285 | typedef size_t |
287 | void *buf); | 286 | (*GNUNET_CONNECTION_TransmitReadyNotify) (void *cls, |
287 | size_t size, | ||
288 | void *buf); | ||
288 | 289 | ||
289 | 290 | ||
290 | /** | 291 | /** |
@@ -298,7 +299,7 @@ struct GNUNET_CONNECTION_TransmitHandle; | |||
298 | * are free in the transmission buffer. May call the notify | 299 | * are free in the transmission buffer. May call the notify |
299 | * method immediately if enough space is available. Note that | 300 | * method immediately if enough space is available. Note that |
300 | * this function will abort if "size" is greater than | 301 | * this function will abort if "size" is greater than |
301 | * GNUNET_SERVER_MAX_MESSAGE_SIZE. | 302 | * #GNUNET_SERVER_MAX_MESSAGE_SIZE. |
302 | * | 303 | * |
303 | * Note that "notify" will be called either when enough | 304 | * Note that "notify" will be called either when enough |
304 | * buffer space is available OR when the connection is destroyed. | 305 | * buffer space is available OR when the connection is destroyed. |