diff options
Diffstat (limited to 'src/stream/stream_api.c')
-rw-r--r-- | src/stream/stream_api.c | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/src/stream/stream_api.c b/src/stream/stream_api.c index 4b86bece0..20df4aaf5 100644 --- a/src/stream/stream_api.c +++ b/src/stream/stream_api.c | |||
@@ -40,7 +40,7 @@ | |||
40 | #include "gnunet_lockmanager_service.h" | 40 | #include "gnunet_lockmanager_service.h" |
41 | #include "gnunet_statistics_service.h" | 41 | #include "gnunet_statistics_service.h" |
42 | #include "gnunet_stream_lib.h" | 42 | #include "gnunet_stream_lib.h" |
43 | #include "stream_protocol.h" | 43 | #include "stream.h" |
44 | 44 | ||
45 | /** | 45 | /** |
46 | * Generic logging shorthand | 46 | * Generic logging shorthand |
@@ -462,11 +462,6 @@ struct GNUNET_STREAM_WriteHandle | |||
462 | struct GNUNET_STREAM_Socket *socket; | 462 | struct GNUNET_STREAM_Socket *socket; |
463 | 463 | ||
464 | /** | 464 | /** |
465 | * The packet_buffers associated with this Handle | ||
466 | */ | ||
467 | struct GNUNET_STREAM_DataMessage *messages[GNUNET_STREAM_ACK_BITMAP_BIT_LENGTH]; | ||
468 | |||
469 | /** | ||
470 | * The write continuation callback | 465 | * The write continuation callback |
471 | */ | 466 | */ |
472 | GNUNET_STREAM_CompletionContinuation write_cont; | 467 | GNUNET_STREAM_CompletionContinuation write_cont; |
@@ -477,6 +472,11 @@ struct GNUNET_STREAM_WriteHandle | |||
477 | void *write_cont_cls; | 472 | void *write_cont_cls; |
478 | 473 | ||
479 | /** | 474 | /** |
475 | * The packet_buffers associated with this Handle | ||
476 | */ | ||
477 | struct GNUNET_STREAM_DataMessage *messages[GNUNET_STREAM_ACK_BITMAP_BIT_LENGTH]; | ||
478 | |||
479 | /** | ||
480 | * The bitmap of this IOHandle; Corresponding bit for a message is set when | 480 | * The bitmap of this IOHandle; Corresponding bit for a message is set when |
481 | * it has been acknowledged by the receiver | 481 | * it has been acknowledged by the receiver |
482 | */ | 482 | */ |
@@ -3488,7 +3488,7 @@ GNUNET_STREAM_listen_close (struct GNUNET_STREAM_ListenSocket *lsocket) | |||
3488 | 3488 | ||
3489 | /** | 3489 | /** |
3490 | * Tries to write the given data to the stream. The maximum size of data that | 3490 | * Tries to write the given data to the stream. The maximum size of data that |
3491 | * can be written as part of a write operation is (64 * (64000 - sizeof (struct | 3491 | * can be written per a write operation is ~ 4MB (64 * (64000 - sizeof (struct |
3492 | * GNUNET_STREAM_DataMessage))). If size is greater than this it is not an API | 3492 | * GNUNET_STREAM_DataMessage))). If size is greater than this it is not an API |
3493 | * violation, however only the said number of maximum bytes will be written. | 3493 | * violation, however only the said number of maximum bytes will be written. |
3494 | * | 3494 | * |