aboutsummaryrefslogtreecommitdiff
path: root/src/stream
diff options
context:
space:
mode:
authorharsha <harsha@140774ce-b5e7-0310-ab8b-a85725594a96>2013-01-16 11:35:45 +0000
committerharsha <harsha@140774ce-b5e7-0310-ab8b-a85725594a96>2013-01-16 11:35:45 +0000
commitd141e9410bdde7f594af408578e3f62d2a60f15a (patch)
treeaa43d577e5cf8be0cf703618663c95972a4e64ff /src/stream
parenta5d683a3f1c2d1f55fc8c7d85335c3f8d042a4f5 (diff)
- doc
- moved write_cont callback towarding beginning of GNUNET_STREAM_WriteHandle - rename stream_protocol.h to stream.h git-svn-id: https://gnunet.org/svn/gnunet@25804 140774ce-b5e7-0310-ab8b-a85725594a96
Diffstat (limited to 'src/stream')
-rw-r--r--src/stream/Makefile.am2
-rw-r--r--src/stream/stream.h (renamed from src/stream/stream_protocol.h)8
-rw-r--r--src/stream/stream_api.c14
3 files changed, 12 insertions, 12 deletions
diff --git a/src/stream/Makefile.am b/src/stream/Makefile.am
index 77f2d6d59d..099469711f 100644
--- a/src/stream/Makefile.am
+++ b/src/stream/Makefile.am
@@ -12,7 +12,7 @@ endif
lib_LTLIBRARIES = libgnunetstream.la
libgnunetstream_la_SOURCES = \
- stream_api.c stream_protocol.h
+ stream_api.c stream.h
libgnunetstream_la_LIBADD = \
$(top_builddir)/src/mesh/libgnunetmesh.la \
$(top_builddir)/src/lockmanager/libgnunetlockmanager.la \
diff --git a/src/stream/stream_protocol.h b/src/stream/stream.h
index ca14d16ed9..9b92a28ee2 100644
--- a/src/stream/stream_protocol.h
+++ b/src/stream/stream.h
@@ -19,13 +19,13 @@
*/
/**
- * @file stream/stream_protocol.h
+ * @file stream/stream.h
* @brief P2P protocol for the stream connections
* @author Sree Harsha Totakura
*/
-#ifndef STREAM_PROTOCOL_H
-#define STREAM_PROTOCOL_H
+#ifndef STREAM_H
+#define STREAM_H
#ifdef __cplusplus
extern "C"
@@ -187,4 +187,4 @@ GNUNET_NETWORK_STRUCT_END
}
#endif
-#endif /* STREAM_PROTOCOL_H */
+#endif /* STREAM.H */
diff --git a/src/stream/stream_api.c b/src/stream/stream_api.c
index 4b86bece0f..20df4aaf5c 100644
--- a/src/stream/stream_api.c
+++ b/src/stream/stream_api.c
@@ -40,7 +40,7 @@
#include "gnunet_lockmanager_service.h"
#include "gnunet_statistics_service.h"
#include "gnunet_stream_lib.h"
-#include "stream_protocol.h"
+#include "stream.h"
/**
* Generic logging shorthand
@@ -462,11 +462,6 @@ struct GNUNET_STREAM_WriteHandle
struct GNUNET_STREAM_Socket *socket;
/**
- * The packet_buffers associated with this Handle
- */
- struct GNUNET_STREAM_DataMessage *messages[GNUNET_STREAM_ACK_BITMAP_BIT_LENGTH];
-
- /**
* The write continuation callback
*/
GNUNET_STREAM_CompletionContinuation write_cont;
@@ -477,6 +472,11 @@ struct GNUNET_STREAM_WriteHandle
void *write_cont_cls;
/**
+ * The packet_buffers associated with this Handle
+ */
+ struct GNUNET_STREAM_DataMessage *messages[GNUNET_STREAM_ACK_BITMAP_BIT_LENGTH];
+
+ /**
* The bitmap of this IOHandle; Corresponding bit for a message is set when
* it has been acknowledged by the receiver
*/
@@ -3488,7 +3488,7 @@ GNUNET_STREAM_listen_close (struct GNUNET_STREAM_ListenSocket *lsocket)
/**
* Tries to write the given data to the stream. The maximum size of data that
- * can be written as part of a write operation is (64 * (64000 - sizeof (struct
+ * can be written per a write operation is ~ 4MB (64 * (64000 - sizeof (struct
* GNUNET_STREAM_DataMessage))). If size is greater than this it is not an API
* violation, however only the said number of maximum bytes will be written.
*