diff options
author | Gabor X Toth <*@tg-x.net> | 2014-01-06 00:09:37 +0000 |
---|---|---|
committer | Gabor X Toth <*@tg-x.net> | 2014-01-06 00:09:37 +0000 |
commit | c04d45b9738e1764d2e2c21efdbeb129f298d5d1 (patch) | |
tree | 9eec32efdd3fe3f9f459630af16058cc47436bce /src/include/gnunet_multicast_service.h | |
parent | 83a0e31631dbc199c37c42f11004e1be544f04a8 (diff) | |
download | gnunet-c04d45b9738e1764d2e2c21efdbeb129f298d5d1.tar.gz gnunet-c04d45b9738e1764d2e2c21efdbeb129f298d5d1.zip |
psyc: ipc messages
Diffstat (limited to 'src/include/gnunet_multicast_service.h')
-rw-r--r-- | src/include/gnunet_multicast_service.h | 27 |
1 files changed, 20 insertions, 7 deletions
diff --git a/src/include/gnunet_multicast_service.h b/src/include/gnunet_multicast_service.h index 58a99c0d8..0abd803a4 100644 --- a/src/include/gnunet_multicast_service.h +++ b/src/include/gnunet_multicast_service.h | |||
@@ -45,11 +45,6 @@ extern "C" | |||
45 | #define GNUNET_MULTICAST_VERSION 0x00000000 | 45 | #define GNUNET_MULTICAST_VERSION 0x00000000 |
46 | 46 | ||
47 | /** | 47 | /** |
48 | * Maximum size of a multicast message fragment. | ||
49 | */ | ||
50 | #define GNUNET_MULTICAST_FRAGMENT_MAX_SIZE 63 * 1024 | ||
51 | |||
52 | /** | ||
53 | * Opaque handle for a multicast group member. | 48 | * Opaque handle for a multicast group member. |
54 | */ | 49 | */ |
55 | struct GNUNET_MULTICAST_Member; | 50 | struct GNUNET_MULTICAST_Member; |
@@ -77,7 +72,14 @@ enum GNUNET_MULTICAST_MessageFlags | |||
77 | */ | 72 | */ |
78 | GNUNET_MULTICAST_MESSAGE_NOT_FRAGMENTED | 73 | GNUNET_MULTICAST_MESSAGE_NOT_FRAGMENTED |
79 | = GNUNET_MULTICAST_MESSAGE_FIRST_FRAGMENT | 74 | = GNUNET_MULTICAST_MESSAGE_FIRST_FRAGMENT |
80 | | GNUNET_MULTICAST_MESSAGE_LAST_FRAGMENT | 75 | | GNUNET_MULTICAST_MESSAGE_LAST_FRAGMENT, |
76 | |||
77 | /** | ||
78 | * Historic message, used only locally when replaying messages from local | ||
79 | * storage. | ||
80 | */ | ||
81 | GNUNET_MULTICAST_MESSAGE_HISTORIC = 1 << 30 | ||
82 | |||
81 | }; | 83 | }; |
82 | 84 | ||
83 | 85 | ||
@@ -120,7 +122,7 @@ struct GNUNET_MULTICAST_MessageHeader | |||
120 | struct GNUNET_CRYPTO_EccSignaturePurpose purpose; | 122 | struct GNUNET_CRYPTO_EccSignaturePurpose purpose; |
121 | 123 | ||
122 | /** | 124 | /** |
123 | * Number of the message fragment, monotonically increasing. | 125 | * Number of the message fragment, monotonically increasing starting from 1. |
124 | */ | 126 | */ |
125 | uint64_t fragment_id GNUNET_PACKED; | 127 | uint64_t fragment_id GNUNET_PACKED; |
126 | 128 | ||
@@ -150,6 +152,8 @@ struct GNUNET_MULTICAST_MessageHeader | |||
150 | 152 | ||
151 | /** | 153 | /** |
152 | * Flags for this message fragment. | 154 | * Flags for this message fragment. |
155 | * | ||
156 | * @see enum GNUNET_MULTICAST_MessageFlags | ||
153 | */ | 157 | */ |
154 | uint32_t flags GNUNET_PACKED; | 158 | uint32_t flags GNUNET_PACKED; |
155 | 159 | ||
@@ -158,6 +162,15 @@ struct GNUNET_MULTICAST_MessageHeader | |||
158 | 162 | ||
159 | GNUNET_NETWORK_STRUCT_END | 163 | GNUNET_NETWORK_STRUCT_END |
160 | 164 | ||
165 | /** | ||
166 | * Maximum size of a multicast message fragment. | ||
167 | */ | ||
168 | #define GNUNET_MULTICAST_FRAGMENT_MAX_SIZE 63 * 1024 | ||
169 | |||
170 | #define GNUNET_MULTICAST_FRAGMENT_MAX_PAYLOAD \ | ||
171 | GNUNET_MULTICAST_FRAGMENT_MAX_SIZE \ | ||
172 | - sizeof (struct GNUNET_MULTICAST_MessageHeader) | ||
173 | |||
161 | 174 | ||
162 | /** | 175 | /** |
163 | * Handle that identifies a join request. | 176 | * Handle that identifies a join request. |